On Dec 14, 7:08 pm, Spidersea <[email protected]> wrote:
> Hi all,
>
> Right now i'm using google map api to show up around 100/150 point.
>
> Those point show up correctly with there respective icon.
>
> If i Link them with createPolyline everything work fine.
>
> If i try to link them with GDirections, i have no problem if i have
> less then 5 link.
>
> If i try to link the 100+ point together using GDirections, everytime
> i reload the page there is between 2 to 5 link showing up and none of
> them is the same as the previous display of the page.
>
> What i need on the map to be view is a link following all the road so
> using basic polyline is not suitable for this.
>
> So i was wondering if there is some special setting to apply to have
> GDirections work with more then 5 anchors or if i should use something
> else and if so what should i do.

The best thing to do would be not to do it every time you load the
page.  If the 100/150 points are always the same, generate the
directions for them, save the polyline (or encode it) then save it
along with the points.
I use this page:
http://www.geocodezip.com/example_geo2.asp
It allows me to create an xml file that I can display with a API based
page.

If you can't do that you will have to add some code to listen for
GDirections "errors" and when the error is G_GEO_TOO_MANY_QUERIES
(620), delay and try again.
You should be able to do 25 waypoints per GDirections query.

If none of the above helps, read and follow the posting guidelines
(post a link to your map that shows the problem...)

  -- Larry

>
> Thank in advance for your time.
> Cédric
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to