用MapBox在点之间进行路由 [英] Routing between points with MapBox

查看:191
本文介绍了用MapBox在点之间进行路由的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道类似的问题已经在这里提出过,但是他们都没有真正回答我的问题,我承受了压力,要在截止日期前完成我的项目。

基本上我正在编写一个应用程序,它将显示在线和离线地图。



我目前使用MapBox SDK来查看离线和在线地图,但是,MapBox目前不提供路由解决方案。所以我正在寻找一种方法来做到这一点。



主要问题似乎是,不只有一个SDK可以提供在线OSM地图,离线OSM地图和路由,所以我想知道我能够使用MapBox来处理地图,然后使用MapQuest来获取路线?这可能吗?是否推荐?

解决方案

是的,您可以使用另一个引擎进行路由,并将其作为 RMAnnotation 与MapBox SDK中的 RMShape 进行比较。

I know that similar questions have been asked here before but none of them really answered my question and I am under pressure to finish my project by a deadline.

Basically I am writing an application that will show online and offline maps.

I am currently using MapBox SDK for the viewing of both offline and online maps, however, MapBox does not currently offer a routing solution. So I am looking for a way to do it.

The main problem seems to be that there isn't just one SDK that will offer online OSM maps, offline OSM maps AND routing so I was wondering would I be able to use MapBox to handle the maps and then use MapQuest to get the route? Is this possible? Is it recommended?

解决方案

Yes, you could use another engine for routing and just plot it as an RMAnnotation with an RMShape in the MapBox SDK.

这篇关于用MapBox在点之间进行路由的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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