Skip to content

WalkOptions parameters

bmander edited this page Sep 13, 2010 · 3 revisions

WalkOptions members:

int transfer_penalty – Added to edge weight on evaluation of every TripBoard, HeadwayBoard, Alight, and HeadwayAlight edge. Discourages transferring.
int turn_penalty – Added to edge weight on evaluation of any Street, when the previous street does not have the same ‘way’ setting.
float walking_speed – The time to cross any Street edge is Street→length / walking_speed.
float walking_reluctance – A multiplier added on to every Street edge to reflect reluctance to walk on the street. Set higher to encourage use of transit.
float uphill_slowness – Factor by which someone’s speed is slowed going straight uphill. A 15 mph rider on a flat will climb at 1.2 mph, for example. Set at 0.08, a number I personally experimentally determined.
float downhill_fastness – seconds/meter. Number of seconds regained for every foot dropped. 10 feet dropped will gain you six seconds. Personally experimentally determined.
float hill_reluctance – Factor by which an uphill stretch is penalized, in addition to whatever time is lost by simply gaining. People hate hills, even if ultimately they don’t slow them down.
int max_walk – the maximum a rider can be expected to walk in a stretch
float walking_overage – the overage applied to each edge as the rider goes over the maximum walk distance. This provides for ‘soft’ limits on walking, so that if the important stop is just a few steps over the limit, you can still get there.