Obtaining Lat/Lon of a City

Geocoder was developed by Mikel Maron at Worldkit. It's an interface to geocoder.us that provides th e latitude/longitude of any city via a REST interface.

What this means is, it's possible to send an HTTP query to the worldkit interface and receive the latitude and longitude via an RDF response. This is very slick for being able to get and plot lat/lon of a city given only it's name. I have already been doing this via large files from CAIDA on my own projects, but providing this REST interface may make it nicer to distribute on mobile platforms or quicker integrate into new projects/desktop apps.

The interface is:
http://brainoff.com/worldkit/geocoder/rest/?city=Northville,MI,US
followed by the response

   

-83.43243
42.41729


About this article

written on
posted in Geolocation Back to Top

About the Author

Andrew Turner is an advocate of open standards and open data. He is actively involved in many organizations developing and supporting open standards, including OpenStreetMap, Open Geospatial Consortium, Open Web Foundation, OSGeo, and the World Wide Web Consortium. He co-founded CrisisCommons, a community of volunteers that, in coordination with government agencies and disaster response groups, build technology tools to help people in need during and after a crisis such as an earthquake, tsunami, tornado, hurricane, flood, or wildfire.