CloudRoutingOptimizationOptions¶
Namespace: ThinkGeo.Core
A class provides the options for the Optimization API.
public class CloudRoutingOptimizationOptions
Inheritance Object → CloudRoutingOptimizationOptions
Remarks:
A class provides the options for the Optimization API.
Properties¶
Roundtrip¶
Optional. Indicates whether the returned route is roundtrip, meaning the route returns to the first location (true, default) or not (false).
public bool Roundtrip { get; set; }
Property Value¶
Source¶
Optional. An enum to identify the coordinate at which to start the return route. Accepts first (default) or any. Available values : Any, First
public CloudRoutingTspFixSourceCoordinate Source { get; set; }
Property Value¶
CloudRoutingTspFixSourceCoordinate
Destination¶
Optional. An enum to identify the coordinate at which to end the returned route. Accepts any (default) or last. Available values : Any, Last
public CloudRoutingTspFixDestinationCoordinate Destination { get; set; }
Property Value¶
CloudRoutingTspFixDestinationCoordinate
TurnByTurn¶
Optional. Whether to return turn-by-turn instructions or not. false by default.
public bool TurnByTurn { get; set; }
Property Value¶
CoordinateSnapRadius¶
Optional. The maximum distance of a coordinate can be snapped to the road network in meters. Value must be a positive number. Defaults to 5000. An error “Could not resolve coordinate {x,y}. Probably too far from the closest road or outside of the loaded network ” will be thrown out.
public float CoordinateSnapRadius { get; set; }
Property Value¶
CoordinateSnapRadiusUnit¶
Optional. The unit of the radius to snap the input coordinate to road network. Defaults to “Meter”.
public DistanceUnit CoordinateSnapRadiusUnit { get; set; }
Property Value¶
DistanceUnit¶
Optional. The unit of the distance to measure the route. Defaults to “Meter”.
public DistanceUnit DistanceUnit { get; set; }
Property Value¶
Constructors¶
CloudRoutingOptimizationOptions()¶
public CloudRoutingOptimizationOptions()