如何在谷歌地图Android中根据最佳路线显示多个地方路线 [英] How to show multiple place route according to best Route in google map android

查看:138
本文介绍了如何在谷歌地图Android中根据最佳路线显示多个地方路线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在android上显示多个经纬度之间的路线.我可以显示两个点之间的路线.但是我想根据google map中的最佳路线路径显示多个点的路线.像这个网站

I want to show a route between multiple lat long on android.I can show route between two point.But I want to show multiple points route according to best route path in google map.Like this site Click here. I am using android native programming .

先谢谢了.

推荐答案

使用Google Directions API并使用路标构造您的路线请求.从API文档"Waypoints允许您计算通过其他位置的路线."

Use the Google Directions API and construct your directions request with waypoints. From the API docs "Waypoints allow you to calculate routes through additional locations."

请参阅- 在路线中使用航点

这篇关于如何在谷歌地图Android中根据最佳路线显示多个地方路线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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