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

New module to compute travel time and comercial speed #141

Closed
alephcero opened this issue Apr 10, 2024 · 1 comment
Closed

New module to compute travel time and comercial speed #141

alephcero opened this issue Apr 10, 2024 · 1 comment

Comments

@alephcero
Copy link
Collaborator

alephcero commented Apr 10, 2024

Main objective

  • Get commercial speed for supply (services, lines, branches)
  • Get commercial speed by street segment (using edge osmnid)
  • Get travel time for demand for each leg

Requirements

  • Good routes and stops (line, branches and directions) cartography

Steps

Data schema
gps_commercial_speed table:
This table holds data by each GPS point from the previous point

- gps_id
- delta_time_hr
- distance_km_h3
- distance_km_graph
- edges_ids

edges_commercial_speed table:
This table holds data by each edge or street segment. Data is stored by each line, branch, direction and hour. How many GPS segments where use to compute that speed is stored in the weights attribute in order to compute weighted averages at any aggregated level (branch, line, segment). Aggregated stats will be in the same table with day = 'weekday' or hour = 'all day'.

- edge_id
- day
- hour
- line_id
- branch_id
- direction
- commercial_speed_h3_avg
- commercial_speed_h3_std
- commercial_speed_g_avg
- commercial_speed_g_std
- weights

line_commercial_speed table
This table holds aggregated commercial speed stats by line, computed from the gps_commercial_speed table at a service level.

- line_id
- branch_id
- direction
- day
- hour
- commercial_speed_h3_avg
- commercial_speed_h3_std
- commercial_speed_g_avg
- commercial_speed_g_std
- weights

travel_time table

- leg_id
- gps_id_o
- gps_id_d
- travel_time_min
- distance_km_h3
- distance_km_graph
@alephcero alephcero self-assigned this Apr 10, 2024
alephcero added a commit that referenced this issue Oct 8, 2024
* Use pandana to compute distances 
* Computes travel time for trips and legs #141 
* Improvement of basic KPI 
* Add a feature to compute an OD Matrix for a given line #129 (#132)
* Gender and ticket price feature
* Compute destination gps by day

---------

Co-authored-by: Sebastian Anapolsky <[email protected]>
@alephcero
Copy link
Collaborator Author

Closed by 73470a5

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

No branches or pull requests

1 participant