Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to draw a route between two geopoints on the Android

Tags:

I have two OverlayItem's on a MapView. How can I draw a route between the two geopoints?

like image 586
Kareem Avatar asked Jan 24 '10 00:01

Kareem


2 Answers

This application is contained with source code... It'll solve ur probs.

http://www.anddev.org/the_friend_finder_-_mapactivity_using_gps_-_part_i_-_ii-t93.html

like image 140
Vishal Khakhkhar Avatar answered Oct 15 '22 18:10

Vishal Khakhkhar


This posting J2ME/Android/BlackBerry - driving directions, route between two locations suggests:

you must not use the Map Service with any applications for route guidance, including but not limited to turn-by-turn route guidance that is synchronized to the position of a user's sensor-enabled device

As such, there is no Android or Google API for showing the route between two points on Android, as far as I know. People have hacked it in by various approaches, but you run the risk of having your Map key disabled.

If I am wrong, I would love to be corrected.

like image 21
user278349 Avatar answered Oct 15 '22 20:10

user278349