MiniGeocode

MiniGeocode is a small plugin for Ruby on Rails which adds a geolocation services to your project. I created this plugin because I needed geocoding for my web application without complex dependencies. Also Google had removed the API key requirement so a new plugin was easy to create.

The source is hosted at github: https://github.com/tompesman/mini_geocode

Status: Stable

Installation: gem install mini_geocode

Usage:

1
2
MiniGeocode.address_to_gps("1600 Amphitheatre Parkway, Mountain View, CA")
returns: {"lng"=>"-122.0829964", "lat"=>"37.4217080"}

or

1
2
MiniGeocode.gps_to_address(37.4219551,-122.0844984)
returns: "1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA"

Copyright © 2013 - Tom Pesman - Powered by Octopress