http://maps.google.com/maps/geo?q=address&output=csv當我傳遞經緯度時,什麼鏈接將返回地址?
上面的鏈接給出了地址的經緯度。
我想要一個類似的鏈接從經度和緯度獲取地址。
http://maps.google.com/maps/geo?q=address&output=csv當我傳遞經緯度時,什麼鏈接將返回地址?
上面的鏈接給出了地址的經緯度。
我想要一個類似的鏈接從經度和緯度獲取地址。
您需要在查詢字符串中傳遞latitude
和longitude
。因此,像這樣:
http://maps.google.com/maps/geo?q=43.6426038,-79.3871169&output=csv
將返回
200,9,"CN Tower, Toronto, ON M5V 2T6, Canada"
谷歌地圖參數的全面介紹在這裏:http://mapki.com/wiki/Google_Map_Parameters
使用 下面API,您可以獲取地址從LAT和登錄 NSString * address = [NSString stringWithFormat:@「http://ws.geonames.org/findNearestAddress?lat=%f & lng =%f「,newLocation.lattitude,newLocation.longitude]; NSURL * url = [NSURL URLFromString:address];