我怎样才能从经纬度得到城市名称? [英] How can I get city name from a latitude and longitude point?

查看:381
本文介绍了我怎样才能从经纬度得到城市名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以从经纬度的角度使用Google Maps API来获取城市名称?



如果可以,请看一个例​​子吗?

解决方案

这称为反向地理编码 ul>

  • Google提供的文档:
    $ b

    http://code.google.com/apis/maps/documentation/geocoding/#ReverseGeocoding

  • href =http://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=true =noreferrer> http://maps.googleapis.com/maps /api/geocode/json?latlng=40.714224,-73.961452&sensor=true

    Is there a way to get a city name from a latitude and longitude point using the google maps api for javascript?

    If so could I please see an example?

    解决方案

    This is called Reverse Geocoding

    这篇关于我怎样才能从经纬度得到城市名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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