如何将位置名称转换为位置坐标 [英] How to convert location name to location coordinates
本文介绍了如何将位置名称转换为位置坐标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以使用Google地图API从位置名称获取经纬度?
Is it possible to get latitude and longitude from location name using Google Maps API ?
如果是这样?
If so how ?
推荐答案
是的,这是非常可能的。
Yes it is very well possible .
向以下URL发出获取请求,作为回应,您将获得信息您需要
make a get request to following URL and in response you will get the info you needed
http://maps.google.com/maps/geo?q=Rajkot,Gujarat,India&output=xml&oe=utf8&key=abcdefg
替换拉杰科德,古吉拉特邦,印度
与要查询的地点名称
replace Rajkot,Gujarat,India
with the place name you want to query
- Document
这篇关于如何将位置名称转换为位置坐标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文