简体   繁体   中英

How can I draw/specify a route on a dynamic Bing Map (using the Bing Maps iOS SDK)

I have looked for hours for what seems like it should be a trivial task. I simply want to draw a route through a series of waypoints (which I have as both address strings and geoCoordinates).

The Imagery API lets me do a query for a static map, which seems to be a common solution, but I was hoping to draw the route on the dynamic, interactive map provided by the Bing Maps iOS SDK.

Thank you.

"draw the route on the dynamic, interactive map provided by the iOS SDK." Is this to say that you want to use MapKit on the iPhone?

If that's the case then you can look at this: http://iphonegeeksworld.wordpress.com/2010/09/08/drawing-routes-onto-mkmapview-using-unofficial-google-maps-directions-api/

The only problem with that is that you need to decode the polylines, which you can do by following links in that link and modifying that code to suit yourself.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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