Google Maps API - Get points along route between lat/long

Posted by user311374 on Stack Overflow See other posts from Stack Overflow or by user311374
Published on 2010-04-07T20:52:22Z Indexed on 2010/04/07 22:13 UTC
Read the original article Hit count: 363

Filed under:
|
|
|

I have a web site that I am trying to get completed and I need to have the user click points on a map and then work out the route on the roads between the two points. So the user clicks the first point on 1st street, and then clicks another point on 4th street, and the map will find the best way to get there and plot the route on the map. I am assuming this can be done using directions and parse it up, but I have been searching for an hour now and can't find what I am looking for (maybe bad search terms). I need to be able to plot the map manually (?) so I can calculate the distance, etc... of the route as the user continues to click.

The site that is in beta is http://www.RunMyRoute.com/UserRoutes/Create and you can see I am trying to create running routes. I want the user to have the option for the route to follow the roads versus just a straight line between two points on the map.

Any help on this would be great!

Simon.

© Stack Overflow or respective owner

Related posts about google

Related posts about maps