Package com.veeroute.lss.monitor.model
Class RoutingMatrix
java.lang.Object
com.veeroute.lss.monitor.model.RoutingMatrix
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-11-23T13:47:38.388455705+03:00[Europe/Moscow]",
comments="Generator version: 7.17.0")
public class RoutingMatrix
extends Object
Routing matrix. Contains durations and distances between points.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDistancesItem(List<Long> distancesItem) addDurationsItem(List<Long> durationsItem) addWaypointsItem(RoutingMatrixWaypoint waypointsItem) booleanstatic RoutingMatrixCreate an instance of RoutingMatrix given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Routes length between two neighbors locations, in meters.An array of route durations between points, in seconds.Array of geographical points with distances and times calculated between them.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetDistances(List<List<Long>> distances) voidsetDurations(List<List<Long>> durations) voidsetWaypoints(List<RoutingMatrixWaypoint> waypoints) toJson()Convert an instance of RoutingMatrix to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundwaypoints(List<RoutingMatrixWaypoint> waypoints)
-
Field Details
-
SERIALIZED_NAME_WAYPOINTS
- See Also:
-
SERIALIZED_NAME_DISTANCES
- See Also:
-
SERIALIZED_NAME_DURATIONS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RoutingMatrix
public RoutingMatrix()
-
-
Method Details
-
waypoints
-
addWaypointsItem
-
getWaypoints
Array of geographical points with distances and times calculated between them.- Returns:
- waypoints
-
setWaypoints
-
distances
-
addDistancesItem
-
getDistances
Routes length between two neighbors locations, in meters. The values in the array are ordered according to the elements order in the `waypoints` parameter. Each matrix row is an array of distances from the desired point to every other point. A negative value (-1) means that it is not possible to drive between the specified locations.- Returns:
- distances
-
setDistances
-
durations
-
addDurationsItem
-
getDurations
An array of route durations between points, in seconds. The values in the array are ordered according to the order of the elements in the `waypoints` parameter. Each row of the matrix is an array of travel times from the desired point to each other point. A negative value (-1) means that it is impossible to travel between the specified points.- Returns:
- durations
-
setDurations
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the RoutingMatrix instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to RoutingMatrix
-
fromJson
Create an instance of RoutingMatrix given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RoutingMatrix
- Throws:
IOException- if the JSON string is invalid with respect to RoutingMatrix
-
toJson
Convert an instance of RoutingMatrix to an JSON string- Returns:
- JSON string
-