azavea / cac-tripplanner

Clean Air Council Circuit Trip Planner and Travelshed
https://gophillygo.org/
Other
15 stars 7 forks source link

Replace bike triangle weighting with optimize flags #986

Closed flibbertigibbet closed 6 years ago

flibbertigibbet commented 6 years ago

For bicycle trips, the UI offers options to specify 'any', 'flat', 'fast', or 'safe' as a ride preference, which set weights for the OTP optimizer "triangle" parameter in .

For these options, switch from sending "triangle" optimizer values to using the optimizer flags:

Note that GREENWAYS does not differentiate path type in another way that SAFE, but rather simply uses a heavier weighting, so it is something of a misnomer. A "Greenway" is assumed to be any bike lane 10x as safe as an ordinary street.

flibbertigibbet commented 6 years ago

Tested routing changes locally with combination of latest updated OSM data, and it will locally route along Wiggins Promenade with the GREENWAYS optimizer flag, but will avoid it otherwise. For bike trips, maximizing the safety factor will also route on the promenade. Current production site (with older OSM dataset) will not respond to these flags as well for that area.

Note that GREENWAYS flag works with walking trips, while the "triangle" optimizer values only work with bike trips.