且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将位置名称转换为位置坐标

更新时间:2023-02-11 10:44:19

是的,这是非常可能的。

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