How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Google Maps Platform Directions API

Route computation between origin and destination

Google Maps Platform Directions API is one of 41 APIs that Google Maps Platform publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 2 JSON Schema definitions.

Tagged areas include Directions. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a getting-started guide, release notes, a support channel, an API reference, and 2 JSON Schemas.

This API exposes 1 operation across 1 path, and defines 14 schemas. It is described by OpenAPI 3.1.0, at version 1.0.

Requests are made against a single base URL, https://maps.googleapis.com/maps/api.

1 operations 1 paths 14 schemas 1 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.0
Server
https://maps.googleapis.com/maps/api
Authentication
API Key
Terms of Service
Resource Areas
1

Authentication & Security 1

Google Maps Platform Directions API declares 1 security scheme for authenticating requests. An API key is passed in the query as key (apiKey). By default, every request must be authenticated.

  • apiKey — Google Maps Platform API key

Paths & Operations 1

Across 1 path, the API surfaces 1 operation — 1 GET. Each is listed below with its method, path, parameters, and response codes.

Directions 1

Route computation between origin and destination

GET
/directions/json
Get Directions Between Two or More Locations
getDirections 15 params → 200400403429500

Schemas 14

The contract defines 14 schemas that model the data the API accepts and returns. The most detailed are Step (10 properties), Leg (10 properties), TransitDetails (8 properties), Route (8 properties). Each schema is shown below with its type and property counts.

LatLng
object
A latitude/longitude coordinate pair
2 properties 2 required
Bounds
object
A bounding box defined by northeast and southwest corners
2 properties 2 required
TextValuePair
object
A text and numeric value pair used for distance, duration, and fare amounts
2 properties 2 required
Route
object
A single route containing a set of legs from the origin to the destination with any specified waypoints.
8 properties 5 required
TransitDetails
object
Transit-specific information for transit steps
8 properties
Step
object
A single step of a route leg
10 properties 7 required
TransitStop
object
A transit stop
2 properties
GeocodedWaypoint
object
Geocoded information for a waypoint
4 properties
Fare
object
The total fare for a transit route
3 properties 3 required
Leg
object
A leg of a route, representing the journey between two waypoints or the origin/destination.
10 properties 7 required
TransitLine
object
Information about a transit line
6 properties
DirectionsResponse
object
The response from the Directions API
4 properties 2 required
Polyline
object
An encoded polyline representation of a route or step
1 property 1 required
TimeZoneTextValue
object
A time value with text representation and time zone
3 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

google-maps-directions-api-openapi.yml Raw ↑

Other APIs Google Maps Platform publishes across the network.

Maps SDK for Android
Maps SDK for iOS
Google Maps for Flutter
Navigation SDK for Android
Navigation SDK for iOS
Navigation for Flutter and React Native
Places API
Places SDK for Android
Places SDK for iOS
Distance Matrix API
Roads API
Routes API
Where this information came from

This is an independent, third-party profile of Google Maps Platform Directions API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.