如何显示在谷歌地图2 geocoords之间的路线? [英] How to display a route between two geocoords in google maps?

查看:145
本文介绍了如何显示在谷歌地图2 geocoords之间的路线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
  <一href="http://stackoverflow.com/questions/2023669/j2me-android-blackberry-driving-directions-route-between-two-locations">J2ME/Android/BlackBerry - 行车路线,之间的两个位置路线

Possible Duplicate:
J2ME/Android/BlackBerry - driving directions, route between two locations

我只是写一个应用程序有两个COORDS(纬度,长)在谷歌地图视图之间显示的路线。 显示一个单一的坐标(即使有标志)工作正常,但如何与2个标记画两个点之间的路线?

I'm just writing an App for displaying the route between two coords (lat, long) in google maps view. Displaying an single coord (even with a marker) works fine, but how to draw route between two point with 2 markers?

我必须承认,我是很新的Andr​​oid和地图,API ...

I must admit that I'm quite new to Android and the maps-API...

推荐答案

这是工作示例<一个href="http://stackoverflow.com/questions/2023669/j2me-android-blackberry-driving-directions-route-between-two-locations/2023685#2023685">link.一探究竟。它有助于创建地图上的路线重叠。这里是<一个href="http://$c$c.google.com/p/j2memaprouteprovider/source/browse/#svn/trunk/J2MEMapRouteAndroidEx/src/org/ci/geo/route">complete来源 code为。

this is working example link. check it out. it helps to create the route overlay on the map. here is the complete source code for that.

这篇关于如何显示在谷歌地图2 geocoords之间的路线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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