UserPreferences.proto
User Preferences
Section titled “User Preferences”User preferences is a part of UserRequest object. For the trip, such as walking and biking speeds. These preferences are used to calculate distances and transfer times.
If not set, default values are used.
message UserPreferences { /** Walking speed in kilometers per hour. Defaults to about 5 km/h if not set. Is used for calculating walking distances and transfer times.
TODO: Pre-cache certain walking speeds (fast, slow, average) in OpenTripPlanner. @default 5.0 */ optional UserSpeed walkingSpeed = 1;
/** Biking speed in kilometers per hour. Defaults to about 15 km/h if not set. Is used for calculating biking distances and transfer times.
TODO: Pre-cache certain biking speeds (fast, slow, average) in OpenTripPlanner. */ optional UserSpeed bikingSpeed = 2;
/** Does the user have an e-bike, if set to true, the biking speed will be increased by 5 km/h from what is set in bikingSpeed or by default. */ optional bool hasEbike = 3;}