Places Aggregate API (trước đây gọi là Places Insights API) hiện đã được phát hành rộng rãi (GA).
Bắt đầu sử dụng thư viện ứng dụng
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Trang này cho biết cách bắt đầu sử dụng thư viện ứng dụng cho Places Aggregate API.
Đọc thêm về các thư viện ứng dụng trong bài viết Giải thích về thư viện ứng dụng.
Cài đặt thư viện ứng dụng
Thiết lập chế độ xác thực
Khi sử dụng thư viện ứng dụng, bạn sẽ dùng Thông tin xác thực mặc định của ứng dụng (ADC) để xác thực. Để biết thông tin về cách thiết lập ADC, hãy xem bài viết Cung cấp thông tin xác thực cho Thông tin xác thực mặc định của ứng dụng.
Để biết thông tin về cách sử dụng ADC với thư viện ứng dụng, hãy xem phần Xác thực bằng thư viện ứng dụng.
Sử dụng thư viện ứng dụng
Hãy xem Ví dụ về thư viện ứng dụng để biết thông tin về cách sử dụng.
Tài nguyên khác
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-09-04 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-09-04 UTC."],[],[],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)"]]