GET_DISTANCE_MATRIX

Retrieves the directions from all starting locations to all destination locations.

icon of Maps and PlacesMaps and Places
Not a big fan of functions?
Use the Actions Wizard to configure any action in Rows without functions.

Parameter List

Syntax
GET_DISTANCE_MATRIX(startend
[mode]
[start_time]
[end_time]
[avoid]
)
start

Start address. For example: "515 Broadway, New York".

end

Start address. For example: "148 Lafayette St Floor, New York".

[optional] mode

The travel mode. Choose either:

  • "driving" (default)

  • "walking"

  • "bicycling"

  • "transit"

Selected options:
Bicycling
Driving
Transit
Walking
[optional] start_time

The departure time in UNIX format. For example: 1600281000. If provided, it ignores end_time.

[optional] end_time

The arrival time in UNIX format. For example: 1600281000.

[optional] avoid

What transit elements to avoid in the route. Choose either:

  • blank or "" (default) for normal routing

  • "tolls"

  • "highways"

  • "ferries"

  • "indoor"

Selected options:
Ferries
Highways
Indoor
Routing

Examples

GET_DISTANCE_MATRIX("New York,NY|Boston,CA", "Miami,FL|Palm Beach,FL") returns JSON with directions from New York to Miami and Palm Beach (first row) and from Boston to Miami and Palm Beach (second row)