Class CalculateRouteMatrixSummary

    • Method Detail

      • dataSource

        public final String dataSource()

        The data provider of traffic and road network data used to calculate the routes. Indicates one of the available providers:

        • Esri

        • Grab

        • Here

        For more information about data providers, see Amazon Location Service data providers.

        Returns:
        The data provider of traffic and road network data used to calculate the routes. Indicates one of the available providers:

        • Esri

        • Grab

        • Here

        For more information about data providers, see Amazon Location Service data providers.

      • routeCount

        public final Integer routeCount()

        The count of cells in the route matrix. Equal to the number of DeparturePositions multiplied by the number of DestinationPositions.

        Returns:
        The count of cells in the route matrix. Equal to the number of DeparturePositions multiplied by the number of DestinationPositions.
      • errorCount

        public final Integer errorCount()

        The count of error results in the route matrix. If this number is 0, all routes were calculated successfully.

        Returns:
        The count of error results in the route matrix. If this number is 0, all routes were calculated successfully.
      • distanceUnit

        public final DistanceUnit distanceUnit()

        The unit of measurement for route distances.

        If the service returns an enum value that is not available in the current SDK version, distanceUnit will return DistanceUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from distanceUnitAsString().

        Returns:
        The unit of measurement for route distances.
        See Also:
        DistanceUnit
      • distanceUnitAsString

        public final String distanceUnitAsString()

        The unit of measurement for route distances.

        If the service returns an enum value that is not available in the current SDK version, distanceUnit will return DistanceUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from distanceUnitAsString().

        Returns:
        The unit of measurement for route distances.
        See Also:
        DistanceUnit
      • 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)