从地址解析经纬度获取地址 [英] Get address from Geocode latitude and longitude

查看:138
本文介绍了从地址解析经纬度获取地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的大部分应用程序中,我正在从Geocoder获取城镇的纬度,经度,邮政编码等.我只是把城市和州放进去,作为回报,我得到

For the bulk of my application, I am getting the latitude, longitude, postal code, etc of a town/city from Geocoder. I am just putting in the city and state and in return I am getting

我处于一个有场地的场景中.该地点需要地址,而我从另一个来源获取该地点的经度和纬度.使用Geocoder宝石,我可以通过给它一个经度和纬度来获取地址吗?

I am in a scenario where I have a venue. That venue needs an address and I am getting that venues latitude and longitude from another source. Using the Geocoder gem, am I able to get an address by giving it a latitude and longitude?

推荐答案

使用reverse_geocode_by.全部都在这里: https://github.com/alexreisner/geocoder

Use reverse_geocode_by. It's all in here: https://github.com/alexreisner/geocoder

这篇关于从地址解析经纬度获取地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆