GeoNames Home | Postal Codes | Download / Webservice | About |
search

Geocode Webservice



geocode

Returns lat/lng for an address in the US.

Webservice Type : XML,JSON
Url : api.geonames.org/geocode?
Parameters :
q: search terms (streetname,city, zip code, housenumber etc for a US address) Result : returns the lat/lng and address infos for the most relevant streetsegment
Example:
http://api.geonames.org/geocode?q=N+Civic+Center+Dr&username=demo
or
http://api.geonames.org/geocodeJSON?q=N+Civic+Center+Dr&username=demo

[more geocoding]




Note : Don't forget to url encode string parameters containing special characters or spaces. (Faq entry on url encoding)