Fix crash in krakow with a biking trip that should get converted to a walking trip, but isn't

This commit is contained in:
Dustin Carlino 2020-11-15 19:59:31 -08:00
parent 24e1a48d75
commit b9ff94f275

View File

@ -372,8 +372,9 @@ impl TripManager {
end,
constraints: PathConstraints::Bike,
};
let maybe_router = if req.start == req.end {
// TODO Convert to a walking trip!
let maybe_router = if req.start.lane() == req.end.lane() {
// TODO Convert to a walking trip! Ideally, do this earlier and convert the trip to
// walking, like schedule_trip does
None
} else {
ctx.map