Android 应用程序中路由的最佳解决方案是什么?

发布于 2024-11-17 14:51:37 字数 729 浏览 4 评论 0原文

我一直在寻找一些在 Android 应用程序内的 Google 地图上显示路线的可能性。由于新的 SDK 不再提供 DrivingDirections。

例如,我发现了这个主题: J2ME/ Android/BlackBerry - 行车路线、两个位置之间的路线 这似乎没问题,但正如主题作者已经指出的那样,它违反了“Google 地图/Google 地球 API”服务条款”,所以我认为这不是真正可靠的解决方案。

我正在寻找提供此类服务的 OpenStreetMap,但不幸的是我没有发现任何可能获得第三方应用程序的路由结果。

在它们旁边有 Nutiteq 移动映射库,它似乎更接近我的内容正在寻找,但不幸的是它是 GPL。请不要误会我的意思,我是开源的忠实粉丝,我只是认为 GPL 是所有开源许可证中最糟糕的库许可证。

是否有其他库可以为 Android 应用程序提供路由可能性? 或者也许有可能从 OpenStreetMap 获取路由结果,例如以可交换格式(XML、JSON)?

问候, 拉德克

I've been looking a bit for some possibility to show a route on a Google Map inside an Android application. Since the new SDK doesn't provide DrivingDirections anymore.

I have found for example this topic: J2ME/Android/BlackBerry - driving directions, route between two locations which seems to be fine but as the topic author already stated, it's violating the "Google Maps/Google Earth APIs Terms of Service" so it's not really reliable solution I think.

I was looking around OpenStreetMap which provides such service but unfortunately I didn't found any possibility to get results for a routing for a third part application.

Beside them there is Nutiteq Mobile Mapping library which seems to be closer to what I'm looking for but unfortunately it's GPL. Please don't get me wrong, I'm a really big fan of open source I just think that GPL is the worst licence for a library from all open source licenses.

Is there is some other library which provides routing possibilities for an Android App?
Or maybe there is some possibility to get routing results from OpenStreetMap for example in an exchangeable format (XML, JSON)?

Regards,
Radek

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

英雄似剑 2024-11-24 14:51:37

CloudMade 有一个实现 OSM 的路由服务(所以预计会有很多不准确! )。
编辑(关于准确性):在 OSM 的上下文中,准确性完全取决于位置。例如,在意大利,它可能不如在德国准确。这些国家有什么区别——你告诉我!在大多数情况下,它拥有所有街道(作为物理路线),但它不太了解名称/方向(单或双)/枚举/车道数量/POI。这使得它完全适合步行方向。
请参阅我的博客条目以获取工作代码。

我的公司对任何免费解决方案都不是很满意,因此他们转向了当地的 ESRI 代表,后者为我们提供收费的自定义路由。

CloudMade has a routing service implementing OSM (so expect a lot of inaccuracy!).
EDIT (regarding accuracy): In the context of OSM the accuracy totally depends on the location. E.g. in Italy, it might be not as accurate as in Germany. What's the difference between these countries - you tell me! In the waste majority of cases it has all the streets (as physical routes), but it doesn't know very much about names/directions (single or double)/enumeration/number of lanes/POI's. This makes it totally suitable for walking directions though.
See my blog entry for working code.

My company wasn't very satisfied with any free solution so they moved to a local ESRI representative who provides us with custom routing for a fee.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文