Google Maps Platform · Arazzo Workflow
Google Maps Resolve Two Addresses and Route Between Them
Version 1.0.0
Geocode a start and end address, then compute directions between the resolved place IDs.
View Spec
View on GitHub
EnvironmentGeocodingGeolocationMapsNavigationPlacesRoutingSolarArazzoWorkflows
Provider
Workflows
address-to-route
Turn two human-readable addresses into a routed trip with distance and duration.
Forward geocodes both endpoints, confirms each returned an OK status with at least one result, and then calls the Directions API with place_id-prefixed origin and destination values.
1
geocodeOrigin
geocode
Forward geocode the origin address into coordinates and a stable place ID. A non-OK status means the address never resolved and routing must not run.
2
geocodeDestination
geocode
Forward geocode the destination address the same way. Inspect the returned location_type and partial_match outputs to decide whether the match is precise enough to route on.
3
routeBetweenPlaces
getDirections
Compute directions between the two resolved places. The Directions API accepts a place ID when it is prefixed with "place_id:", which is what makes this route reproducible rather than dependent on string matching.
Source API Descriptions
openapi