Comments (4)
Ah, thanks, that's the kind of result we need to debug this properly. Shall get on to that tomorrow
from gtfsrouter.
@AlexandraKapp You okay with this being closed now? Just to confirm, the original query now gives these results:
library (gtfsrouter)
packageVersion("gtfsrouter")
#>[1] '0.0.4.153'
gtfs <- extract_gtfs("vbb.zip")
#> ▶ Unzipping GTFS archive
#> ✔ Unzipped GTFS archive
#> ▶ Extracting GTFS feed✔ Extracted GTFS feed
#> ▶ Converting stop times to seconds✔ Converted stop times to seconds
#> ▶ Converting transfer times to seconds✔ Converted transfer times to seconds
gtfs <- gtfs_timetable(gtfs, day = "tuesday")
from <- "S Grunewald"
to <- "nigin-Luise-Str"
start_time <- 8 * 3600
gtfs_route(gtfs, from, to, start_time, max_transfers )
#> route_name trip_name stop_name
#> 1 186 S Lichterfelde Süd S Grunewald (Berlin)
#> 2 186 S Lichterfelde Süd Berlin, Hagenplatz
#> 3 186 S Lichterfelde Süd Berlin, Richard-Strauss-Str.
#> 4 186 S Lichterfelde Süd Berlin, Hubertusbader Str.
#> 5 186 S Lichterfelde Süd Berlin, Roseneck/Teplitzer Str.
#> 6 X10 Teltow, Rammrath-Brücke Berlin, Roseneck/Teplitzer Str.
#> 7 X10 Teltow, Rammrath-Brücke Berlin, Brücke-Museum/Kunsthaus Dahlem
#> 8 X10 Teltow, Rammrath-Brücke Berlin, Königin-Luise-Str./Clayallee
#> arrival_time departure_time
#> 1 08:10:00 08:10:00
#> 2 08:12:00 08:12:00
#> 3 08:14:00 08:14:00
#> 4 08:15:00 08:15:00
#> 5 08:15:30 08:15:30
#> 6 08:24:00 08:24:00
#> 7 08:27:00 08:27:00
#> 8 08:28:00 08:28:00
iso <- gtfs_traveltimes (gtfs, from = from, start_time = start_time)
iso [grep (to, iso$stop_name), ]
#> duration ntransfers stop_id stop_name
#> 26776 00:24:00 2 070101001259 Berlin, Königin-Luise-Str./Clayallee
#> 27213 00:22:00 1 070101001743 Berlin, Königin-Luise-Str./Clayallee
#> 27217 00:24:00 2 070101001747 Berlin, Königin-Luise-Str./Clayallee
#> stop_lon stop_lat
#> 26776 13.27476 52.46009
#> 27213 13.27476 52.46009
#> 27217 13.27476 52.46009
Created on 2021-01-20 by the reprex package (v0.3.0)
from gtfsrouter.
yes :)
from gtfsrouter.
The isochrone traces from Berlin Hbf to Potsdam Hbf leaving 08:00 Tues all have at least 1 transfer, whereas gtfs_route()
selects the direct and fastest RE connection with no transfers. Those isochrone routes all select an initial connection on the S9 to "S Spandau Hbf", and change to the RE at Zoologischer Garten or Charlottenburg. That means they leave at 08:00:12, rather than the more direct RE which leaves at 08:11. That at least gives me a concrete example from which I can now use to work out why that happens and fix it. Thanks!
from gtfsrouter.
Related Issues (20)
- no results when calculating gtfs_traveltimes() HOT 2
- SVG version of the logo HOT 8
- Allow start times to be vector of times for each station HOT 1
- Bug in traveltimes algorithm HOT 1
- Update documentation to include example for gtfs_route with (lon, lat) please HOT 3
- Move atfutures -> UrbanAnalyst
- Proportion of trips on different route_types HOT 4
- rcpp_csa | Not compatible with requested type HOT 3
- Reduce ratios of user / elapsed times in examples HOT 2
- Fix pkg man entry
- CRAN UBSAN issues
- CRAN re-submit HOT 2
- pkgcheck results - main HOT 8
- Alternative approach to build a transfer table HOT 8
- Using gtfs_traveltimes for many-to-many calculations HOT 6
- gtfs_traveltimes bug when setting max_traveltime HOT 5
- Feature Request: Multiple possible routes per trip HOT 2
- Issues with gtfs_transfer_table() when running on MacOS HOT 3
- gtfs_route randomly crashes the session HOT 2
- gtfs_traveltimes output HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtfsrouter.