One approach would be to use something like ourarea to draw polygons for 
the delivery area of each business. That has the advantage of being able 
to cope with areas that don't exactly correspond to existing known 
geographic areas.

   http://www.nirmalpatel.com/ourarea/

If you've only got a few such regions to scan, then you can do it in 
Javascript with EPoly2 using poly.Contains().

[Hint: The map goes slow when you have a lot of polygons addOverlay()ed, 
but you don't need to addOverlay() a poly in order to use 
EPoly2.Contains().]

If you've got a lot of polys to scan, then you get slowness from 
fetching all that poly data, and from the fact that EPOly2.Contains() is 
doing lots of number crunching in Javascript, which is not a fast 
language. So you'd probably want to perform the filtering on your 
server. I believe that there are spatially aware SQL implementations 
that might be able to do the filtering directly, but if not, feel free 
to translate EPoly2.Contains() into your preferred server language.

-- 
Mike Williams
http://econym.org.uk/gmap


--

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