Android的 - 这两个城市之间的距离这两个、距离、城市、Android

由网友(你好特别i)分享简介:我需要在我的Andr​​oid应用程序的距离,两个城市之间的行车时间。I need in my Android Application the Distance and the Driving Time between Two cities.是否有可能来计算这个事情,例如通过谷歌浏览器或谷歌地图? (行驶距离,没有...

我需要在我的Andr​​oid应用程序的距离,两个城市之间的行车时间。

I need in my Android Application the Distance and the Driving Time between Two cities.

是否有可能来计算这个事情,例如通过谷歌浏览器或谷歌地图? (行驶距离,没有空气线距离)

Is there a possibility to calculate this things for example via Google Navigator or Google Maps? (the driving distance, not the air-line distance)

推荐答案

而不是直接使用Web API如上所述,你应该使用Java包装用的 HTTP://$c$c.google.com/p/gdata-java-client/ 有关地图的详细信息API在这里详细 的http://$c$c.google.com/apis/maps/documentation/mapsdata/developers_guide_java.html

Instead of using the web api directly as mentioned above you should use the Java wrappers as provided by http://code.google.com/p/gdata-java-client/ with more information about the maps api in detail here http://code.google.com/apis/maps/documentation/mapsdata/developers_guide_java.html

请记住,这不是Android地图罐子API,但更多的API的东西,所以你需要在您的apk构建罐子。

Keep in mind that this is NOT the android maps jar api but additional api stuff so you will need to include the jar in your apk build.

阅读全文

相关推荐

最新文章