RoutingCloudClient¶
Namespace: ThinkGeo.Core
A class provides the methods to access the Routing APIs.
public class RoutingCloudClient : CloudClient, System.IDisposable
Inheritance Object → CloudClient → RoutingCloudClient
 Implements IDisposable
Remarks:
A class provides the methods to access the Routing APIs.
Properties¶
TimeoutInSeconds¶
The request timeout, default 100 seconds
public int TimeoutInSeconds { get; set; }
Property Value¶
WebProxy¶
The proxy used for requesting a Web Response.
public IWebProxy WebProxy { get; set; }
Property Value¶
IWebProxy
ClientId¶
A GIS Server NativeConfidential client ID.
public string ClientId { get; set; }
Property Value¶
ClientSecret¶
A GIS Server NativeConfidential client secret.
public string ClientSecret { get; set; }
Property Value¶
BaseUris¶
Candidate Gis Server Uris. This collection must have one uri at least before sending any request.
public Collection<Uri> BaseUris { get; }
Property Value¶
Constructors¶
RoutingCloudClient()¶
Initilizes an instance. You need apply client Id and secret by properties.
public RoutingCloudClient()
RoutingCloudClient(String, String)¶
Initializes an instance with ClientID and ClientSecret. It will send a request to GIS Server to gain the token which will be added to the Header for all the requests.
public RoutingCloudClient(string clientId, string clientSecret)
Parameters¶
clientId String
 The ClientID for the auth.
clientSecret String
 The ClientSecret for the auth.
Exceptions¶
ArgumentNullException
 Thrown when the or is null.
Methods¶
GetRoute(IEnumerable<PointShape>, CloudRoutingGetRouteOptions)¶
Calculate a route through the specified waypoints.
public CloudRoutingGetRouteResult GetRoute(IEnumerable<PointShape> waypoints, CloudRoutingGetRouteOptions options)
Parameters¶
waypoints IEnumerable<PointShape>
 A list of coordinates to travel in order.
options CloudRoutingGetRouteOptions
 The options for the GetRoute.
Returns¶
GetRoute(IEnumerable<PointShape>, Int32, CloudRoutingGetRouteOptions)¶
Calculate a route through the specified waypoints.
public CloudRoutingGetRouteResult GetRoute(IEnumerable<PointShape> waypoints, int srid, CloudRoutingGetRouteOptions options)
Parameters¶
waypoints IEnumerable<PointShape>
 A list of coordinates to travel in order.
srid Int32
 Specifies the SRID (spatial reference system ID). Defaults to 4326.
options CloudRoutingGetRouteOptions
 The options for the GetRoute.
Returns¶
GetRoute(IEnumerable<PointShape>, String, CloudRoutingGetRouteOptions)¶
Calculate a route through the specified waypoints.
public CloudRoutingGetRouteResult GetRoute(IEnumerable<PointShape> waypoints, string proj4String, CloudRoutingGetRouteOptions options)
Parameters¶
waypoints IEnumerable<PointShape>
 A list of coordinates to travel in order.
proj4String String
 Specifies the proj4string (coordinate system).
options CloudRoutingGetRouteOptions
 The options for the GetRoute.
Returns¶
GetRouteAsync(IEnumerable<PointShape>, CloudRoutingGetRouteOptions)¶
Calculate a route through the specified waypoints.
public Task<CloudRoutingGetRouteResult> GetRouteAsync(IEnumerable<PointShape> waypoints, CloudRoutingGetRouteOptions options)
Parameters¶
waypoints IEnumerable<PointShape>
 A list of coordinates to travel in order.
options CloudRoutingGetRouteOptions
 The options for the GetRoute.
Returns¶
Task<CloudRoutingGetRouteResult>
GetRouteAsync(IEnumerable<PointShape>, Int32, CloudRoutingGetRouteOptions)¶
Calculate a route through the specified waypoints.
public Task<CloudRoutingGetRouteResult> GetRouteAsync(IEnumerable<PointShape> waypoints, int srid, CloudRoutingGetRouteOptions options)
Parameters¶
waypoints IEnumerable<PointShape>
 A list of coordinates to travel in order.
srid Int32
 Specifies the SRID (spatial reference system ID). Defaults to 4326.
options CloudRoutingGetRouteOptions
 The options for the GetRoute.
Returns¶
Task<CloudRoutingGetRouteResult>
GetRouteAsync(IEnumerable<PointShape>, String, CloudRoutingGetRouteOptions)¶
Calculate a route through the specified waypoints.
public Task<CloudRoutingGetRouteResult> GetRouteAsync(IEnumerable<PointShape> waypoints, string proj4String, CloudRoutingGetRouteOptions options)
Parameters¶
waypoints IEnumerable<PointShape>
 A list of coordinates to travel in order.
proj4String String
 Specifies the proj4string (coordinate system).
options CloudRoutingGetRouteOptions
 The options for the GetRoute.
Returns¶
Task<CloudRoutingGetRouteResult>
GetServiceArea(PointShape, IEnumerable<Double>, CloudRoutingGetServiceAreaOptions)¶
Calculate the ServiceArea through the specified point.
public CloudRoutingGetServiceAreaResult GetServiceArea(PointShape point, IEnumerable<double> serviceLimits, CloudRoutingGetServiceAreaOptions options)
Parameters¶
point PointShape
 The point.
serviceLimits IEnumerable<Double>
 The list represents the travel distances or travel times to generate for each facility. The maximum number of ServiceLimits is 6.
options CloudRoutingGetServiceAreaOptions
 The options for the GetServiceArea.
Returns¶
CloudRoutingGetServiceAreaResult
GetServiceArea(PointShape, Int32, IEnumerable<Double>, CloudRoutingGetServiceAreaOptions)¶
Calculate the ServiceArea through the specified point.
public CloudRoutingGetServiceAreaResult GetServiceArea(PointShape point, int srid, IEnumerable<double> serviceLimits, CloudRoutingGetServiceAreaOptions options)
Parameters¶
point PointShape
 The point.
srid Int32
 Specifies the SRID (spatial reference system ID). Defaults to 4326.
serviceLimits IEnumerable<Double>
 The list represents the travel distances or travel times to generate for each facility. The maximum number of ServiceLimits is 6.
options CloudRoutingGetServiceAreaOptions
 The options for the GetServiceArea.
Returns¶
CloudRoutingGetServiceAreaResult
GetServiceArea(PointShape, String, IEnumerable<Double>, CloudRoutingGetServiceAreaOptions)¶
Calculate the ServiceArea through the specified point.
public CloudRoutingGetServiceAreaResult GetServiceArea(PointShape point, string proj4String, IEnumerable<double> serviceLimits, CloudRoutingGetServiceAreaOptions options)
Parameters¶
point PointShape
 The point.
proj4String String
 Specifies the proj4string (coordinate system).
serviceLimits IEnumerable<Double>
 The list represents the travel distances or travel times to generate for each facility. The maximum number of ServiceLimits is 6.
options CloudRoutingGetServiceAreaOptions
 The options for the GetServiceArea.
Returns¶
CloudRoutingGetServiceAreaResult
GetServiceArea(PointShape, IEnumerable<TimeSpan>, CloudRoutingGetServiceAreaOptions)¶
Calculate the ServiceArea through the specified point.
public CloudRoutingGetServiceAreaResult GetServiceArea(PointShape point, IEnumerable<TimeSpan> serviceLimits, CloudRoutingGetServiceAreaOptions options)
Parameters¶
point PointShape
 The point.
serviceLimits IEnumerable<TimeSpan>
 The list represents the travel distances or travel times to generate for each facility. The maximum number of ServiceLimits is 6.
options CloudRoutingGetServiceAreaOptions
 The options for the GetServiceArea.
Returns¶
CloudRoutingGetServiceAreaResult
GetServiceArea(PointShape, Int32, IEnumerable<TimeSpan>, CloudRoutingGetServiceAreaOptions)¶
Calculate the ServiceArea through the specified point.
public CloudRoutingGetServiceAreaResult GetServiceArea(PointShape point, int srid, IEnumerable<TimeSpan> serviceLimits, CloudRoutingGetServiceAreaOptions options)
Parameters¶
point PointShape
 The point.
srid Int32
 Specifies the SRID (spatial reference system ID). Defaults to 4326.
serviceLimits IEnumerable<TimeSpan>
 The list represents the travel distances or travel times to generate for each facility. The maximum number of ServiceLimits is 6.
options CloudRoutingGetServiceAreaOptions
 The options for the GetServiceArea.
Returns¶
CloudRoutingGetServiceAreaResult
GetServiceArea(PointShape, String, IEnumerable<TimeSpan>, CloudRoutingGetServiceAreaOptions)¶
Calculate the ServiceArea through the specified point.
public CloudRoutingGetServiceAreaResult GetServiceArea(PointShape point, string proj4String, IEnumerable<TimeSpan> serviceLimits, CloudRoutingGetServiceAreaOptions options)
Parameters¶
point PointShape
 The point.
proj4String String
 Specifies the proj4string (coordinate system).
serviceLimits IEnumerable<TimeSpan>
 The list represents the travel distances or travel times to generate for each facility. The maximum number of ServiceLimits is 6.
options CloudRoutingGetServiceAreaOptions
 The options for the GetServiceArea.
Returns¶
CloudRoutingGetServiceAreaResult
GetServiceAreaAsync(PointShape, IEnumerable<Double>, CloudRoutingGetServiceAreaOptions)¶
Calculate the ServiceArea through the specified point.
public Task<CloudRoutingGetServiceAreaResult> GetServiceAreaAsync(PointShape point, IEnumerable<double> serviceLimits, CloudRoutingGetServiceAreaOptions options)
Parameters¶
point PointShape
 The point.
serviceLimits IEnumerable<Double>
 The list represents the travel distances or travel times to generate for each facility. The maximum number of ServiceLimits is 6.
options CloudRoutingGetServiceAreaOptions
 The options for the GetServiceArea.
Returns¶
Task<CloudRoutingGetServiceAreaResult>
GetServiceAreaAsync(PointShape, Int32, IEnumerable<Double>, CloudRoutingGetServiceAreaOptions)¶
Calculate the ServiceArea through the specified point.
public Task<CloudRoutingGetServiceAreaResult> GetServiceAreaAsync(PointShape point, int srid, IEnumerable<double> serviceLimits, CloudRoutingGetServiceAreaOptions options)
Parameters¶
point PointShape
 The point.
srid Int32
 Specifies the SRID (spatial reference system ID). Defaults to 4326.
serviceLimits IEnumerable<Double>
 The list represents the travel distances or travel times to generate for each facility. The maximum number of ServiceLimits is 6.
options CloudRoutingGetServiceAreaOptions
 The options for the GetServiceArea.
Returns¶
Task<CloudRoutingGetServiceAreaResult>
GetServiceAreaAsync(PointShape, String, IEnumerable<Double>, CloudRoutingGetServiceAreaOptions)¶
Calculate the ServiceArea through the specified point.
public Task<CloudRoutingGetServiceAreaResult> GetServiceAreaAsync(PointShape point, string proj4String, IEnumerable<double> serviceLimits, CloudRoutingGetServiceAreaOptions options)
Parameters¶
point PointShape
 The point.
proj4String String
 Specifies the proj4string (coordinate system).
serviceLimits IEnumerable<Double>
 The list represents the travel distances or travel times to generate for each facility. The maximum number of ServiceLimits is 6.
options CloudRoutingGetServiceAreaOptions
 The options for the GetServiceArea.
Returns¶
Task<CloudRoutingGetServiceAreaResult>
GetServiceAreaAsync(PointShape, IEnumerable<TimeSpan>, CloudRoutingGetServiceAreaOptions)¶
Calculate the ServiceArea through the specified point.
public Task<CloudRoutingGetServiceAreaResult> GetServiceAreaAsync(PointShape point, IEnumerable<TimeSpan> serviceLimits, CloudRoutingGetServiceAreaOptions options)
Parameters¶
point PointShape
 The point.
serviceLimits IEnumerable<TimeSpan>
 The list represents the travel distances or travel times to generate for each facility. The maximum number of ServiceLimits is 6.
options CloudRoutingGetServiceAreaOptions
 The options for the GetServiceArea.
Returns¶
Task<CloudRoutingGetServiceAreaResult>
GetServiceAreaAsync(PointShape, Int32, IEnumerable<TimeSpan>, CloudRoutingGetServiceAreaOptions)¶
Calculate the ServiceArea through the specified point.
public Task<CloudRoutingGetServiceAreaResult> GetServiceAreaAsync(PointShape point, int srid, IEnumerable<TimeSpan> serviceLimits, CloudRoutingGetServiceAreaOptions options)
Parameters¶
point PointShape
 The point.
srid Int32
 Specifies the SRID (spatial reference system ID). Defaults to 4326.
serviceLimits IEnumerable<TimeSpan>
 The list represents the travel distances or travel times to generate for each facility. The maximum number of ServiceLimits is 6.
options CloudRoutingGetServiceAreaOptions
 The options for the GetServiceArea.
Returns¶
Task<CloudRoutingGetServiceAreaResult>
GetServiceAreaAsync(PointShape, String, IEnumerable<TimeSpan>, CloudRoutingGetServiceAreaOptions)¶
Calculate the ServiceArea through the specified point.
public Task<CloudRoutingGetServiceAreaResult> GetServiceAreaAsync(PointShape point, string proj4String, IEnumerable<TimeSpan> serviceLimits, CloudRoutingGetServiceAreaOptions options)
Parameters¶
point PointShape
 The point.
proj4String String
 Specifies the proj4string (coordinate system).
serviceLimits IEnumerable<TimeSpan>
 The list represents the travel distances or travel times to generate for each facility. The maximum number of ServiceLimits is 6.
options CloudRoutingGetServiceAreaOptions
 The options for the GetServiceArea.
Returns¶
Task<CloudRoutingGetServiceAreaResult>
GetTimeCostMatrix(IEnumerable<PointShape>, IEnumerable<PointShape>, CloudRoutingGetCostMatrixOptions)¶
Generate a matrix of travel times or distances between each location in a collection.
public CloudRoutingGetTimeCostMatrixResult GetTimeCostMatrix(IEnumerable<PointShape> origins, IEnumerable<PointShape> destinations, CloudRoutingGetCostMatrixOptions options)
Parameters¶
origins IEnumerable<PointShape>
 The origins.
destinations IEnumerable<PointShape>
 The destinations.
options CloudRoutingGetCostMatrixOptions
 The options of GetCostMatrix.
Returns¶
CloudRoutingGetTimeCostMatrixResult
GetTimeCostMatrix(IEnumerable<PointShape>, IEnumerable<PointShape>, Int32, CloudRoutingGetCostMatrixOptions)¶
Generate a matrix of travel times or distances between each location in a collection.
public CloudRoutingGetTimeCostMatrixResult GetTimeCostMatrix(IEnumerable<PointShape> origins, IEnumerable<PointShape> destinations, int srid, CloudRoutingGetCostMatrixOptions options)
Parameters¶
origins IEnumerable<PointShape>
 The origins.
destinations IEnumerable<PointShape>
 The destinations.
srid Int32
 Specifies the SRID (spatial reference system ID). Defaults to 4326.
options CloudRoutingGetCostMatrixOptions
 The options of GetCostMatrix.
Returns¶
CloudRoutingGetTimeCostMatrixResult
GetTimeCostMatrix(IEnumerable<PointShape>, IEnumerable<PointShape>, String, CloudRoutingGetCostMatrixOptions)¶
Generate a matrix of travel times or distances between each location in a collection.
public CloudRoutingGetTimeCostMatrixResult GetTimeCostMatrix(IEnumerable<PointShape> origins, IEnumerable<PointShape> destinations, string proj4String, CloudRoutingGetCostMatrixOptions options)
Parameters¶
origins IEnumerable<PointShape>
 The origins.
destinations IEnumerable<PointShape>
 The destinations.
proj4String String
 Specifies the proj4string (coordinate system).
options CloudRoutingGetCostMatrixOptions
 The options of GetCostMatrix.
Returns¶
CloudRoutingGetTimeCostMatrixResult
GetTimeCostMatrixAsync(IEnumerable<PointShape>, IEnumerable<PointShape>, CloudRoutingGetCostMatrixOptions)¶
Generate a matrix of travel times or distances between each location in a collection.
public Task<CloudRoutingGetTimeCostMatrixResult> GetTimeCostMatrixAsync(IEnumerable<PointShape> origins, IEnumerable<PointShape> destinations, CloudRoutingGetCostMatrixOptions options)
Parameters¶
origins IEnumerable<PointShape>
 The origins.
destinations IEnumerable<PointShape>
 The destinations.
options CloudRoutingGetCostMatrixOptions
 The options of GetCostMatrix.
Returns¶
Task<CloudRoutingGetTimeCostMatrixResult>
GetTimeCostMatrixAsync(IEnumerable<PointShape>, IEnumerable<PointShape>, Int32, CloudRoutingGetCostMatrixOptions)¶
Generate a matrix of travel times or distances between each location in a collection.
public Task<CloudRoutingGetTimeCostMatrixResult> GetTimeCostMatrixAsync(IEnumerable<PointShape> origins, IEnumerable<PointShape> destinations, int srid, CloudRoutingGetCostMatrixOptions options)
Parameters¶
origins IEnumerable<PointShape>
 The origins.
destinations IEnumerable<PointShape>
 The destinations.
srid Int32
 Specifies the SRID (spatial reference system ID). Defaults to 4326.
options CloudRoutingGetCostMatrixOptions
 The options of GetCostMatrix.
Returns¶
Task<CloudRoutingGetTimeCostMatrixResult>
GetTimeCostMatrixAsync(IEnumerable<PointShape>, IEnumerable<PointShape>, String, CloudRoutingGetCostMatrixOptions)¶
Generate a matrix of travel times or distances between each location in a collection.
public Task<CloudRoutingGetTimeCostMatrixResult> GetTimeCostMatrixAsync(IEnumerable<PointShape> origins, IEnumerable<PointShape> destinations, string proj4String, CloudRoutingGetCostMatrixOptions options)
Parameters¶
origins IEnumerable<PointShape>
 The origins.
destinations IEnumerable<PointShape>
 The destinations.
proj4String String
 Specifies the proj4string (coordinate system).
options CloudRoutingGetCostMatrixOptions
 The options of GetCostMatrix.
Returns¶
Task<CloudRoutingGetTimeCostMatrixResult>
GetDistanceCostMatrix(IEnumerable<PointShape>, IEnumerable<PointShape>, CloudRoutingGetCostMatrixOptions)¶
Generate a matrix of travel times or distances between each location in a collection.
public CloudRoutingGetDistanceCostMatrixResult GetDistanceCostMatrix(IEnumerable<PointShape> origins, IEnumerable<PointShape> destinations, CloudRoutingGetCostMatrixOptions options)
Parameters¶
origins IEnumerable<PointShape>
 The origins.
destinations IEnumerable<PointShape>
 The destinations.
options CloudRoutingGetCostMatrixOptions
 The options of GetCostMatrix.
Returns¶
CloudRoutingGetDistanceCostMatrixResult
GetDistanceCostMatrix(IEnumerable<PointShape>, IEnumerable<PointShape>, Int32, CloudRoutingGetCostMatrixOptions)¶
Generate a matrix of travel times or distances between each location in a collection.
public CloudRoutingGetDistanceCostMatrixResult GetDistanceCostMatrix(IEnumerable<PointShape> origins, IEnumerable<PointShape> destinations, int srid, CloudRoutingGetCostMatrixOptions options)
Parameters¶
origins IEnumerable<PointShape>
 The origins.
destinations IEnumerable<PointShape>
 The destinations.
srid Int32
 Specifies the SRID (spatial reference system ID). Defaults to 4326.
options CloudRoutingGetCostMatrixOptions
 The options of GetCostMatrix.
Returns¶
CloudRoutingGetDistanceCostMatrixResult
GetDistanceCostMatrix(IEnumerable<PointShape>, IEnumerable<PointShape>, String, CloudRoutingGetCostMatrixOptions)¶
Generate a matrix of travel times or distances between each location in a collection.
public CloudRoutingGetDistanceCostMatrixResult GetDistanceCostMatrix(IEnumerable<PointShape> origins, IEnumerable<PointShape> destinations, string proj4String, CloudRoutingGetCostMatrixOptions options)
Parameters¶
origins IEnumerable<PointShape>
 The origins.
destinations IEnumerable<PointShape>
 The destinations.
proj4String String
 Specifies the proj4string (coordinate system).
options CloudRoutingGetCostMatrixOptions
 The options of GetCostMatrix.
Returns¶
CloudRoutingGetDistanceCostMatrixResult
GetDistanceCostMatrixAsync(IEnumerable<PointShape>, IEnumerable<PointShape>, CloudRoutingGetCostMatrixOptions)¶
Generate a matrix of travel times or distances between each location in a collection.
public Task<CloudRoutingGetDistanceCostMatrixResult> GetDistanceCostMatrixAsync(IEnumerable<PointShape> origins, IEnumerable<PointShape> destinations, CloudRoutingGetCostMatrixOptions options)
Parameters¶
origins IEnumerable<PointShape>
 The origins.
destinations IEnumerable<PointShape>
 The destinations.
options CloudRoutingGetCostMatrixOptions
 The options of GetCostMatrix.
Returns¶
Task<CloudRoutingGetDistanceCostMatrixResult>
GetDistanceCostMatrixAsync(IEnumerable<PointShape>, IEnumerable<PointShape>, Int32, CloudRoutingGetCostMatrixOptions)¶
Generate a matrix of travel times or distances between each location in a collection.
public Task<CloudRoutingGetDistanceCostMatrixResult> GetDistanceCostMatrixAsync(IEnumerable<PointShape> origins, IEnumerable<PointShape> destinations, int srid, CloudRoutingGetCostMatrixOptions options)
Parameters¶
origins IEnumerable<PointShape>
 The origins.
destinations IEnumerable<PointShape>
 The destinations.
srid Int32
 Specifies the SRID (spatial reference system ID). Defaults to 4326.
options CloudRoutingGetCostMatrixOptions
 The options of GetCostMatrix.
Returns¶
Task<CloudRoutingGetDistanceCostMatrixResult>
GetDistanceCostMatrixAsync(IEnumerable<PointShape>, IEnumerable<PointShape>, String, CloudRoutingGetCostMatrixOptions)¶
Generate a matrix of travel times or distances between each location in a collection.
public Task<CloudRoutingGetDistanceCostMatrixResult> GetDistanceCostMatrixAsync(IEnumerable<PointShape> origins, IEnumerable<PointShape> destinations, string proj4String, CloudRoutingGetCostMatrixOptions options)
Parameters¶
origins IEnumerable<PointShape>
 The origins.
destinations IEnumerable<PointShape>
 The destinations.
proj4String String
 Specifies the proj4string (coordinate system).
options CloudRoutingGetCostMatrixOptions
 The options of GetCostMatrix.
Returns¶
Task<CloudRoutingGetDistanceCostMatrixResult>
GetOptimizedRoute(IEnumerable<PointShape>, CloudRoutingOptimizationOptions)¶
The Optimization API returns a duration-optimized route between the input coordinates, known as Traveling Salesman Problem.
public CloudRoutingOptimizationResult GetOptimizedRoute(IEnumerable<PointShape> coordinates, CloudRoutingOptimizationOptions options)
Parameters¶
coordinates IEnumerable<PointShape>
 A list of coordinates to travel in order.
options CloudRoutingOptimizationOptions
 The options for the optimization.
Returns¶
CloudRoutingOptimizationResult
GetOptimizedRoute(IEnumerable<PointShape>, Int32, CloudRoutingOptimizationOptions)¶
The Optimization API returns a duration-optimized route between the input coordinates, known as Traveling Salesman Problem.
public CloudRoutingOptimizationResult GetOptimizedRoute(IEnumerable<PointShape> coordinates, int srid, CloudRoutingOptimizationOptions options)
Parameters¶
coordinates IEnumerable<PointShape>
 A list of coordinates to travel in order.
srid Int32
 Specifies the SRID (spatial reference system ID). Defaults to 4326.
options CloudRoutingOptimizationOptions
 The options for the optimization.
Returns¶
CloudRoutingOptimizationResult
GetOptimizedRoute(IEnumerable<PointShape>, String, CloudRoutingOptimizationOptions)¶
The Optimization API returns a duration-optimized route between the input coordinates, known as Traveling Salesman Problem.
public CloudRoutingOptimizationResult GetOptimizedRoute(IEnumerable<PointShape> coordinates, string proj4String, CloudRoutingOptimizationOptions options)
Parameters¶
coordinates IEnumerable<PointShape>
 A list of coordinates to travel in order.
proj4String String
 Specifies the proj4string (coordinate system).
options CloudRoutingOptimizationOptions
 The options for the optimization.
Returns¶
CloudRoutingOptimizationResult
GetOptimizedRouteAsync(IEnumerable<PointShape>, CloudRoutingOptimizationOptions)¶
The Optimization API returns a duration-optimized route between the input coordinates, known as Traveling Salesman Problem.
public Task<CloudRoutingOptimizationResult> GetOptimizedRouteAsync(IEnumerable<PointShape> coordinates, CloudRoutingOptimizationOptions options)
Parameters¶
coordinates IEnumerable<PointShape>
 A list of coordinates to travel in order.
options CloudRoutingOptimizationOptions
 The options for the optimization.
Returns¶
Task<CloudRoutingOptimizationResult>
GetOptimizedRouteAsync(IEnumerable<PointShape>, Int32, CloudRoutingOptimizationOptions)¶
The Optimization API returns a duration-optimized route between the input coordinates, known as Traveling Salesman Problem.
public Task<CloudRoutingOptimizationResult> GetOptimizedRouteAsync(IEnumerable<PointShape> coordinates, int srid, CloudRoutingOptimizationOptions options)
Parameters¶
coordinates IEnumerable<PointShape>
 A list of coordinates to travel in order.
srid Int32
 Specifies the SRID (spatial reference system ID). Defaults to 4326.
options CloudRoutingOptimizationOptions
 The options for the optimization.
Returns¶
Task<CloudRoutingOptimizationResult>
GetOptimizedRouteAsync(IEnumerable<PointShape>, String, CloudRoutingOptimizationOptions)¶
The Optimization API returns a duration-optimized route between the input coordinates, known as Traveling Salesman Problem.
public Task<CloudRoutingOptimizationResult> GetOptimizedRouteAsync(IEnumerable<PointShape> coordinates, string proj4String, CloudRoutingOptimizationOptions options)
Parameters¶
coordinates IEnumerable<PointShape>
 A list of coordinates to travel in order.
proj4String String
 Specifies the proj4string (coordinate system).
options CloudRoutingOptimizationOptions
 The options for the optimization.
Returns¶
Task<CloudRoutingOptimizationResult>
Events¶
GettingAccessToken¶
Occurs before getting an AccessToken.
public event EventHandler<GettingAccessTokenEventArgs> GettingAccessToken;
SendingWebRequest¶
Occurs before sending a web request.
public event EventHandler<SendingWebRequestEventArgs> SendingWebRequest;
SentWebRequest¶
Occurs after the response of a web request is gotten.
public event EventHandler<SentWebRequestEventArgs> SentWebRequest;