简体   繁体   English

适用于 Android 和 iOS 的开放街道地图

[英]Open Street Map for Android and iOS

I want to draw some polygons on maps(OSM) from the coordinates (please check the image below).我想根据坐标在maps(OSM)上绘制一些多边形(请查看下图)。 I have checked out a few links and stackoverflow but not found the exact what I want.我检查了一些链接和 stackoverflow,但没有找到我想要的确切内容。 I need open-source SDK for both platforms ( Android + iOS ).我需要两个平台( Android + iOSopen-source SDK

- skobbler (paid) - skobbler (付费)
- mapbox.com (paid) - mapbox.com (付费)
- https://help.openstreetmap.org/questions/8066/ios-android-sdk - https://help.openstreetmap.org/questions/8066/ios-android-sdk
- route-me (very old no maintain) - route-me (很老,没有维护)
- routing-using-openstreetmap-data-in-ios -routing-using-openstreetmap-data-in-ios
- open-street-maps-api-for-android (here android solution only) - open-street-maps-api-for-android (这里仅android解决方案)

When I draw OSM polygon in the our native map, it draws a different location on the map view.当我在我们的原生地图中绘制 OSM 多边形时,它会在地图视图上绘制不同的位置。

Thanks for reading.谢谢阅读。 Any help will be appreciated.:)任何帮助将不胜感激。:)

在此处输入图片说明

您可以使用 OSM Nominatim/Polygons

My our Investigation :我的调查

When I draw OSM polygon in our native map, it draws a different location on the map view.当我在原生地图中绘制 OSM 多边形时,它会在地图视图上绘制不同的位置。

We've selected the Nasr City police station.我们选择了纳斯尔市警察局。
POINT (31.341296458117728 30.068688243368403) value has been saved in our DB. POINT (31.341296458117728 30.068688243368403)值已保存在我们的数据库中。 We used our native MKMapView for drawn polygon and it shows a different location compare to this .我们使用我们的原生MKMapView绘制多边形,它显示了与不同的位置。 Same behavior in the android (Google map) too. android(谷歌地图)中的行为也相同。

We investigate the same place on the google map shows a slightly different position for this value.我们调查了谷歌地图上的同一个地方显示了这个值的稍微不同的位置。 Please check the image below.请检查下面的图像。 在此处输入图片说明
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.现在,我尝试在同一张地图上反转并使用30.06868824336840331.341296458117728值,它工作正常。
Output:输出: 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM