在Android上计算地图路线 [英] Calculating map routes on Android

查看:151
本文介绍了在Android上计算地图路线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想计算的基础上无论是地理位置还是地址的路由。我想通了显而易见的方法是使用内置的谷歌地图包中的某些部分,但事实证明难度比设想。过去有一个叫包 com.google.googlenav ,但从消失与1.0版本Android SDK的。

I am trying to calculate a route based on either geographic location or address. I figured the obvious way would be to use some part of the built-in Google Maps package, but it proved harder than assumed. There used to be a package called com.google.googlenav, but from that disappeared with the 1.0 release of the Android SDK.

我知道,谷歌地图有一个公共的JavaScript API,但因为应用程序开发针对Android(Java)中,我想有一个离线的选择,有没有其他的库软件包,内置或第三方,我可以用它来实现这一目标?

I know that Google Maps has a public JavaScript API, but since the application is developed for the Android (in Java) and I would like to have an offline alternative, is there any other library packages, built-in or 3rd party, that I can use to achieve this?

推荐答案

如果我理解正确的话,你需要的Java库,发现途径(不是离线解决方案)。

If I understand it correctly you need Java-library that find routes (not the off-line solution).

您可以尝试的Java API来CloudMade服务: http://developers.cloudmade.com/projects/show/java-lib

You may try Java API for CloudMade services: http://developers.cloudmade.com/projects/show/java-lib

CloudMade使得围绕服务OpenStreetMap的数据,因此它可能是从谷歌地图的输出不同。然而OpenStreetMap的不断增长,现在随着GMaps实现。在许多欧洲国家已经能够竞争。

CloudMade makes services around OpenStreetMap data, so it may be different from output of Google Maps. However OpenStreetMap is growing, and now could already compete with GMaps in many European countries.

这篇关于在Android上计算地图路线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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