http://code.google.com/apis/maps/documentation/javascript/reference.html#GeocoderResult
check the 'types' field for 'street_address' Example: http://maps.googleapis.com/maps/api/geocode/json?address=sydney&sensor=false vs http://maps.googleapis.com/maps/api/geocode/json?address=48+pirrama+rd&sensor=false Chris On Fri, Nov 26, 2010 at 11:47 AM, Beuy <[email protected]> wrote: > I am working on a website that will allow customers to book a unique > limousine style vehicle, part of the booking process is to enter a > pickup and destination address. If possible I would like to validate > these addresses against Google maps to ensure accuracy and calculate > the distance between A and B. So far I have looked into the geocoding > examples but have run into the problem of users being able to input > very large regions such as major cities. > > Is there a way to prevent non-specific addresses from being geocoded > or returning false? E.G I don't want users to be able to enter > "Brisbane" and get a successful geocode result. > > If there is a better way to achieve this please let me know. > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-maps-js-api-v3%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
