Class RouteStatistics

java.lang.Object
com.veeroute.lss.routing.model.RouteStatistics

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-11-23T13:47:52.805996699+03:00[Europe/Moscow]", comments="Generator version: 7.17.0") public class RouteStatistics extends Object
General route statistics.
  • Field Details

  • Constructor Details

    • RouteStatistics

      public RouteStatistics()
  • Method Details

    • timeWindow

      public RouteStatistics timeWindow(@Nonnull TimeWindow timeWindow)
    • getTimeWindow

      @Nonnull public TimeWindow getTimeWindow()
      Time window for the beginning and end of the movement.
      Returns:
      timeWindow
    • setTimeWindow

      public void setTimeWindow(@Nonnull TimeWindow timeWindow)
    • distance

      public RouteStatistics distance(@Nonnull Integer distance)
    • getDistance

      @Nonnull public Integer getDistance()
      Total length, in meters. minimum: 0 maximum: 40000000
      Returns:
      distance
    • setDistance

      public void setDistance(@Nonnull Integer distance)
    • duration

      public RouteStatistics duration(@Nonnull String duration)
    • getDuration

      @Nonnull public String getDuration()
      Time duration according to `P1DT2H12M34.2S`.
      Returns:
      duration
    • setDuration

      public void setDuration(@Nonnull String duration)
    • stoppingTime

      public RouteStatistics stoppingTime(@Nonnull String stoppingTime)
    • getStoppingTime

      @Nonnull public String getStoppingTime()
      Time duration according to `P1DT2H12M34.2S`.
      Returns:
      stoppingTime
    • setStoppingTime

      public void setStoppingTime(@Nonnull String stoppingTime)
    • putAdditionalProperty

      public RouteStatistics 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 RouteStatistics 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 RouteStatistics
    • fromJson

      public static RouteStatistics fromJson(String jsonString) throws IOException
      Create an instance of RouteStatistics given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of RouteStatistics
      Throws:
      IOException - if the JSON string is invalid with respect to RouteStatistics
    • toJson

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