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

post_process shapes: calculate missing shape_dist_traveled #50

Closed
fpurcell opened this issue Dec 31, 2020 · 0 comments
Closed

post_process shapes: calculate missing shape_dist_traveled #50

fpurcell opened this issue Dec 31, 2020 · 0 comments
Assignees

Comments

@fpurcell
Copy link
Member

fpurcell commented Dec 31, 2020

RTD's gtfs does not have the (optional) shape_dist_traveled field populated.
Let's run thru each shape, and calculate those values.

Thus this:
shape_id,shape_pt_lat,shape_pt_lon,shape_pt_sequence
1160070,39.857378,-105.054026,1
1160070,39.857013,-105.053717,2
1160070,39.857013,-105.053718,3
...

Becomes this:
shape_id,shape_pt_lat,shape_pt_lon,shape_pt_sequence,shape_dist_traveled
1160070,39.857378,-105.054026,1,0.0
1160070,39.857013,-105.053717,2,55.0
1160070,39.857013,-105.053718,3,111.0
...

This will help with https://github.com/OpenTransitTools/trafficdb

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