Thanks both Rossko and Marcelo,
I hadn't thought at all of that possibility, but it might be an
option.
I'm using a variant of Mike Williams method of using loadFromWaypoints
to snap the polyline to streets.

Instead of having an overlay of the streets of interest, I could have
a databased list that was then checked against the returned
directions.
I do wonder though whether its fair to expect that street names that
we might enter will match identically with googles geocoded street
names, and would also need to deal with identical street names.
Another complexity is that we are actually interested in when a
jounrey enters a zone of high traffic, and such zones may well not be
the full streets (although they also won't just be easy circular or
polygonal zones either).
But when I get time this is certainly worth experimenting with to see
how well it will work.

Out of interest - if appears that detection of polyline crossings is a
common requirement in GIS and I'm wondering if anyone is aware whether
this might be built into future API versions (or whether it is
something that the API should / cannot be expected to do)?

thanks again, and any other thoughts on the problem are appreciated.
 ...stu


On Mar 27, 1:49 am, Rossko <[email protected]> wrote:
> > I've been working with the API to draw journeys using various travel
> > modes as a series of snapped polylines on a map.
>
> > I now need to try and detect when any part of a journey enters /
> > leaves one of several streets.
>
> Snapped ... to what?  Geocoded street address presumably, does this
> not conatin information you can work with?

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