首页 > 解决方案 > 由于 http 在 Rails 中的 Geocorder Gem 问题

问题描述

我使用 Geocorder gem 来获取位置。它仅在 https 中运行良好。由于子域问题,我使用 lvh.me 代替 localhost。它可以在http中运行吗?

标签: ruby-on-railsruby

解决方案


您需要使用地理数据,Geocoder 是一个出色的宝石,可用于转换地址和坐标、查找附近位置、确定距离、

railscast


推荐阅读