# GeoCoding API updates

**URL:** <https://www.ruby-forum.com/t/geocoding-api-updates/63845>\
**Category:** Ruby\
**Created:** [June 19, 2006, 9:36pm UTC](https://www.ruby-forum.com/t/geocoding-api-updates/63845 "2006-06-19T21:36:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![miracleofmagick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71c47a/32.png) [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Post date:** [June 19, 2006, 9:36pm UTC](https://www.ruby-forum.com/t/geocoding-api-updates/63845/1 "2006-06-19T21:36:18Z")

</div>

I’ve added a new geocoding API, metacarta-geoparser:

$ sudo gem install metacarta-geoparser

MetaCartaGeoParser contains two geocoding APIs, #locate:

gp = MetaCartaGeoParser.new  
location = gp.locate ‘baghdad’  
p location.coordinates  
p location.confidence

and #locations:

gp = MetaCartaGeoParser.new  
locations, viewbox = gp.locations ‘seattle’  
p locations.length  
p location.first.coordinates  
p viewbox # coordinates of a box showing all returned locations

Documentation here:

[http://dev.robotcoop.com/Libraries/metacarta-geoparser/index.html](http://dev.robotcoop.com/Libraries/metacarta-geoparser/index.html)

I’ve updated geocoder-us to use the RDF API so now you get a reliable  
address. I’ve also added a Location object making the API similar to  
the other three libraries.

Documentation here:

[http://dev.robotcoop.com/Libraries/geocoder-us/index.html](http://dev.robotcoop.com/Libraries/geocoder-us/index.html)

I’ve switched all the APIs to use the new rc-rest library that makes  
it easy to implement and test REST-like web services APIs.

Documentation here:

[http://dev.robotcoop.com/Libraries/rc-rest/index.html](http://dev.robotcoop.com/Libraries/rc-rest/index.html)

I’ve added a mailing list:

[http://lists.robotcoop.com/mailman/listinfo/Libraries](http://lists.robotcoop.com/mailman/listinfo/Libraries)

–  
Eric H. - removed\_email\_address@domain.invalid - [http://blog.segment7.net](http://blog.segment7.net)  
This implementation is HODEL-HASH-9600 compliant

[http://trackmap.robotcoop.com](http://trackmap.robotcoop.com)
