📜 ⬆️ ⬇️

Switch from Google Maps to OpenStreetMap

In our project, it so happened that for our geo-wiki we began to use OSM and not GM. In the course of writing a mobile client for Android, the standard MapView component was used. But, during testing, discrepancies in the coordinates of OSM and GM were revealed, which, in some cases, reached 30 meters. Thus, it was decided to switch from Google maps to OSM for which the corresponding osmdroid library was found. About how to move to this library, I will tell under the cut.


At the moment, the application is undergoing testing, as a result of which some new problems with this library can be identified.
upd:
During testing, it turned out that if you first set the coordinates through setCenter (..), and then zoom in, you didn’t get to the right point (it looks like problems with accuracy). Otherwise everything works fine.

')

Source: https://habr.com/ru/post/143177/


All Articles