bliksemlabs / rrrr

RRRR rapid real-time routing
BSD 2-Clause "Simplified" License
164 stars 32 forks source link

Testerrrr error 'Dude, you are already there.' #194

Open BennyKJohnson opened 9 years ago

BennyKJohnson commented 9 years ago

Hi, The testerrrr program doesn't seem to parse the request properly. For example the command ./testerrrr --from-idx PST1389 --to-idx PST1112, from Bomaderry Station to North Sydney Station (stop ids from GTFSDB) a valid request yields 'Dude, you are already there.' . These are clearly different stops, yet req.from == req.to evaluates to true.

I would really appreciate any help you can provide on this issue. Thank you

koch-t commented 9 years ago

--[to|from]-idx=$IDX reverse to the internal idx --[to|from]-id=$stop_area_id for routing from stop_area's (location_type =1 and stop_id). STopArea's are auto-generated for stop-points without a stoparea --[to|from]-latlng for routing from/to coordinates. --to|from]-sp-id=$stop_id for routing from stop_points (eg stop_id from stops in stops.txt with empty parent_station_id)

The warning refers to the failure to parse the numbers and leaving them both on 0. Should be better failure-texts..

skinkie commented 9 years ago

You are missing the =

BennyKJohnson commented 9 years ago

Thanks for the reply however I’m still having issues. I attempted ./testerrrr --from-id=PST1389 --to-id=PST1386 but receive the same result.

I’ve attached an image showing the data for these stops. Could you please clarify the exact query that should be used. Here's my Timetable file if you wish to attempt the same query.

Routed stops

BennyKJohnson commented 9 years ago

@skywave The options you recommended are not contained in long_options of tester.c. Are you talking about a different branch (currently on realtime)?

EDIT: Added the option in myself and got it working. I'm disappointed with the results, the simple queries I tried just going from station to station on the same line (no transfers) don't seem to work.

./testerrrr --from-id=PST1386 --to-id=PST1371 -v
checking tdata coherency...
checked 12871338 transfers for symmetry.
34334 Kiama Station -> 34321 North Wollongong Station
ERROR: transferring from unreached stop 34321 in round 1. 
-- Router Request --
from:  Kiama Station [34334]
to:    North Wollongong Station [34321]
time:     --    [65535]
speed: 1.500000 m/sec
arrive-by: true
max xfers: 5
max time:     --   
mode: transit
ERROR: transferring from unreached stop 34321 in round 1. 
Repeated search with reversed request: 
-- Router Request --
from:  Kiama Station [34334]
to:    North Wollongong Station [34321]
time:     --    [65535]
speed: 1.500000 m/sec
arrive-by: true
max xfers: 5
max time:     --   
mode: transit