You can test for roads and "addresses", but, at the moment, not for 
anything else.

At one point the reverse geocoder would return information about parks 
and other features that are shown on the streetmaps. Basically, if the 
feature appears as a green, blue, pink or grey region on the streetmap 
tiles, then it would be listed in the reverse geocoder replies. That no 
longer happens.

To test if the point is close to a road, use GDirections to find the 
route from the point to itself. This will snap to the nearest known 
road. Read back the location that it snapped to, and find the 
.distanceFrom() the original point. Unfortunately, there's nothing that 
tells you how wide the road is.

To test if the point is at an "address" use the reverse geocoder and see 
if there's a Placemark with an Accuracy of 8 or higher. If so, parse the 
result.address to see if there's a single property number[1]. That's not 
going to tell you if you've actually hit a house, you could be in the 
garden of the house, or the property could be a school or office or 
shopping mall.

[1] I think that might be a recent change in the reverse geocoder 
behaviour. Previously it always seemed to return accuracy 6 or less if 
the point was close to an interstate or rural road with no addressable 
properties nearby, but now it sometimes returns things like
   accuracy = 8
   address = 8960-8998 N Shoal Creek Pkwy
If you get a single property number, then it's an "address". If you get 
two numbers separated by a hyphen, then it isn't.

-- 
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team


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