经过纬度和经度时,什么链接会返回一个地址?

时间:2011-07-02 11:17:16

标签: google-maps geolocation maps

http://maps.google.com/maps/geo?q=address&output=csv

上面的链接给出了地址的纬度和经度。

我想要一个类似的链接从纬度和经度获取地址。

2 个答案:

答案 0 :(得分:2)

您需要在查询字符串中传入latitudelongitude。所以像这样:

http://maps.google.com/maps/geo?q=43.6426038,-79.3871169&output=csv

将返回

200,9,"CN Tower, Toronto, ON M5V 2T6, Canada"

此处有关Google地图参数的完整说明:http://mapki.com/wiki/Google_Map_Parameters

答案 1 :(得分:0)

使用 在Api以下,您可以从Lat和Log获取地址 NSString * address = [NSString stringWithFormat:@“http://ws.geonames.org/findNearestAddress?lat=%f&lng=%f”,newLocation.lattitude,newLocation.longitude]; NSURL * url = [NSURL URLFromString:address];