在我的应用程序中,我可以在地图(MKMapView)上绘制叠加层(PolyLine)。然而,这种覆盖并不局限于实际的道路。有没有办法(某些 API 或其他)来调整覆盖层,使其覆盖/覆盖真实的道路。
该应用程序在移动设备(iPod Touch 和 iPhone)上运行,因此为了不使我的应用程序成为非常耗电量的应用程序,我不会将核心位置精度设置为最高。因此,该位置将稍微靠近您所在的道路。那么我仍然希望我的程序能够调整这个错误......
In my application I can draw an overlay (PolyLine) on my map (MKMapView). This overlay however, is not bounded to actual roads. Is there a way (some API or others) to adapt the overlay so that it covers/overlays a real road.
The application is run on mobile devices (iPod Touch & iPhone), so to not make my app a very battery consuming one, I would set the Core Location Accuracy not to the highest. As a result, the location will be a bit next to the road where you are. Then I would still like my program to adjust this error...
发布评论
评论(1)
为了获得与实际道路匹配的叠加层,我使用了 Google Maps API Webservices。我已经拥有形成路线的所有点的数组,并且我使用这些点(坐标)轻松创建映射在真实道路上的叠加层。
Google 地图 API Web 服务: http://code.google.com/intl/nl-NL/apis/maps/documentation/webservices/
To get an overlay that matches actual roads, I used Google Maps API Webservices. I already had an array of all points forming a route and I used these points (coordinates) to easily create an overlay that maps on real roads.
Google Maps API Webservices: http://code.google.com/intl/nl-NL/apis/maps/documentation/webservices/