Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(5)
您当前最好的选择可能是 GeoKit (http://github.com/andre/geokit-gem对于 gem,http://github.com/andre/geokit-rails 对于插件)。它内置了 Yahoo 和 Google API 密钥、距离计算助手、反向地理定位等功能。
但是,GeoMereLaal (http ://github.com/parolkar/geo_mere_laal/)基于 W3C Geolocaton API 的工作草案。目前它非常有限,因为我只能让它在 Firefox 中工作,但它会更加准确,因为它受到更多浏览器的支持,因为它使用了更多的地理定位方法(GPS、WiFi、cookies、IP)。
Your current best bet is probably GeoKit (http://github.com/andre/geokit-gem for gem, http://github.com/andre/geokit-rails for plugin). It has built in functionality for Yahoo and Google API keys, distance calculation helpers, reverse geolocation, etc.
However, GeoMereLaal (http://github.com/parolkar/geo_mere_laal/) is based on the working draft of the W3C Geolocaton API. It's very limited at the moment as I could only get it to work in Firefox, but it will be more accurate as it's supported by more browsers since it uses more methods of Geolocation (GPS, WiFi, cookies, IP).
RubyGeocoder 似乎是当前最受欢迎的,并且它一直保持最新状态。配有 railscast 剧集! http://rubygeocoder.com/
RubyGeocoder seems to be the current favorite and it's kept up to date. Comes complete with a railscast episode! http://rubygeocoder.com/
使用更方便,设置更快,但功能较少:http://humbuckercode.co.uk /licks/gems/geoip。
没有外部查询,没有模式更改,而且速度相当快。
Easier to use and faster to set up, but with less features: http://humbuckercode.co.uk/licks/gems/geoip.
No external queries, no schema changes and quite fast.
虽然我从未使用过它,但 Graticule 看起来很有前途。
While I've never used it, Graticule looks promising.
Geocoder 是 Ruby 的完整地理编码解决方案。通过 Rails,它添加了地理编码(通过街道或 IP 地址)、反向地理编码(根据给定坐标查找街道地址)和距离查询。就像对对象调用地理编码一样简单,然后使用 Venue.near("Billings, MT") 等范围。
https://github.com/alexreisner/geocoder
Geocoder is a complete geocoding solution for Ruby. With Rails it adds geocoding (by street or IP address), reverse geocoding (find street address based on given coordinates), and distance queries. It’s as simple as calling geocode on your objects, and then using a scope like Venue.near("Billings, MT").
https://github.com/alexreisner/geocoder