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
<rdf :RDF xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<geo:Point>
<geo:long>-83.43243
<geo:lat>42.41729
</geo>
</rdf>
My name is
May 9th, 2005 at 2:49 am (#)
geocoder.us has its own rest interface, querying a TIGER database for US address geolocation.
http://geocoder.us/help/
the rest interface to the geocoder at brainoff.com queries a local copy of the GeoNet Names Database