Class RouteMatrixEntry

    • Method Detail

      • distance

        public final Double distance()

        The total distance of travel for the route.

        Returns:
        The total distance of travel for the route.
      • durationSeconds

        public final Double durationSeconds()

        The expected duration of travel for the route.

        Returns:
        The expected duration of travel for the route.
      • error

        public final RouteMatrixEntryError error()

        An error corresponding to the calculation of a route between the DeparturePosition and DestinationPosition.

        Returns:
        An error corresponding to the calculation of a route between the DeparturePosition and DestinationPosition.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)