Skip to content

Feature suggestion: track and output secondary variables in ttm and attm #511

@HarryRobertsITS

Description

@HarryRobertsITS

A useful feature for the travel_time_matrix() and arrival_travel_time_matrix() functions (and perhaps others which I don't use) would be to keep track of secondary variables and provide them as an additional output in the data table.

In particular it would be useful to know the following for each o-d pair:

  • total distance
  • total fare
  • time spent using each mode and waiting
  • no. of transfers
  • gross elevation gain (i.e. amount of uphill - ideally by mode)
  • gross elevation loss (i.e. amount of downhill - ideally by mode)

(I know that distance is an output of detailed_itineraries(), but it would be useful to have it as an output of the faster functions)

My (limited) knowledge of graph theory leads me to believe that it would be theoretically possible to do this without increasing complexity, and it would greatly increase the usefulness of the package and underlying software to economists and statisticians with an interest in obtaining explanatory variables for modelling travel choices.

Is this achievable in r5r with the existing features of R5, or is this something I should take upstream?

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions