Places API (New)
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Places API 可讓開發人員存取「地點」的各種搜尋與擷取端點。
服務:places.googleapis.com
需要服務名稱 places.googleapis.com
才能建立遠端程序呼叫 (RPC) 用戶端虛設常式。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-29 (世界標準時間)。
[null,null,["上次更新時間:2025-08-29 (世界標準時間)。"],[[["\u003cp\u003eThe Places API provides developers with access to various search and retrieval endpoints for Place data.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize endpoints like AutocompletePlaces, GetPhotoMedia, GetPlace, SearchNearby, and SearchText to interact with Place information.\u003c/p\u003e\n"],["\u003cp\u003eThe service name \u003ccode\u003eplaces.googleapis.com\u003c/code\u003e is crucial for creating RPC client stubs to access these features.\u003c/p\u003e\n"],["\u003cp\u003ePlace details can be retrieved using a resource name in the format \u003ccode\u003eplaces/{place_id}\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Places API (New)\n\nThe Places API allows developers to access a variety of search and retrieval endpoints for a Place.\n\nService: places.googleapis.com\n------------------------------\n\nThe Service name `places.googleapis.com` is needed to create RPC client stubs.\n\n[google.maps.places.v1.Places](/maps/documentation/places/web-service/reference/rpc/google.maps.places.v1#google.maps.places.v1.Places)\n---------------------------------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------|\n| [AutocompletePlaces](/maps/documentation/places/web-service/reference/rpc/google.maps.places.v1#google.maps.places.v1.Places.AutocompletePlaces) | Returns predictions for the given input. |\n| [GetPhotoMedia](/maps/documentation/places/web-service/reference/rpc/google.maps.places.v1#google.maps.places.v1.Places.GetPhotoMedia) | Get a photo media with a photo reference string. |\n| [GetPlace](/maps/documentation/places/web-service/reference/rpc/google.maps.places.v1#google.maps.places.v1.Places.GetPlace) | Get the details of a place based on its resource name, which is a string in the `places/{place_id}` format. |\n| [SearchNearby](/maps/documentation/places/web-service/reference/rpc/google.maps.places.v1#google.maps.places.v1.Places.SearchNearby) | Search for places near locations. |\n| [SearchText](/maps/documentation/places/web-service/reference/rpc/google.maps.places.v1#google.maps.places.v1.Places.SearchText) | Text query based place search. |"]]