Places API (New)
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Places API 可让开发者访问地点的各种搜索和检索端点。
服务:places.googleapis.com
创建 RPC 客户端存根需要名为 places.googleapis.com
的服务。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-29。
[null,null,["最后更新时间 (UTC):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. |"]]