简体   繁体   English

在点 googlemaps 之间添加路径或绘制路径

[英]add path or draw path between to points googlemaps

Want to ""add path or draw path ""between two points (two overlay items ) to appear in Google maps using Android?想要使用 Android 在两点(两个叠加项)之间“添加路径或绘制路径”以出现在 Google 地图中? how to do this ?这个怎么做 ? ( drawing path between two points ) (两点之间的绘制路径)

if you want to display a path (following a road/rail) then you need to use the google maps api (either using a json object parsing or xml parsing) to get the path between 2 points, if you just want to draw a line between two points (euclidean distance) then you can simply draw it using the canvas and the paint functions. if you want to display a path (following a road/rail) then you need to use the google maps api (either using a json object parsing or xml parsing) to get the path between 2 points, if you just want to draw a line在两点之间(欧几里得距离),那么您可以使用 canvas 和绘图功能简单地绘制它。 Google either of these queries and you should hit tutorials.The person above has provided tutorials for the first option.谷歌这些查询中的任何一个,你应该点击教程。上面的人提供了第一个选项的教程。 goodluck.祝你好运。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM