GAPI Client Libraries

For server-to-server (trusted) communication, we recommend using language-specific GAPI client libraries for a better experience than developing over raw REST or gRPC. The protobuf files these clients are based on are publicly available at https://github.com/googleapis/googleapis/tree/master/google/maps/fleetengine/delivery/v1.

If libraries don't exist in your application's language, we recommend using gRPC or the Fleet Engine REST endpoints.

NOTE: GAPIC libraries are intended to run in trusted (server) environments. JWTs are unnecessary. Use Application Default Credentials along with the appropriate deliveryAdmin role.

Java

Java libraries are published under google.maps.fleetengine.delivery.v1.

Gradle

plugins {
  id "maven-publish"
  id "com.google.cloud.artifactregistry.gradle-plugin" version "2.1.4"
}

publishing {
  repositories {
    maven {
      url "artifactregistry://us-maven.pkg.dev/fleetengine-gapic/maven"
    }
  }
}

repositories {
  maven {
    url "artifactregistry://us-maven.pkg.dev/fleetengine-gapic/maven"
  }
}

dependencies {
  implementation 'com.google.maps:gapic-google-maps-fleetengine-delivery-v1-java:latest.release'
}

Maven

<project>
  <distributionManagement>
    <snapshotRepository>
      <id>artifact-registry</id>
      <url>artifactregistry://us-maven.pkg.dev/fleetengine-gapic/maven</url>
    </snapshotRepository>
    <repository>
      <id>artifact-registry</id>
      <url>artifactregistry://us-maven.pkg.dev/fleetengine-gapic/maven</url>
    </repository>
  </distributionManagement>

  <repositories>
    <repository>
      <id>artifact-registry</id>
      <url>artifactregistry://us-maven.pkg.dev/fleetengine-gapic/maven</url>
      <releases>
        <enabled>true</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
  </repositories>

  <build>
    <extensions>
      <extension>
        <groupId>com.google.cloud.artifactregistry</groupId>
        <artifactId>artifactregistry-maven-wagon</artifactId>
        <version>2.1.4</version>
      </extension>
    </extensions>
  </build>

  <dependency>
    <groupId>com.google.maps</groupId>
    <artifactId>gapic-google-maps-fleetengine-delivery-v1-java</artifactId>
    <version>LATEST</version>
  </dependency>
</project>

You can use the Fleet Engine Auth Library for Java to create signed JSON web tokens within the Java environment.

You can view Java examples for interacting with the Fleet Engine API on the Getting started with Fleet Engine page.

Node.js / TypeScript

See https://www.npmjs.com/package/@googlemaps/fleetengine-delivery

npm

npm install @googlemaps/fleetengine-delivery

Go

The Go library is packaged as a module at https://pkg.go.dev/cloud.google.com/go/maps

Python

See https://pypi.org/project/google-maps-fleetengine-delivery/0.1.0/

pip

pip install google-auth
pip install google-maps-fleetengine-delivery

C#

Installation instructions for the C# library can be found at https://www.nuget.org/packages/Google.Maps.FleetEngine.Delivery.V1.

PHP

See https://packagist.org/packages/google/maps-fleetengine-delivery.

Ruby

See https://rubygems.org/gems/google-maps-fleet_engine-delivery.