Geocoding API

將地址轉換成地理座標 (地理編碼),以便放置標記或在地圖上定位。您也可以使用這個 API 將地理座標轉換為地址 (反向地理編碼)。

服務:geocoding-backend.googleapis.com

需要服務名稱 geocoding-backend.googleapis.com 才能建立遠端程序呼叫 (RPC) 用戶端虛設常式。

google.maps.geocode.v4alpha.DestinationService

方法
SearchDestinations 這個方法會執行目的地查詢,並傳回目的地清單。

google.maps.geocode.v4alpha.GeocodeService

方法
GeocodeAddress 這個方法會執行地址地理編碼,將地址對應至 LatLng。
GeocodeLocation 這個方法會執行位置地理編碼,將 LatLng 對應至地址。
GeocodePlace 這個方法會使用地點 ID 執行地理編碼查詢。

google.maps.geocode.v4beta.DestinationService

方法
SearchDestinations 這個方法會執行目的地查詢,並傳回目的地清單。

google.maps.geocode.v4beta.GeocodeService

方法
GeocodeAddress 這個方法會執行地址地理編碼,將地址對應至 LatLng。
GeocodeLocation 這個方法會執行位置地理編碼,將 LatLng 對應至地址。
GeocodePlace 這個方法會使用地點 ID 執行地理編碼查詢。