Waypoint after mile - Directions

685 views
Skip to first unread message

Wanea Mo

unread,
Dec 31, 2010, 7:33:25 PM12/31/10
to google-map...@googlegroups.com
I have code like this: http://code.google.com/apis/maps/documentation/javascript/examples/directions-draggable.html
It's great but i need create waypoint after mile (or 10, or 15, or 20 miles ...) from start (origin)

any ideas?
thanks very much

/sorry for my english/


geoco...@gmail.com

unread,
Jan 1, 2011, 1:11:32 AM1/1/11
to Google Maps JavaScript API v3
On Dec 31 2010, 7:33 pm, Wanea Mo <wane...@gmail.com> wrote:
> I have code like this:http://code.google.com/apis/maps/documentation/javascript/examples/di...
> It's great but i need create waypoint after mile (or 10, or 15, or 20 miles
> ...) from start (origin)
>
> any ideas?

Does this thread help?
http://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/96720321dd4bfcd3/a76a5a0041102ae8?lnk=gst&q=kilometer+markers#a76a5a0041102ae8

-- Larry

Wanea Mo

unread,
Jan 1, 2011, 6:46:20 AM1/1/11
to google-map...@googlegroups.com

It's interesting, but I need somethink different.
I have startpoint and endpoint (this is 2 cities). 
And now I need create waypoint on this highlighting way.
This waypoint is for example 10 miles from startpoint.

Also I need it in API v3.
Thanks a lot.

geoco...@gmail.com

unread,
Jan 1, 2011, 9:47:13 AM1/1/11
to Google Maps JavaScript API v3
On Jan 1, 6:46 am, Wanea Mo <wane...@gmail.com> wrote:
> It's interesting, but I need somethink different.
> I have startpoint and endpoint (this is 2 cities).
> And now I need create waypoint on this highlighting way.

That "highlighting way" is a polyline, that example puts markers every
2km.

> This waypoint is for example 10 miles from startpoint.
>
> Also I need it in API v3.

That thread includes an example from v3 (I ported the original example
from v2)
http://www.geocodezip.com/v3_polyline_example_kmmarkers_0.html

I think examples have been posted that do what you want as well, like
this one:
http://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/f96ddd69c9c5a3cb/c71fa7dec0e9d844?lnk=gst&q=kilometers+from+start+geocodezip#c71fa7dec0e9d844

Which contains this example:
http://www.geocodezip.com/v3_GoogleEx_directions-waypoints_kmmarkersC.html

-- Larry

> Thanks a lot.

Wanea Mo

unread,
Jan 1, 2011, 12:42:22 PM1/1/11
to google-map...@googlegroups.com

thank you very much, it's great


Reply all
Reply to author
Forward
0 new messages