Package globus.glroute
Class CostingOptions.Motorcycle
java.lang.Object
globus.glroute.CostingOptions
globus.glroute.CostingOptions.Motorcycle
- Enclosing class:
- CostingOptions
Options for motorcycle mode
-
Nested Class Summary
Nested classes/interfaces inherited from class globus.glroute.CostingOptions
CostingOptions.Auto, CostingOptions.Bicycle, CostingOptions.Motorcycle, CostingOptions.MotorScooter, CostingOptions.Pedestrian, CostingOptions.Penalties, CostingOptions.Road, CostingOptions.Straight, CostingOptions.Truck, CostingOptions.Vehicle
-
Field Summary
Modifier and TypeFieldDescriptionRoad optionsboolean
Changes the metric to quasi-shortest, i.e.float
A rider's desire for adventure in their routes. -
Constructor Summary
-
Method Summary
Methods inherited from class globus.glroute.CostingOptions
getJson, initFromJson
-
Field Details
-
road
Road options -
useTrails
public float useTrailsA 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 shortestChanges 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
-
write
- Throws:
IOException
-