Rails geocoding gems
I've used GeoKit and acts_as_geocodable in the past. I like GeoKit, but its missing nicer features like named_scopes. I'm not a huge fan of acts_as_geocodable because it duplicates address data into its own table.
Lately, the开发者_开发百科se gems seem under-maintained.
What are some actively maintained gems out there?
I maintain the Geocoder gem:
http://rubygems.org/gems/geocoder
Source code:
http://github.com/alexreisner/geocoder
I can tell you it's actively maintained because I'm working on Rails 3 compatibility as I write this! It's designed to be very simple, while providing the most commonly-used geocoding features. It provides named scopes and doesn't duplicate any data.
Plugin version of geocoder is working great for me. Note that you have to rename "scope" to "named_scope" to get it to work in anything less than rails 3.
There is a 'geokit-rails3' gem can also do geocoding and reverse geocoding:
https://github.com/jlecour/geokit-rails3
It provide multiple geocoders like GoogleGeocoder and YahooGeocoder, So you can choose the most proper one according to your which map you are rendering.
精彩评论