适用于iPhone应用程序的mapkit中多个点之间的最短路径 [英] Shortest route between multiple points in mapkit for iphone app

查看:71
本文介绍了适用于iPhone应用程序的mapkit中多个点之间的最短路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,假设用户选择4个要访问的城市,以S为起始城市,以D为目的地城市,然后为此提供任何API或网络服务.

In my application suppose user selects 4 cities to vist with S as starting city and D as destination city then is there any API or webservice for this .

此处用户仅访问一次城市,并且输出应该是覆盖所有城市的A和D之间的最短路径.如果有人有其他想法,也将受到欢迎.

Here the users visits the city one time only and the output should be the shortest path between A and D by covering all the cities. If somebody has any other idea it is also welcomed.

感谢和问候 姆鲁根

推荐答案

Mapquest最近在导航和地理编码API方面确实处于领先地位. FAR比Google的产品IMO好.他们正在托管OpenStreetMap数据和一个出色的(广泛开放的)接口.没有访问键,没有限制,只有爆炸,数据.

Mapquest has recently really taken the lead in terms of navigation and geocoding APIs. FAR better than Google's offering, IMO. They're hosting OpenStreetMap data and an excellent (and wide open) interface to it. No access keys, no restrictions, just bang, DATA.

这是他们的路线API的网址.简短的版本是,提供两个纬度/经度点(它们还具有从街道地址或其他地标查找的界面),并且会提供转弯指示.

Here's the URL to their directions API. Short version is, provide two lat/lng points (which they also have an interface to look up from a street address or other landmark) and it'll give turn by turn directions.

http://open.mapquestapi.com/directions/

这篇关于适用于iPhone应用程序的mapkit中多个点之间的最短路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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