opentripplanner / OpenTripPlanner

An open source multi-modal trip planner
http://www.opentripplanner.org
Other
2.16k stars 1.02k forks source link

parameter to limit CAR access to street classes #1864

Closed NicolasBrandli closed 2 years ago

NicolasBrandli commented 9 years ago

Is it possible to create some kind of "banned street classes" parameter for car mode ? this would be used for motor vehicles that don't have access to highways and trunks for example.

abyrd commented 9 years ago

Absolutely, this would be possible and I would like to include such a change to the extent that it allows you to model small electric vehicles (perhaps in carsharing systems). The best way to get it in place immediately would be to use the carSpeed field of street edges: we would be filtering streets based on their posted speed limit.

laurentg commented 9 years ago

Ideally, we could also add those access restrictions and the OSM minspeed tag. That way, the CAR mode could be configured in the request with options such as the "max minspeed" (that is, the max speed the vehicle can travel at safely) and type of vehicle (trailer, caravan, etc...).

For buses or lorry, we could also add bridges restrictions (min height, max weight).

JordenVerwer commented 9 years ago

We might as well just add a maxSpeed parameter then. maxSpeed (of the car) >= minspeed (of the road) : travel at maxSpeed maxSpeed < minspeed : do not use road

laurentg commented 9 years ago

maxSpeed (of the car) >= minspeed (of the road) : travel at maxSpeed

You mean: travel at min(vehicleMaxSpeed, roadMaxSpeed) ? I know people usually break the law, we should not give them the excuse of "my route planner instruct me to drive at 160 kph" !

JordenVerwer commented 9 years ago

Yeah, obviously...

laurentg commented 9 years ago

As a side-node: adding lots of fields to the street edge could break all the memory optimization "hard work" we've done on the NY project. We could replace the carSpeed and those proposed new fields by a single pointer to a shared "car road type" instance. Most of the roads will share the same access restrictions (I guess 99% of them being a simple road type with a standard max speed).

abyrd commented 9 years ago

@JordenVerwer you mention minSpeed (of the road) but I don't think we have any such field. The field we do have is the typical speed of the road. The objective here is to not use any roads at all if the typical speed of that road exceeds the speed the vehicle is capable of. @laurentg if we add any more fields (or maybe even if we do not), yes I think there should be some notion of road types, with all roads of the same type referencing the same road type object.

JordenVerwer commented 9 years ago

Yes, I was commenting on @laurentg's suggestion that we start using that OSM field.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days