Skip to contents

Swaps BACK the origins and destinations data frames if they were originally reversed by reverse_if_direct_mode().

Usage

reverse_back_if_direct_mode(
  travel_times,
  origins,
  destinations,
  mode_list,
  data_path
)

Arguments

travel_times

A travel time matrix.

origins

A data frame representing origin locations.

destinations

A data frame representing destination locations.

mode_list

A named list containing the routing modes.

data_path

The data path used to build the network

Value

A df travel time matrix with origins and destinations unchanged or in swapped order