用3分谷歌Android路线(源点,目标点,并通过点) [英] Android google route using 3 points (Source point, destination point and via point)

查看:254
本文介绍了用3分谷歌Android路线(源点,目标点,并通过点)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用谷歌地图两点之间显示的路线。现在,在我的应用我想用源点,目标点绘制在地图中的路线,并通过point.Please帮我在这。任何帮助将是AP preciated。

I am using google map to display route between two points . Now in my application i want to draw route in map using source point , destination point and via point.Please help me in this. Any help would be appreciated.

由于提前

推荐答案

检查:

<一个href=\"http://stackoverflow.com/questions/14702621/answer-draw-path-between-two-points-using-google-maps-android-api-v2#answer-14702636\">Answer :绘制使用谷歌地图API的Andr​​oid V2 两点之间的路径

不过,修改makeURL方法使用

But modify makeURL method to use

https://developers.google.com/maps/documentation/directions/#航点

makeURL(double sourceLat, double sourceLng, double viaLat, double viaLng, double DestLat, double DestLng);
drawPath(result);

这篇关于用3分谷歌Android路线(源点,目标点,并通过点)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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