Class CostingOptions.Motorcycle

java.lang.Object
globus.glroute.CostingOptions
globus.glroute.CostingOptions.Motorcycle
Enclosing class:
CostingOptions

public static class CostingOptions.Motorcycle extends CostingOptions
Options for motorcycle mode
  • Field Details

    • road

      public CostingOptions.Road road
      Road options
    • useTrails

      public float useTrails
      A rider'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.
    • shortest

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

    • Motorcycle

      public Motorcycle()
  • Method Details