名稱找地址?
https://developers.google.com/places/documentation/search
Text Search Requests
https://maps.googleapis.com/maps/api/place/textsearch/json?query=台北101+in+tw&sensor=true&key=AddYourOwnKeyHerehttps://www.google.com.tw/search?q=台北101
{ "debug_info" : [], "html_attributions" : [ "提供者:\u003ca href=\"http://www.kingwaytek.com/\"\u003eKingway\u003c/a\u003e" ], "next_page_token" : "CjQwAAAAePADjnqGMgqoe0tI5UcqSdcVXcsm7RQXRM52aOgSBsssLJZVHFoXPstZvfeq1MlGEhDCdI-2C1iD9jA3ope8s-_jGhQmBfkIyTFPRXIdrDHB-A0fD_vmcQ", "results" : [ { "formatted_address" : "台灣台北市信義區市府路45號", "geometry" : { "location" : { "lat" : 25.033496, "lng" : 121.563863 } }, "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/shopping-71.png", "id" : "26eedffe077bae953a0fe4cb4fc2de269c80b33c", "name" : "台北101購物中心", "opening_hours" : { "open_now" : false },
..
}
PS.
https://maps.googleapis.com/maps/api/place/textsearch/json?query==老梅派出所+in+TW&sensor=true&key=AddYourOwnKeyHere
精確:台灣新北市石門區老梅路26號
https://maps.googleapis.com/maps/api/place/textsearch/json?query==老梅派出所&sensor=true&key=AddYourOwnKeyHere
偏差:253台灣新北市石門區老梅
座標找國家?
I don't know if it works with google maps, but there is a web service that returns a country code and takes as parameters the lat and long.
Here is an example: http://ws.geonames.org/countryCode?lat=49.03&lng=10.2
沒有留言:
張貼留言
注意:只有此網誌的成員可以留言。