How to create 'add via points' functions in my own route planer? (I am using Javascript and PHP)

104 views
Skip to first unread message

kaiik

unread,
Oct 30, 2011, 2:47:07 PM10/30/11
to google-map...@googlegroups.com
Summary of Issue: Hello guys, I am doing a project about creating a route planer based on Google Maps API using Javascript and PHP. I have built a interface which can let people find route and distance between 2 points on the maps and can also initialize the map at a specific location. However, I still can not find out how to create 'add via points' functions in my route planer. I want to create this function so users can add more points on the map and create a route in one goal, just like the AA route planer: http://www.theaa.com/route-planner/index.jsp#

Please give me some advices about how to do this. Also is there some tutorial I can follow?

Cheers!

Masashi.K

unread,
Oct 30, 2011, 4:42:48 PM10/30/11
to Google Maps JavaScript API v3
Hi kaiik

"via points" is in DirectionsRequest as "way points":
http://code.google.com/apis/maps/documentation/javascript/reference.html#DirectionsRequest

A turorial is here:
http://code.google.com/apis/maps/documentation/javascript/services.html#Waypoints



On 10月30日, 午前11:47, kaiik <kai1989...@gmail.com> wrote:
> Summary of Issue: Hello guys, I am doing a project about creating a route
> planer based on Google Maps API using Javascript and PHP. I have built a
> interface which can let people find route and distance between 2 points on
> the maps and can also initialize the map at a specific location. However, I
> still can not find out how to create 'add via points' functions in my route
> planer. I want to create this function so users can add more points on the
> map and create a route in one goal, just like the AA route planer:http://www.theaa.com/route-planner/index.jsp#
> <http://www.theaa.com/route-planner/index.jsp#%20>
Reply all
Reply to author
Forward
0 new messages