Search code examples
androidiospolygonopenstreetmap

Open Street Map for Android and iOS


I want to draw some polygons on maps(OSM) from the coordinates (please check the image below). I have checked out a few links and stackoverflow but not found the exact what I want. I need open-source SDK for both platforms (Android + iOS).

- skobbler (paid)
- mapbox.com (paid)
- https://help.openstreetmap.org/questions/8066/ios-android-sdk
- route-me (very old no maintain)
- routing-using-openstreetmap-data-in-ios
- open-street-maps-api-for-android (here android solution only)

When I draw OSM polygon in the our native map, it draws a different location on the map view.

Thanks for reading. Any help will be appreciated.:)

enter image description here


Solution

  • My our Investigation:

    When I draw OSM polygon in our native map, it draws a different location on the map view.

    We've selected the Nasr City police station.
    POINT (31.341296458117728 30.068688243368403) value has been saved in our DB. We used our native MKMapView for drawn polygon and it shows a different location compare to this. Same behavior in the android (Google map) too.

    We investigate the same place on the google map shows a slightly different position for this value. Please check the image below. enter image description here
    URL Generated by Google maps.

    Now, I tried to reverse and used 30.068688243368403, 31.341296458117728 value on the same map it's working fine.
    Output: enter image description here