Skip to content

Latest commit

 

History

History
316 lines (171 loc) · 10.1 KB

File metadata and controls

316 lines (171 loc) · 10.1 KB

MatrixRequest

Properties

Name Type Description Notes
FromPoints Pointer to [][]float64 The starting points for the routes in an array of `[longitude,latitude]`. For instance, if you want to calculate three routes from point A such as A->1, A->2, A->3 then you have one `from_point` parameter and three `to_point` parameters. [optional]
ToPoints Pointer to [][]float64 The destination points for the routes in an array of `[longitude,latitude]`. [optional]
FromPointHints Pointer to []string See `point_hints`of symmetrical matrix [optional]
ToPointHints Pointer to []string See `point_hints`of symmetrical matrix [optional]
SnapPreventions Pointer to []string See `snap_preventions` of symmetrical matrix [optional]
FromCurbsides Pointer to []string See `curbsides`of symmetrical matrix [optional]
ToCurbsides Pointer to []string See `curbsides`of symmetrical matrix [optional]
OutArrays Pointer to []string Specifies which matrices should be included in the response. Specify one or more of the following options `weights`, `times`, `distances`. The units of the entries of `distances` are meters, of `times` are seconds and of `weights` is arbitrary and it can differ for different vehicles or versions of this API. [optional]
Vehicle Pointer to VehicleProfileId [optional]
FailFast Pointer to bool Specifies whether or not the matrix calculation should return with an error as soon as possible in case some points cannot be found or some points are not connected. If set to `false` the time/weight/distance matrix will be calculated for all valid points and contain the `null` value for all entries that could not be calculated. The `hint` field of the response will also contain additional information about what went wrong (see its documentation). [optional] [default to true]
TurnCosts Pointer to bool Specifies if turn restrictions should be considered. Enabling this option increases the matrix computation time. Only supported for motor vehicles and OpenStreetMap. [optional] [default to false]

Methods

NewMatrixRequest

func NewMatrixRequest() *MatrixRequest

NewMatrixRequest instantiates a new MatrixRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewMatrixRequestWithDefaults

func NewMatrixRequestWithDefaults() *MatrixRequest

NewMatrixRequestWithDefaults instantiates a new MatrixRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetFromPoints

func (o *MatrixRequest) GetFromPoints() [][]float64

GetFromPoints returns the FromPoints field if non-nil, zero value otherwise.

GetFromPointsOk

func (o *MatrixRequest) GetFromPointsOk() (*[][]float64, bool)

GetFromPointsOk returns a tuple with the FromPoints field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetFromPoints

func (o *MatrixRequest) SetFromPoints(v [][]float64)

SetFromPoints sets FromPoints field to given value.

HasFromPoints

func (o *MatrixRequest) HasFromPoints() bool

HasFromPoints returns a boolean if a field has been set.

GetToPoints

func (o *MatrixRequest) GetToPoints() [][]float64

GetToPoints returns the ToPoints field if non-nil, zero value otherwise.

GetToPointsOk

func (o *MatrixRequest) GetToPointsOk() (*[][]float64, bool)

GetToPointsOk returns a tuple with the ToPoints field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetToPoints

func (o *MatrixRequest) SetToPoints(v [][]float64)

SetToPoints sets ToPoints field to given value.

HasToPoints

func (o *MatrixRequest) HasToPoints() bool

HasToPoints returns a boolean if a field has been set.

GetFromPointHints

func (o *MatrixRequest) GetFromPointHints() []string

GetFromPointHints returns the FromPointHints field if non-nil, zero value otherwise.

GetFromPointHintsOk

func (o *MatrixRequest) GetFromPointHintsOk() (*[]string, bool)

GetFromPointHintsOk returns a tuple with the FromPointHints field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetFromPointHints

func (o *MatrixRequest) SetFromPointHints(v []string)

SetFromPointHints sets FromPointHints field to given value.

HasFromPointHints

func (o *MatrixRequest) HasFromPointHints() bool

HasFromPointHints returns a boolean if a field has been set.

GetToPointHints

func (o *MatrixRequest) GetToPointHints() []string

GetToPointHints returns the ToPointHints field if non-nil, zero value otherwise.

GetToPointHintsOk

func (o *MatrixRequest) GetToPointHintsOk() (*[]string, bool)

GetToPointHintsOk returns a tuple with the ToPointHints field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetToPointHints

func (o *MatrixRequest) SetToPointHints(v []string)

SetToPointHints sets ToPointHints field to given value.

HasToPointHints

func (o *MatrixRequest) HasToPointHints() bool

HasToPointHints returns a boolean if a field has been set.

GetSnapPreventions

func (o *MatrixRequest) GetSnapPreventions() []string

GetSnapPreventions returns the SnapPreventions field if non-nil, zero value otherwise.

GetSnapPreventionsOk

func (o *MatrixRequest) GetSnapPreventionsOk() (*[]string, bool)

GetSnapPreventionsOk returns a tuple with the SnapPreventions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSnapPreventions

func (o *MatrixRequest) SetSnapPreventions(v []string)

SetSnapPreventions sets SnapPreventions field to given value.

HasSnapPreventions

func (o *MatrixRequest) HasSnapPreventions() bool

HasSnapPreventions returns a boolean if a field has been set.

GetFromCurbsides

func (o *MatrixRequest) GetFromCurbsides() []string

GetFromCurbsides returns the FromCurbsides field if non-nil, zero value otherwise.

GetFromCurbsidesOk

func (o *MatrixRequest) GetFromCurbsidesOk() (*[]string, bool)

GetFromCurbsidesOk returns a tuple with the FromCurbsides field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetFromCurbsides

func (o *MatrixRequest) SetFromCurbsides(v []string)

SetFromCurbsides sets FromCurbsides field to given value.

HasFromCurbsides

func (o *MatrixRequest) HasFromCurbsides() bool

HasFromCurbsides returns a boolean if a field has been set.

GetToCurbsides

func (o *MatrixRequest) GetToCurbsides() []string

GetToCurbsides returns the ToCurbsides field if non-nil, zero value otherwise.

GetToCurbsidesOk

func (o *MatrixRequest) GetToCurbsidesOk() (*[]string, bool)

GetToCurbsidesOk returns a tuple with the ToCurbsides field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetToCurbsides

func (o *MatrixRequest) SetToCurbsides(v []string)

SetToCurbsides sets ToCurbsides field to given value.

HasToCurbsides

func (o *MatrixRequest) HasToCurbsides() bool

HasToCurbsides returns a boolean if a field has been set.

GetOutArrays

func (o *MatrixRequest) GetOutArrays() []string

GetOutArrays returns the OutArrays field if non-nil, zero value otherwise.

GetOutArraysOk

func (o *MatrixRequest) GetOutArraysOk() (*[]string, bool)

GetOutArraysOk returns a tuple with the OutArrays field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetOutArrays

func (o *MatrixRequest) SetOutArrays(v []string)

SetOutArrays sets OutArrays field to given value.

HasOutArrays

func (o *MatrixRequest) HasOutArrays() bool

HasOutArrays returns a boolean if a field has been set.

GetVehicle

func (o *MatrixRequest) GetVehicle() VehicleProfileId

GetVehicle returns the Vehicle field if non-nil, zero value otherwise.

GetVehicleOk

func (o *MatrixRequest) GetVehicleOk() (*VehicleProfileId, bool)

GetVehicleOk returns a tuple with the Vehicle field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetVehicle

func (o *MatrixRequest) SetVehicle(v VehicleProfileId)

SetVehicle sets Vehicle field to given value.

HasVehicle

func (o *MatrixRequest) HasVehicle() bool

HasVehicle returns a boolean if a field has been set.

GetFailFast

func (o *MatrixRequest) GetFailFast() bool

GetFailFast returns the FailFast field if non-nil, zero value otherwise.

GetFailFastOk

func (o *MatrixRequest) GetFailFastOk() (*bool, bool)

GetFailFastOk returns a tuple with the FailFast field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetFailFast

func (o *MatrixRequest) SetFailFast(v bool)

SetFailFast sets FailFast field to given value.

HasFailFast

func (o *MatrixRequest) HasFailFast() bool

HasFailFast returns a boolean if a field has been set.

GetTurnCosts

func (o *MatrixRequest) GetTurnCosts() bool

GetTurnCosts returns the TurnCosts field if non-nil, zero value otherwise.

GetTurnCostsOk

func (o *MatrixRequest) GetTurnCostsOk() (*bool, bool)

GetTurnCostsOk returns a tuple with the TurnCosts field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTurnCosts

func (o *MatrixRequest) SetTurnCosts(v bool)

SetTurnCosts sets TurnCosts field to given value.

HasTurnCosts

func (o *MatrixRequest) HasTurnCosts() bool

HasTurnCosts returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]