Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

open street maps api for android

Does anyone know where I can find the open street maps api for android? I have searched the site and all I can see is other peoples implementations of it.

I'm looking for one which can be integrated into another app and fully customized.

like image 974
Paul Avatar asked Nov 19 '11 13:11

Paul


People also ask

Does OpenStreetMap have an API?

OpenStreetMap has an editing API for fetching and saving raw geodata from/to the OpenStreetMap database — this is the entry page for the documentation. If you just want to embed a map into a webpage, you don't want this API. Use a web map library instead.

Is OpenStreetMap API free?

OpenStreetMap is a free, editable map of the whole world that is being built by volunteers largely from scratch and released with an open-content license. The OpenStreetMap License allows free (or almost free) access to our map images and all of our underlying map data.

How do I use OpenStreetMap on Android?

The most basic way to use OpenStreetMap on your Android device is to open https://www.openstreetmap.org/ in a Web browser such as Chrome. The website is optimized for small screens such as those found on many Android phones; however, the slippy map is limited to basic gestures such as drag-to-pan and pinch-to-zoom.

How do I use Open Street maps API?

Navigate to the map you want on https://www.openstreetmap.org. On the right side, click the "Share" icon, then click "HTML" Copy the resulting iframe code directly into your webpage.


1 Answers

You can integrate OSM by using the Osmdroid API. This gives you functionality very similar to Google maps but you can also use OSM tiles offline if you prepare the tiles with Mobile Atlas Creator (MOBAC)

See Osmdroid home page (GitHub)

You just need the osmdroid-android-3.0.5.jar in your build path. You don't need an API key like Google demands and tiles get cached, so next time you visit that location you save on data download costs/time.

It's got a few tiny bugs, but overall it's pretty good

like image 142
NickT Avatar answered Sep 18 '22 15:09

NickT