Class RouteMatchedLocation

java.lang.Object
com.here.sdk.navigation.RouteMatchedLocation

public final class RouteMatchedLocation extends Object

Represents a location matched to a specific position on a navigation route.

  • Field Details

    • sectionIndex

      public int sectionIndex

      Zero-based index of the route section containing this location.

    • spanIndex

      public int spanIndex

      Zero-based index of the span within the current route section.

    • spanOffsetInMeters

      public double spanOffsetInMeters

      Distance in meters from the beginning of the current span to this location.

    • spanGeometryVertexIndex

      public int spanGeometryVertexIndex

      Zero-based index of the geometry vertex that precedes this location.

      The span geometry is represented as a series of vertices. This index points to the vertex immediately before the matched location, allowing for interpolation between vertices if needed.

  • Constructor Details

    • RouteMatchedLocation

      public RouteMatchedLocation()

      Creates a new instance.

  • Method Details