Geocoding gem for Mongoid
Is there a geocoding gem similar to acts_as_geocodable for Mongoid? So far as I can tell all geocoding ge开发者_开发百科ms seem to be built for ActiveRecord.
Geocoder seems to work with mongoid http://www.rubygeocoder.com/ There is also a nice screencast here http://railscasts.com/episodes/273-geocoder.
Just use something like GCoder https://github.com/heycarsten/gcoder if you are using google.
If you want callbacks like acts_as_geocodable you can extend your model to use this lib.
精彩评论