AI-generated Key Takeaways
-
This documentation provides instructions for installing and utilizing the Google Places API client libraries across various programming languages including Java, Go, Node.js, Python, and .Net.
-
Authentication is handled through Application Default Credentials (ADC), streamlining the process of accessing the API securely.
-
Client libraries offer key functionalities such as retrieving place details, conducting place searches (nearby, text-based, and autocomplete), and fetching place photos.
-
Comprehensive code examples and further details are available through provided GitHub links for each supported language, allowing for deeper exploration and practical implementation.
-
Users are encouraged to modify provided code templates and refer to linked resources for complete code examples to fully leverage the Google Places API client libraries' capabilities.
This page shows how to get started with the client libraries for Places API (New).
Read more about the client libraries in Client Libraries Explained.
Install the client library
Maps JavaScript API
For more information, see Load the Places Library.
Java
For more information, see Setting Up a Java Development Environment and Using Cloud Client Libraries.
For the complete installation instructions, see Google Places API Client for Java.
Go
go get cloud.google.com/go/maps
For more information, see Setting Up a Go Development Environment.
For the complete installation instructions, see Google Places API Client for Go.
NodeJS
npm install @googlemaps/places
For more information, see Setting Up a Node.js Development Environment.
For the complete installation instructions, see Google Places API Client for NodeJS.
Python
pip install --upgrade google-maps-places
For more information, see Setting Up a Python Development Environment.
For the complete installation instructions, see Python Client for Google Places.
.NET
Install-Package Google.Maps.Places.V1 -Pre
For more information, see Setting Up a .NET Development Environment and .NET for Google Places.
Set up authentication
When you use client libraries, you use Application Default Credentials (ADC) to authenticate. For information about setting up ADC, see Provide credentials for Application Default Credentials. For information about using ADC with client libraries, see Authenticate using client libraries.
Use the client library
See Client library examples for usage information.