/// <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 `fail_fast=false` the matrix will contain `null` for connections that could not be found..</param> /// <param name="times">The time matrix for the specified points in the order [[from1->to1, from1->to2, ...], [from2->to1, from2->to2, ...], ...]. The times are in seconds. If `fail_fast=false` the matrix will contain `null` 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 `fail_fast=false` the matrix will contain `null` 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; }
/// <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; }