forked from conveyal/gtfs-lib
-
Notifications
You must be signed in to change notification settings - Fork 3
Repair Interpolation #21
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
c7320bf
remove broken implementation
miles-grant-ibigroup 26eeafd
correct math
miles-grant-ibigroup ad78a7f
protect timepoint times
miles-grant-ibigroup 91c5899
correct even more math
miles-grant-ibigroup 8deeea9
tweak timepoint interpolation math
miles-grant-ibigroup 9eb127b
simplify interpolation math
miles-grant-ibigroup fa9767f
correct interpolation behavior
miles-grant-ibigroup c55925c
support non-blank stoptime ignore
miles-grant-ibigroup bf392d8
update tests for new method signature
miles-grant-ibigroup 63e84c6
address pr feedback
miles-grant-ibigroup 1240c3b
make error more helpful
miles-grant-ibigroup 0d08d70
add basic test for nonblank stoptime modification
miles-grant-ibigroup 489de79
address pr feedback
miles-grant-ibigroup File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,4 +9,6 @@ | |
| .idea/ | ||
| target/ | ||
|
|
||
| lambda$*.json | ||
| lambda$*.json | ||
|
|
||
| .DS_Store | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| agency_id,agency_name,agency_url,agency_phone,agency_timezone,agency_lang | ||
| 1,"Tri Delta Transit","http://trideltatransit.com","(925) 754-4040","America/Los_Angeles","en" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| service_id,monday,tuesday,wednesday,thursday,friday,saturday,sunday,start_date,end_date | ||
| 1,1,1,1,1,1,1,1,20210828,20221231 |
2 changes: 2 additions & 0 deletions
2
src/test/resources/fake-agency-blank-stoptimes/fare_attributes.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| fare_id,price,currency_type,payment_method,transfers,transfer_duration,agency_id | ||
| "1",2.00,USD,0,0,,1 |
2 changes: 2 additions & 0 deletions
2
src/test/resources/fake-agency-blank-stoptimes/fare_rules.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| fare_id,route_id | ||
| "1","300" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| route_id,agency_id,route_short_name,route_long_name,route_type,route_color,route_text_color,route_url | ||
| "300",1,"300","Brentwood Park & Ride / Antioch BART",3,800080,FFFFFF,"http://12.155.17.20/RTT/Public/Schedule.aspx?RouteNo=300" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| "shape_id","shape_pt_lon","shape_pt_lat","shape_pt_sequence","shape_dist_traveled" | ||
| "27","-121.780946","37.996068","1","0" | ||
| "27","-121.69877","37.933812","2","200" |
7 changes: 7 additions & 0 deletions
7
src/test/resources/fake-agency-blank-stoptimes/stop_times.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| "trip_id","arrival_time","departure_time","stop_id","stop_sequence","stop_headsign","timepoint","shape_dist_traveled" | ||
| "1720","17:46:00","17:46:00","722","0","","1","0" | ||
| "1720","17:59:00","17:59:00","33","2","","1","50" | ||
| "1720","","","900","3","","","150" | ||
| "1720","18:02:01","18:02:01","443","4","","0","200" | ||
| "1720","18:20:06","18:20:06","421","5","","0","250" | ||
| "1720","18:24:00","18:24:00","610","6","","1","300" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| "stop_id","stop_code","stop_name","stop_lat","stop_lon","stop_url","zone_id" | ||
| "33","813644","Main St & Empire Ave","37.997839","-121.730492","http://12.155.17.20/RTT/Public/RoutePositionET.aspx?PlatformTag=33","" | ||
| "421","810930","Brentwood Blvd & Village Dr","37.941524","-121.696341","http://12.155.17.20/RTT/Public/RoutePositionET.aspx?PlatformTag=421","" | ||
| "443","811043","Main St & Norcross Ln","37.997716","-121.716376","http://12.155.17.20/RTT/Public/RoutePositionET.aspx?PlatformTag=443","" | ||
| "610","811425","Brentwood Park n Ride","37.933838","-121.698755","http://12.155.17.20/RTT/Public/RoutePositionET.aspx?PlatformTag=610","" | ||
| "722","817754","Antioch BART","37.995572","-121.778137","http://12.155.17.20/RTT/Public/RoutePositionET.aspx?PlatformTag=722","" | ||
| "900","817755","test statin","37.995578","-121.778139","","" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| route_id,service_id,trip_id,trip_headsign,direction_id,block_id,shape_id | ||
| "300",1,1720,"Eastbound Brentwood Park & Ride",0,167,27 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.