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.
  • Field Details

  • Constructor Details

    • RoutingMatrix

      public RoutingMatrix()
  • Method Details

    • waypoints

      public RoutingMatrix waypoints(@Nonnull List<RoutingMatrixWaypoint> waypoints)
    • addWaypointsItem

      public RoutingMatrix addWaypointsItem(RoutingMatrixWaypoint waypointsItem)
    • getWaypoints

      @Nonnull public List<RoutingMatrixWaypoint> getWaypoints()
      Array of geographical points with distances and times calculated between them.
      Returns:
      waypoints
    • setWaypoints

      public void setWaypoints(@Nonnull List<RoutingMatrixWaypoint> waypoints)
    • distances

      public RoutingMatrix distances(@Nonnull List<List<Long>> distances)
    • addDistancesItem

      public RoutingMatrix addDistancesItem(List<Long> distancesItem)
    • getDistances

      @Nonnull public List<List<Long>> 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

      public void setDistances(@Nonnull List<List<Long>> distances)
    • durations

      public RoutingMatrix durations(@Nonnull List<List<Long>> durations)
    • addDurationsItem

      public RoutingMatrix addDurationsItem(List<Long> durationsItem)
    • getDurations

      @Nonnull public List<List<Long>> 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

      public void setDurations(@Nonnull List<List<Long>> durations)
    • putAdditionalProperty

      public RoutingMatrix putAdditionalProperty(String key, Object value)
      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 property
      value - value of the property
      Returns:
      the RoutingMatrix instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static RoutingMatrix fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of RoutingMatrix to an JSON string
      Returns:
      JSON string