Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
I'm trying to get route using google map directions service

C++
Uri uri = new Uri("http://maps.googleapis.com/maps/api/directions/xml?origin=adrori&destination=adrdest&waypoints=adr1|adr2|....|adr8&sensor=false");
                  HttpWebRequest httpRequest = (HttpWebRequest)HttpWebRequest.Create(uri);
                  HttpWebResponse httpResponse = (HttpWebResponse)httpRequest.GetResponse();

and put the result in xml file.
After parsing the xml file and getting the path, i send onother request to google static map to display the path in a windows mobile 6 application.
Every thing works fine but i can't find a way to use more than 8 waypoints in the request.
Any help please?
Posted
Updated 12-Mar-13 3:28am
v2

1 solution

Free version of google maps only allow upto 8 intermediate waypoint.
If waypoint exceeds more than 8 then google will return MAX_WAYPOINTS_EXCEEDED status.

Please refer below URL for more usage restriction of Google maps.
https://developers.google.com/maps/documentation/directions/?hl=no#Limits

Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900