Hi Larry,

Well they are not all connecting right now since they where not all
working i did stop linking each point together.

As for the start direction there is not really one, those are the
route of a fiber network.

Thank you verry much for the suggestion and link i will look into them
carefully and come back here if i can't find my issue.

Again thank for the help.
Spidersea

On Dec 15, 10:28 pm, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:
> Spidersea wrote:
> > HI all,
>
> > First i'm sorry for not providing a demo and thank for being kind
> > enough to give me some pointer.
>
> > As for the GeoLocation i do already have a geolocation cache to speed
> > up thing, so i only convert geoLocation if the location is more then 6
> > month old or there is no location yet.
>
> > Please keep in mind that my javascript is not optimized yet.
>
> > There's a example of what i have done and is working fine :
>
> >http://www.royaume.com/google_test1.php?type=network
>
> > On this example you can see all the Polyline already configured.
>
> > Now with the same data but trying to link each different point with
> > GDirection  :
>
> >http://www.royaume.com/google.php?type=network
>
> > You will see that there is missing link, and if you reload the link
> > will change, you will also notice a longer delay before the map finish
> > loading.
>
> > I hope there is enough information for you guys to give me some help,
> > if not please feel free to ask.
>
> FYI - both of those pages generate errors in IE.
>
> Comments:
> 1. It is bad practice to put functions inside of other functions,
> unless you have a good reason for doing so.  Your createMarker,
> createPolyline and callGDirections functions are local to your
> initialize function.  That will cause problems if you try to use them
> in the global context.
>
> 2. Try to limit the number of calls to GDirections.  You can put up to
> 25 waypoints in a single call.
>
> 3. You need to add code to listen for the GDirections "error" event
> and handle it appropriately:
> Mike Williams has an example in his tutorial:
> Part 26 Get directions on your own maphttp://econym.org.uk/gmap/directions.htm
> You should also look at:
> Part 17 Geocoding multiple addresseshttp://econym.org.uk/gmap/geomulti.htm
> Because the same issues with rate limiting apply.
>
> I would suggest you put each unique path into a separate GDirections
> call.  That looks like it will give you 5 or 6 GDirections calls, but
> I don't know where each trip starts and ends from looking at your
> code.  By looking at the resulting map (the one you say works), I can
> see that they don't all connect .
>
>   -- Larry
>
> > Regards
> > Spidersea
>
> > On Dec 15, 1:52 am, "geocode...@gmail.com" <geocode...@gmail.com>
> > wrote:
> > > On Dec 14, 7:08 pm, Spidersea <spider...@gmail.com> 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 Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to