Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MatrixResponse" /> class.
 /// </summary>
 /// <param name="Distances">Distances.</param>
 /// <param name="Times">Times.</param>
 /// <param name="Weights">Weights.</param>
 /// <param name="Info">Info.</param>
 public MatrixResponse(List <List <decimal?> > Distances = default(List <List <decimal?> >), List <List <decimal?> > Times = default(List <List <decimal?> >), List <List <double?> > Weights = default(List <List <double?> >), ResponseInfo Info = default(ResponseInfo))
 {
     this.Distances = Distances;
     this.Times     = Times;
     this.Weights   = Weights;
     this.Info      = Info;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RouteResponse" /> class.
 /// </summary>
 /// <param name="paths">paths.</param>
 /// <param name="info">info.</param>
 public RouteResponse(List <RouteResponsePath> paths = default(List <RouteResponsePath>), ResponseInfo info = default(ResponseInfo))
 {
     this.Paths = paths;
     this.Info  = info;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RouteResponse" /> class.
 /// </summary>
 /// <param name="Paths">Paths.</param>
 /// <param name="Info">Info.</param>
 public RouteResponse(List <RouteResponsePath> Paths = default(List <RouteResponsePath>), ResponseInfo Info = default(ResponseInfo))
 {
     this.Paths = Paths;
     this.Info  = Info;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MatrixResponse" /> class.
 /// </summary>
 /// <param name="distances">The distance matrix for the specified points in the same order as the time matrix. The distances are in meters. If &#x60;fail_fast&#x3D;false&#x60; the matrix will contain &#x60;null&#x60; for connections that could not be found..</param>
 /// <param name="times">The time matrix for the specified points in the order [[from1-&gt;to1, from1-&gt;to2, ...], [from2-&gt;to1, from2-&gt;to2, ...], ...]. The times are in seconds. If &#x60;fail_fast&#x3D;false&#x60; the matrix will contain &#x60;null&#x60; for connections that could not be found..</param>
 /// <param name="weights">The weight matrix for the specified points in the same order as the time matrix. The weights for different vehicles can have a different unit but the weights array is perfectly suited as input for Vehicle Routing Problems as it is currently faster to calculate. If &#x60;fail_fast&#x3D;false&#x60; the matrix will contain &#x60;null&#x60; for connections that could not be found..</param>
 /// <param name="info">info.</param>
 /// <param name="hints">Optional. Additional response data.</param>
 public MatrixResponse(List <List <decimal?> > distances = default(List <List <decimal?> >), List <List <decimal?> > times = default(List <List <decimal?> >), List <List <double?> > weights = default(List <List <double?> >), ResponseInfo info = default(ResponseInfo), List <MatrixResponseHints> hints = default(List <MatrixResponseHints>))
 {
     this.Distances = distances;
     this.Times     = times;
     this.Weights   = weights;
     this.Info      = info;
     this.Hints     = hints;
 }