On Dec 27, 6:04 pm, robert <[email protected]> wrote:
> How can I calculate the physical length of roadway within chosen area
> (e.g. 10 square km rectangle)? That is to say the length that would be
> given if all the sections of roadway were laid out end to end.

I don't believe you could do it entirely automatically: there would
have to be some interaction, I think.

You could have a system which first drew your square, then allowed the
user to position two markers and get the directions from one to the
other: that would give a length. Do it again for another two markers,
and so on. Keep a running total of each journey. Be careful of dual-
carriageways and one-way streets.

There are sources of potentially significant error in using the API,
though, so I don't think you should rely very heavily on the result.

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