Repository navigation
Add bahn.de/PTE-based test suite for RNV - #855
Conversation
|
The problem here could be similar to the reason transfers don't work on the RNV dataset. In RNV, every pole is one stop. A stop (or stop area) with poles in either direction is two stops in the RNV dataset. We currently only, strictly use the closest stop from the start and the destination. That's probably why we often don't find a route. In VBB, this is much easier, because all allowed transfers are explicit edges. This test will only start giving nice results when we implement a transfer heuristic. |
|
(The VBB dataset is currently too much for Travis, otherwise I'd suggest we do a similar test suite for VBB right away...) |
|
No, I'm explicitly checking only those routes which only had 1 leg with PTE. |
I also think if the stops of one line in the different directions would be connected (like they are for VBB or will be soon when we integrate walking) then the results would be better. Or one could slightly adjust the coordinates for the different directions. Example: if you pick stop A (which has two nodes A1 and A2 for the same line but different direction) and want to go to B, then currently it can happen for RNV that it picks A2 routes you first outside of the city, comes back to A1 to route you to B. |
|
Exactly, that's what I meant. |
|
Anecdote: Testing the VBB dataset against bahn.de is super unfair, because they have more pessimistic transfer times in their GTFS than in Hafas, apparently. :-( |
|
bahn.de re-processes data delivered by transport companies on import. So it's more for orientation. I'll try to implement OpenTripPlanner-based test data production as well. That should give fair results. |
|
Below y=x (to the right/bottom) means GraphHopper reports shorter travel times compared to bahn.de? |
Yes. Those seem to be trips where the web site says they should take really long. Are those maybe stops where only one bus goes every few hours, and GraphHopper just walks? I haven't had time to look at this in any way yet, just wanted to show that we can do the picture now. |
|
Should I do a VBB suite as well? Does it help? |
|
Yes, please! It helps a lot. VRN will then be our unrestricted-walking/multimodal/experimental-behavior scenario, and VBB will be our strictly-do-what's-in-gtfs scenario. (I think this is way more important than comparing ourselves to OTP, for example.) Not sure where to put this, though, as the VBB dataset is a bit too big for automatic integration tests yet. I may put it in a separate project, together with my PTE-as-additional-API-for-GH experiment. |
|
bahn.de seems to produce unexpectedly long solutions sometimes: @highsource I wonder, would it be difficult to re-generate the .csv file using the |
|
This should not be too complicated but will take some time. BTW I get 1h23m for this query with VRN. |
|
Hm, this is a very good approach to identify weaknesses in bahn.de. Kind of cross-comparison for the same queries among providers. This might be pretty useful. |
|
(Wouldn't need to be exactly the same instances, of course. Can be newly randomized.) |
|
The bulge over the diagonal starts around an hour or two. Maybe that's where bahn.de is starting to use long-distance trains which we don't know about. |
|
I think long-distance is disabled in the query. |
Hmm, okay, nice try though. ,-) |
|
Ah, it's the S-Bahn. |



Here's a prototypical implementation of a test suite based on bahn.de data via PTE.
Trip queries are read from the CSV file (
rnv-trips-least-duration-01.csv) and then executed in the GraphHopper. No assertions on results, just printing out. I've also reduced test cases to trips with just one leg because RNV does not have correct transfers.As I ran the test it showed that GH PT sometimes gives good results, but in most cases it gives arrival time which is later than bahn.de. I hope these test cases will help in the analysis.