本页面介绍了如何开始使用适用于 Places API。
如需详细了解客户端库,请参阅客户端库 说明。
安装客户端库
Java
如需了解详情,请参阅 设置 Java 开发环境。
请参阅适用于 Java 的 Google Places API 客户端 了解安装说明。
Go
go get cloud.google.com/go/maps
如需了解详情,请参阅 设置 Go 开发环境。
有关完整的安装说明,请参阅 适用于 Go 的 Google Places API 客户端。
NodeJS
npm install @googlemaps/places
如需了解详情,请参阅 设置 Node.js 开发环境。
如需查看完整的安装说明,请参阅 Google Places API Client for NodeJS。
Python
pip install --upgrade google-maps-places
如需了解详情,请参阅 设置 Python 开发环境。
有关完整的安装说明,请参阅 适用于 Google 地点的 Python 客户端。
.Net
如需了解详情,请参阅 设置 .Net 开发环境。
Install-Package Google.Maps.Places.V1 -Pre
设置身份验证
在使用客户端库时,您可以使用 应用默认凭据 (ADC) 进行身份验证如需了解如何设置 ADC,请参阅为应用默认凭据提供凭据。如需了解如何将 ADC 与客户端库搭配使用,请参阅使用客户端库进行身份验证。
使用客户端库
Java
Go
NodeJS
Python
.Net