Using Google maps to calculate a 'Roundtrip'

2,502 views
Skip to first unread message

mr10

unread,
Jan 31, 2012, 9:51:01 AM1/31/12
to google-map...@googlegroups.com
I'd like to be able to calculate a roundtrip in Google Maps, for e.g. running or cycling.

The idea would be to choose a distance (10km, 15km, etc) and then to calculate a few possible routes going from and returning to a set starting point

I'm having a hard time finding where I should start my search, or if this idea is even possible to implement.

Would anyone be so kind as to point me in the right direction?

Kind regards,
Maarten

Marcelo

unread,
Jan 31, 2012, 2:16:19 PM1/31/12
to Google Maps JavaScript API v3
If you go out half the distance and then return by backtracking on the
same route then you can do something similar to my V2 driving radius
example:
http://maps.forum.nu/gm_driving_radius.html

A round trip with a different return route is slightly more complex,
but you get the idea.

--
Marcelo - http://maps.forum.nu
--
Reply all
Reply to author
Forward
0 new messages