Places Aggregate API(以前称为 Places Insights API)现已正式发布 (GA)。
客户端库使用入门
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页面介绍了如何开始使用 Places Aggregate API 的客户端库。
如需详细了解客户端库,请参阅客户端库说明。
安装客户端库
设置身份验证
使用客户端库时,您可以使用应用默认凭据 (ADC) 进行身份验证。如需了解如何设置 ADC,请参阅为应用默认凭据提供凭据。如需了解如何将 ADC 与客户端库搭配使用,请参阅使用客户端库进行身份验证。
使用客户端库
如需了解使用信息,请参阅客户端库示例。
其他资源
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-29。
[null,null,["最后更新时间 (UTC):2025-08-29。"],[],[],null,["# Get started with client libraries\n\nThis page shows how to get started with the client libraries for\nPlaces Aggregate API.\n\nRead more about the client libraries in [Client Libraries\nExplained](https://cloud.google.com/apis/docs/client-libraries-explained).\n\nInstall the client library\n--------------------------\n\n### Java\n\nFor more information, see\n[Setting Up a Java Development Environment](https://cloud.google.com/java/docs/setup).\n\nSee [Google Places Aggregate API Client for Java](https://github.com/googleapis/google-cloud-java/tree/main/java-maps-area-insights)\nfor the installation instructions.\n\n### Go\n\n\n```\ngo get cloud.google.com/go/maps\n```\nFor more information, see [Setting Up a Go Development Environment](https://cloud.google.com/go/docs/setup).\n\n\u003cbr /\u003e\n\nSee [Google Places Aggregate API Client for Go](https://pkg.go.dev/cloud.google.com/go/maps/areainsights/apiv1)\nfor the installation instructions.\n\n### Node.js\n\n\n```\nnpm install @googlemaps/areainsights\n```\nFor more information, see [Setting Up a Node.js Development Environment](https://cloud.google.com/nodejs/docs/setup).\n\n\u003cbr /\u003e\n\nFor the complete installation instructions, see [Google Places Aggregate API Client for Node.js](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-maps-areainsights)\n\n### Python\n\n\nFor more information, see\n[Setting Up a Python Development Environment](https://cloud.google.com/python/docs/setup).\n\nFor the complete installation instructions, see [Google Places Aggregate API Client for Python](https://github.com/googleapis/google-cloud-python/tree/main/packages/google-maps-areainsights)\n\n### .Net\n\n\nFor more information, see\n[Setting Up a .Net Development Environment](https://cloud.google.com/dotnet/docs/setup).\n\nFor the complete installation instructions, see [Google Places Aggregate API Client for .Net](https://github.com/googleapis/google-cloud-dotnet/tree/main/apis/Google.Maps.AreaInsights.V1)\n\nSetting up authentication\n-------------------------\n\nWhen you use client libraries, you use\n[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials)\nto authenticate. For information about setting up ADC, see\n[Provide credentials for Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc).\nFor information about using ADC with client libraries, see\n[Authenticate using client libraries](https://cloud.google.com/docs/authentication/client-libraries).\n\nUse the client library\n----------------------\n\nSee [Client library\nexamples](/maps/documentation/places-aggregate/client-library-examples) for\nusage information.\n\nAdditional resources\n--------------------\n\n### Java\n\n- [Source Code](https://github.com/googleapis/google-cloud-java/tree/main/java-maps-area-insights)\n- [GitHub Issue Tracker](https://github.com/googleapis/google-cloud-java/issues)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-places-aggregate-api+java)\n\n### Go\n\n- [Source Code](https://github.com/googleapis/google-cloud-go/tree/main/maps/areainsights/apiv1)\n- [Package Documentation](https://pkg.go.dev/cloud.google.com/go/maps/areainsights/apiv1)\n- [GitHub Issue Tracker](https://github.com/googleapis/google-cloud-go/issues)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-places-aggregate-api+go)\n\n### Node.js\n\n- [Source Code](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-maps-areainsights)\n- [GitHub Issue Tracker](https://github.com/googleapis/google-cloud-node/issues)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-places-aggregate-api+node.js)\n\n### Python\n\n- [Source Code](https://github.com/googleapis/google-cloud-python/tree/main/packages/google-maps-areainsights)\n- [GitHub Issue Tracker](https://github.com/googleapis/google-cloud-python/issues)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-places-aggregate-api+python)\n\n### .Net\n\n- [Source Code](https://github.com/googleapis/google-cloud-dotnet/tree/main/apis/Google.Maps.AreaInsights.V1)\n- [GitHub Issue Tracker](https://github.com/googleapis/google-cloud-dotnet/issues)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-places-aggregate-api+.net)"]]