如何在动态Bing地图上绘制/指定路线(使用Bing Maps iOS SDK) [英] How can I draw/specify a route on a dynamic Bing Map (using the Bing Maps iOS SDK)

查看:166
本文介绍了如何在动态Bing地图上绘制/指定路线(使用Bing Maps iOS SDK)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经找了几个小时了,看起来应该是一件微不足道的任务. 我只想通过一系列航路点绘制一条路线(我同时具有地址字符串和geoCoordinates).

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).

Imagery API使我可以查询静态地图,这似乎是一种常见的解决方案,但我希望在Bing Maps iOS SDK提供的动态,交互式地图上绘制路线.

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.

谢谢.

推荐答案

在iOS SDK提供的动态,交互式地图上绘制路线."这是否表示您要在iPhone上使用MapKit?

"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.

这篇关于如何在动态Bing地图上绘制/指定路线(使用Bing Maps iOS SDK)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆