Hi

I'm in need of some guidelines and not asking for an specific error.
Hope that's ok.

I'm working in a new website that will provide traffic info for the
motorways of an area which is not covered by Google Maps Traffic. That
website will be public and free of charge. And in fact it will replace
a website that already provides this kind of info (and is widely used)
over a different platform that we'd like to change to Google Maps (it
being widely known and being easy to use and update). So I guess
that's not a problem with the TOS (correct me if I'm wrong here and I
need to get a licence please).

Some of the info will mean painting the motorways with different color
depending on the density/speed of the traffic. At first I wasn't sure
on how to draw a polyline over the motorways on the GMaps for which
we'll provide the info. Now, with the GDirections, I've been able to
draw a polyline that suits me nicely (that meaning a polyline inside
the motorway on the map). But I have some questions about how to draw
all the lines I need in an efficient way.

First of all, I'll get you the approximate amount of directions/
polylines I need:
 - I need to provide info for 7 different motorways.
 - Each motorway will be segmented (between 5 to 15 segments each).
 - I need to paint each segment in an appropiate color depending on
it's traffic density/speed.
 So, I guess all in all there will be between 100-150 segments (the
exact segments have yet to be defined).

So, drawing those 100 or more polylines have some implications. And as
I know before hand what the polylines will be, I am thinking on how to
do it in the most eficient and easy way, so that it doesn't wastes
Google resources and loads fast enough. So, how do I do that?????? Any
reccomendations???

There goes a bunch of questions I've been thinking about:
- Shall I'll get 2 GDirections for each motorway (north and south)
with multiple waypoints for the segments and draw the 14 GDirections
on the maps? That will imply calculating them every time even though I
know them before hand. And I guess calculating 14 GDirections will be
quite a waste of resources. If I do that, can I color each segment in
a different color? (a GDirection with 2 waypoints equal 3 segments,
which equals up to 3 possible different colors).
- I've seen that there's a way to store a GDirection polyline. So.
Shall I'll do those 14 GDirections on a test site (maybe one at a time
to make things easier), obtain the polyline, store it somehow, and
then on the final site just draw the stored polylines? If so, would it
be faster if I encode the obtained polyline and then I always work
with the encoded one?
- Another question in relation with storing the polylines is about the
segments (the steps between waypoints). I need to get the one hundred
different segments, so, shall I store the 100 segments in 100
different polylines? Can I store the segments of a GDirection with
various Waypoints in different polylines? Or shall my test page do a
100 directions and store all of them independently??

Resuming this up: I've got to paint some 100-150 polylines in
different colors. The polylines will be drawn exactly over the
motorways, so GDirections gets the polyline perfectly. As the
polylines/directions are known before hand, I want to know how to do
it as fast as possible (in all likelyhoods that will mean storing the
100 polylines extracted from GDirections before hand and working
directly with them).

Any guiding lines from an experienced GMaps developer will be highly
appreciated!
Thanks in advance.

--~--~---------~--~----~------------~-------~--~----~
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