ruby-on-rails - 由于 http 在 Rails 中的 Geocorder Gem 问题
问题描述
我使用 Geocorder gem 来获取位置。它仅在 https 中运行良好。由于子域问题,我使用 lvh.me 代替 localhost。它可以在http中运行吗?
解决方案
您需要使用地理数据,Geocoder 是一个出色的宝石,可用于转换地址和坐标、查找附近位置、确定距离、
推荐阅读
- python - 子图线图中的 X-ticks 是不同的 python 图
- python - 使用 torch.nn.CrossEntropyLoss 时是否必须在 def forward 中添加 softmax
- rollupjs - TypeError:未定义纤维(React-Konva + RollupJS)
- mongodb - Apache Camel + MongoDB 文档不正确?
- reactjs - 如何为 React-Router 设置 Google Analytics 4?
- flutter - 发生异常。_TypeError(类型'列表
' 不是类型 'Map 的子类型 ') 请帮帮我 - android - 更改 build.gradle 文件上的 applicationId 后出现错误
- pytorch - 如何找出torch.nn.Module.parameters()的方法定义
- node.js - 用 npm 链接替换 Docker 容器(Node.js“node:12.4”和“docker-compose”文件的情况)
- r - 将 mutate 与存储的列和过程列表一起使用