CostingOptionsMotorcycle

Objective-C

struct CostingOptionsMotorcycle {}

Options for straight mode

  • Road options

    Declaration

    Objective-C

    CostingOptionsRoad road

    Swift

    var road: CostingOptionsRoad
  • A riders’s desire for adventure in their routes. This is a range of values from 0 to 1, where 0 will avoid trails, tracks, unclassified or bad surfaces and values towards 1 will tend to avoid major roads and route on secondary roads. The default value is 0.0.

    Declaration

    Objective-C

    float useTrails

    Swift

    var useTrails: Float
  • Changes the metric to quasi-shortest, i.e. purely distance-based costing. Note, this will disable all other costings & penalties. Also note, shortest will not disable hierarchy pruning, leading to potentially sub-optimal routes for some costing models. The default is false.

    Declaration

    Objective-C

    _Bool shortest

    Swift

    var shortest: Bool