ETAs for cross-border trips
Implement Using: Distance Matrix Flexible API
In this example, let’s request for distance and duration values for a route that a truck can take when allowed to cross country borders. We will create a Distance Matrix Flexible request with 2 origins
(O) and 2 destinations
(D). We set option
as flexible
along with:
mode
set to “truck” to get distance and duration values for a route that a truck can takecross_border
option set to “true”