Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gtfs distances function #95

Open
mpadge opened this issue Jan 3, 2023 · 0 comments
Open

gtfs distances function #95

mpadge opened this issue Jan 3, 2023 · 0 comments

Comments

@mpadge
Copy link
Member

mpadge commented Jan 3, 2023

Develop an algorithm to return a distance, rather than time, matrix between all stops in a GTFS feed. Primary advantage is the ability to assess the overall "speed" of a network, through examining dependence of time on distance.

This should use shape data where such is provided, but it's generally not, so can use ˋosmdataˋ anywhere shape data is not provided. The routine will have to construct a bunch of sub-matrices for each modal type. These modes are given in the "route_type" field of the "routes" table, and currently include:

  1. tram
  2. subway
  3. rail
  4. bus
  5. ferry
  6. cable tram
  7. aerial lift, suspended cable car
  8. funicular
  9. trolley bus
  10. monorail

These modalities will have to be matched to OSM keys/values, and corresponding data extracted for each feed. Distances within each mode can then be calculated using the resultant modal network. Distances between modes will require matching stops for destination modes on to stops for origin modes, and calculating corresponding distances within the origin-mode network. All of these pieces will then have to be inserted into the resultant distance matrix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant