开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜