如何将位置名称转换为位置坐标
问题描述:
是否可以使用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