mfdz / OpenTripPlanner

MFDZ (HSLdevcom/)OpenTripPlanner clone supporting Carpooling.
http://www.opentripplanner.org
Other
5 stars 4 forks source link

Add request parameter for excluding parking lots that have few spaces available #62

Closed leonardehrenfried closed 3 years ago

leonardehrenfried commented 3 years ago

Depends on #48

For a definition of "few places" check https://github.com/mfdz/OpenTripPlanner/blob/master/src/main/java/org/opentripplanner/routing/car_park/CarPark.java#L97-L107

flaktack commented 3 years ago

Would it be possible to handle this using the the forecast field in ParkAPI -- and then the actual request could ban a tag of forecast:almost_full (or whatever value is used)? This would require no changes on OTP's side, since the required features are all supported once #99 is merged.

leonardehrenfried commented 3 years ago

Ok, so the idea is that the updater just sets the tag at graph update time rather than the graph traversal checking the capacity right now?

flaktack commented 3 years ago

Yes.

leonardehrenfried commented 3 years ago

Then that's fine.