要获得纬度和经度的城市的地理编码区域名称 [英] Geocode Area Names of a City to get Lat and Long

查看:187
本文介绍了要获得纬度和经度的城市的地理编码区域名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的城市中有一个地区名称列表,我需要相同的纬度和经度.

I have a list of areas names in my City and i need the Lat and Long of the same.

我可以使用获取数据的任何服务吗?

Is there any service which i can use the get the Data ?

我不想使用任何地图.我想进行简单的api调用,并通过json或xml来获取经度.

I dont wanna use any map. I would like to make simple api calls and get the lat long via json or xml.

推荐答案

您可以使用Google地理编码服务:

You can use the Google Geocoding service:

REST格式: http://code.google.com/apis/maps/documentation/geocoding /index.html

JavaScript: http://code.google.com/apis/maps/documentation /javascript/services.html#Geocoding

JavaScript: http://code.google.com/apis/maps/documentation/javascript/services.html#Geocoding

编辑:对于那些懒得阅读的人,这里是REST格式的示例.

EDIT: For those too lazy to read, here's the REST format example..

xml响应: http://maps.googleapis.com/maps/api /geocode/xml?address = Bangalore& sensor = false

json响应: http://maps.googleapis.com/maps/api /geocode/json?address = Bangalore& sensor = false

这篇关于要获得纬度和经度的城市的地理编码区域名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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