I'm accepting a user input which is supposed to be a geographic location. I would like to validate that what the user has entered describes a location--e.g., postal code, airport code, street address, city name, etc.
The obvious answer is to use the Google Geocode API to do a request for the user's input and see if I get any results.) However the geocode ToS forbids this:
...the Geocoding API may only be used in conjunction with a Google map; geocoding results without displaying them on a map is prohibited.
Does anyone know of alternatives?
Yahoo also has a geolocation API which has a less-restrictive TOS. By querying for a location, if you receive a non-
null
result set then you know its a valid place.whereas