On Jan 3, 6:52 am, sandy037 <[email protected]> wrote: > Hi all, > > I am currently working on google map javascript v3. I want to load > several directions on the map using lat and lng values from a > database. My problem is concerned with the speed with which this > processing takes place. The map might potentially contain 20,000 > directions to be loaded and may be more.
That will not be possible within the terms of use, considering the quota and rate limits on the directions service, and the fact that you must display the directions on the map to meet the terms of use. > Which is the best way to pull all the data from the database like using JSON > or XML or something > other? If you are using the directions service: http://code.google.com/apis/maps/documentation/directions/ Review the terms of use and limits of that: http://code.google.com/apis/maps/documentation/directions/#Limits (It does say you can "store your results in a _temporary_ cache of your own design."). I don't know that a database would qualify, unless you have some way of timestamping routes and deleting them after some period of time. > Also is it a good idea to load all the directions at once on > the maps coz it might take a lot of loading time. Is there any way to > cluster the directions like markers? Perhaps, but I don't think your use case is going to meet the terms of use (my personal opinion, you need to read the terms and decide for yourself), you might want to check that before proceeding. -- Larry -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
