本文介绍了让行走路线 - Android电子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用该链路上所用的方法,以显示两个GeoPoints之间的路线:

I used the method used on that link to show a route between two GeoPoints :

Why使用KML数据检索谷歌地图Android版不工作了?

我想知道如果有一种方式来获得一个行走路线,而不是行驶路线的。

I would like to know if there's a way to get a walking route instead of the driving route.

推荐答案

您在您的网址需要模式的参数值。

You require mode parameter value in your URL.

查看,可追加到URL不同的参数。

Check out here, different parameters which can be append to URL.

有关在URL提供模式的价值你只4模式的支持。

For providing Mode value in URL your have only 4 mode supported.


  1. 驾驶(默认)

  2. 步行

  3. 骑车

  4. 中天

支持模式的价值记录。

样品网址:

<一个href=\"http://maps.googleapis.com/maps/api/directions/json?origin=Toronto&destination=Montreal&sensor=false&mode=walking\" rel=\"nofollow\">http://maps.googleapis.com/maps/api/directions/json?origin=Toronto&destination=Montreal&sensor=false&mode=walking

这篇关于让行走路线 - Android电子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 20:11