Page Summary
-
This page provides instructions for getting started with the Route Optimization API client libraries, covering installation and authentication setup for various programming languages like Java, Go, Node.js, Python, .Net, and PHP.
-
Client libraries simplify interaction with the Route Optimization API by providing language-specific implementations and handling authentication using Application Default Credentials (ADC).
-
Installation instructions and setup guides for each supported language are linked for developers to quickly integrate the API into their projects.
-
Developers can leverage provided resources like source code, package documentation, and issue trackers for further assistance and community support.
-
Authentication with the API is streamlined through Application Default Credentials (ADC), ensuring secure access to Google Cloud services.
Get started with the Route Optimization API client libraries. To learn more about how Google Cloud client libraries work, see Client Libraries Explained.
To use the client libraries, follow the next steps:
- Install the client library for your preferred language.
- Set up authentication.
- Explore additional resources, such as source code and issue trackers.
Install client libraries
Select your programming language to view the installation command and setup instructions.
Java
For more information, see Setting Up a Java Development Environment.
See Google Route Optimization API Client for Java for the installation instructions.
Go
go get cloud.google.com/go/maps
For more information, see Setting Up a Go Development Environment.
See Google Route Optimization API Client for Go for the installation instructions.
Node.js
npm install @googlemaps/routeoptimization
For more information, see Setting Up a Node.js Development Environment.
For the complete installation instructions, see Google Routes API Client for Node.js
Python
pip install google-maps-routeoptimization
For more information, see Setting Up a Python Development Environment.
For the complete installation instructions, see Google Route Optimization API Client for Python
.Net
For more information, see Setting Up a .Net Development Environment.
For the complete installation instructions, see Google Route Optimization API Client for .Net.
PHP
composer require google/maps-routeoptimization
For more information, see Getting Started with PHP.
For the complete installation instructions, see Google Maps Route Optimization Client for PHP.
Set up authentication
The client libraries use Application Default Credentials (ADC) for authentication. To set up your credentials, see Provide credentials for ADC. To learn how to integrate ADC with your code, see Authenticate using client libraries.
Additional resources
Select your programming language to find links to the source code, package documentation, and issue tracker.
Java
Go
Node.js
Python
.Net
PHP
For additional support see Support Options for Route Optimization API.