Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to draw a route by using different lat long values?

I am implementing an application related to map activity.

Based on my requirements I am saving many lat long values in my db,
as follows:

id lat long 1 17.490431 78.407435 2 17.488221 78.409667 3 17.48249 78.414559 4 17.470292 78.426747

My requirement is to get all lat/long from the db and draw the route by using the lat/long.

If any one knows the solution please help me.

like image 553
kiran Avatar asked Sep 24 '12 06:09

kiran


1 Answers

1st you have to know how to draw route between two Geo points.

Distance calculation from my location to destination location in android

Android - To draw a route between two geo points

https://stackoverflow.com/questions/10551034/how-to-draw-line-between-two-pointslatitude-and-longitude-in-google-map-in-and

Draw route by getting my point to destination point

drawing routes with the help of latitude and longitude values saved in database

Follow the link and surf net.there have many resource there.

like image 113
MBMJ Avatar answered Sep 27 '22 23:09

MBMJ