Google Geocoding API

Google map api官方連結

要使用Google Geocoding API,除了擁有Google帳號以外,還要創建新Project,然後在這個project中啟動這個API的使用權限,並且取得API token,接下來的API call把這個token放在URL中就可以獲得資訊了。

創建Project的部分就不說了,官方說明文件在此

Enable Geocoding API

Example:
https://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&key=YOUR_API_KEY

Last updated