Google Distance Matrix

This node uses the Google Distance Matrix API to create a distance matrix for the provided origins and destinations. The matrix is created by pairing each input origin with each input destination and will contain the travel distance and duration for each pair. The distance unit is meter and the duration is returned in minutes.

If the input geometry is not a point geometry, the centroids will be automatically computed and used.

Options

Origin geometry column

Select the geometry column that describes the origins.

Origin ID column

Select the column which contains for each origin a unique ID. The selected column will be returned in the result table and can be used to link back to the original data.

Destination geometry column

Select the geometry column that describes the destinations.

Destination ID column

Select the column which contains for each destination a unique ID. The selected column will be returned in the result table and can be used to link back to the original data.

Google API key

Click here for details on how to obtain and use a Google API key for the Distance Matrix API.

Travel mode

The following travel modes are supported:

Available options:

  • Bicycling: Requests bicycling directions or distance via bicycle paths & preferred streets (where available). Bicycling directions may sometimes not include clear bicycling paths.
  • Driving: Indicates standard driving directions or distance using the road network.
  • Transit: Requests directions or distance via public transit routes (where available). The used departure time is now.
  • Walking: Requests walking directions or distance via pedestrian paths & sidewalks (where available). Walking directions may sometimes not include clear pedestrian paths.

Input Ports

Icon

Input table with origin geometry and ID column.

Icon

Input table with destination geometry and ID column.

Output Ports

Icon

Output table with the selected origin and destination ID columns and the corresponding travel costs in minutes and meters.

Popular Predecessors

  • No recommendations found

Popular Successors

  • No recommendations found

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.