开发者

How to display a route between two geocoords in google maps? [duplicate]

开发者 https://www.devze.com 2022-12-27 03:50 出处:网络
This question already has an answer here: Closed 9 years ago. Possible Duplicate: J2ME/Android/BlackBerry - driving directions, route between two locations
This question already has an answer here: Closed 9 years ago.

Possible Duplicate:

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

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?

I must admit that I'm quite n开发者_开发技巧ew to Android and the maps-API...


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.


Your route will be a list of points so you have to create a route overlay class. And in the draw method of the overlay class you have to draw a Path between the points.

0

精彩评论

暂无评论...
验证码 换一张
取 消