Package globus.glroute
Class CostingOptions.Penalties
java.lang.Object
globus.glroute.CostingOptions
globus.glroute.CostingOptions.Penalties
- Enclosing class:
- CostingOptions
General penalties
-
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 TypeFieldDescriptionfloat
A cost applied when encountering an international border.float
A penalty applied for a country crossing.float
A cost applied when a gate with undefined or private access is encountered.float
A penalty applied when a gate with no access information is on the road.float
A penalty applied when transitioning between roads that do not have consistent naming–in other words, no road names in common.float
A penalty applied for transition to generic service road. -
Constructor Summary
-
Method Summary
Methods inherited from class globus.glroute.CostingOptions
getJson, initFromJson
-
Field Details
-
maneuverPenalty
public float maneuverPenaltyA penalty applied when transitioning between roads that do not have consistent naming–in other words, no road names in common. This penalty can be used to create simpler routes that tend to have fewer maneuvers or narrative guidance instructions. The default maneuver penalty is five seconds. -
gateCost
public float gateCostA cost applied when a gate with undefined or private access is encountered. This cost is added to the estimated time / elapsed time. The default gate cost is 30 seconds. -
gatePenalty
public float gatePenaltyA penalty applied when a gate with no access information is on the road. The default gate penalty is 300 seconds. -
countryCrossingCost
public float countryCrossingCostA cost applied when encountering an international border. This cost is added to the estimated and elapsed times. The default cost is 600 seconds. -
countryCrossingPenalty
public float countryCrossingPenaltyA penalty applied for a country crossing. This penalty can be used to create paths that avoid spanning country boundaries. The default penalty is 0. -
servicePenalty
public float servicePenaltyA penalty applied for transition to generic service road. The default penalty is 0 for trucks and 15 for cars, buses, motor scooters and motorcycles.
-
-
Constructor Details
-
Penalties
public Penalties()
-
-
Method Details
-
write
- Throws:
IOException
-