【问题标题】:What is the best way to implement a "Find a Store" feature in Rails?在 Rails 中实现“查找商店”功能的最佳方式是什么?
【发布时间】:2011-04-13 03:33:57
【问题描述】:

我将在一个项目中实现搜索功能,以允许用户在输入物理地址的情况下根据行驶时间找到最近的商店。我更喜欢显示最近经销商的谷歌地图。我正在使用带有 Rails 2.1 的 PostgreSQL 8.4.x。谁能推荐一个好的解决方案(Ruby gem、Google 等 Maps API、PostGIS 数据库等)?谢谢,奇拉格

【问题讨论】:

    标签: ruby-on-rails postgresql google-maps geolocation postgis


    【解决方案1】:

    我一般用Geokit:

    https://github.com/andre/geokit-gem

    或 Geokit Rails 3:

    https://github.com/jlecour/geokit-rails3

    当然,我使用我的 gem gmaps4rails

    【讨论】:

      【解决方案2】:

      以前没有真正做过类似的事情,但是这些资源应该很有用:

      http://ym4r.rubyforge.org/tutorial_ym4r_georuby.html

      https://github.com/apneadiving/Google-Maps-for-Rails

      【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-11-25
      • 2013-05-01
      • 1970-01-01
      • 2011-09-10
      • 1970-01-01
      • 2018-02-10
      • 2022-10-17
      • 2010-09-17
      相关资源
      最近更新 更多