Class Milestone

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

public final class Milestone extends Object

Represents information about the waypoints along the route.

Note that this can include additional waypoints added during route calculation that may not have been part of the original user-defined waypoint list. For example, additional waypoints are added automatically between sections that require a different transport mode like when taking a ferry.

  • Field Details

    • sectionIndex

      public int sectionIndex

      Index of the section on the route.

    • waypointIndex

      @Nullable public Integer waypointIndex

      If present, this index corresponds to the waypoint in the original user-defined waypoint list. Otherwise this waypoint was added during route calculation by the system.

    • originalCoordinates

      @Nullable public GeoCoordinates originalCoordinates

      User-defined geographic coordinates. If not available, this waypoint was added during route calculation.

    • mapMatchedCoordinates

      @NonNull public GeoCoordinates mapMatchedCoordinates

      Map-matched geographic coordinates.

    • type

      @NonNull public MilestoneType type

      Type of this Milestone

  • Constructor Details

    • Milestone

      public Milestone(int sectionIndex, @Nullable Integer waypointIndex, @Nullable GeoCoordinates originalCoordinates, @NonNull GeoCoordinates mapMatchedCoordinates, @NonNull MilestoneType type)

      Creates a new instance.

      Parameters:
      sectionIndex -

      Index of the section on the route.

      waypointIndex -

      If present, this index corresponds to the waypoint in the original user-defined waypoint list. Otherwise this waypoint was added during route calculation by the system.

      originalCoordinates -

      User-defined geographic coordinates. If not available, this waypoint was added during route calculation.

      mapMatchedCoordinates -

      Map-matched geographic coordinates.

      type -

      Type of this Milestone

  • Method Details