Route Optimization API client libraries

  • 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.

This page shows how to get started with the client libraries for Route Optimization API.

Read more about the client libraries in Client Libraries Explained.

Install client libraries

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

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.

Additional resources