Class GPXTrack

java.lang.Object
com.here.NativeBase
com.here.sdk.navigation.GPXTrack

public final class GPXTrack extends NativeBase

Single track from the GPXDocument. Can be used as an input to the LocationSimulator. Can be created and modified via GPXTrackWriter.

  • Method Details

    • getLocations

      @NonNull public List<Location> getLocations()

      Provides a list of all stored track points converted to a Location object. See type_wptType for more details on the wptType format that is used for a track point.

      Returns:

      List of Location objects.

    • getName

      @NonNull public String getName()

      Gets the value of the name of the element in the trkType. If nothing was set before, defaults to an empty string.

      Can be overridden by the user. If nothing was set before, defaults to an empty string.

      Returns:

      The value of the name of the element in the trkType.

    • setName

      public void setName(@NonNull String value)

      Sets the value of the name of the element in the trkType. Can be overridden by the user. Defaults to an empty string.

      Can be overridden by the user. If nothing was set before, defaults to an empty string.

      Parameters:
      value -

      The value of the name of the element in the trkType.

    • getDescription

      @NonNull public String getDescription()

      Gets the value of the description of the element in the trkType. If nothing was set before, defaults to an empty string.

      Can be overridden by the user. If nothing was set before, defaults to an empty string.

      Returns:

      The value of the description of the element in the trkType.

    • setDescription

      public void setDescription(@NonNull String value)

      Sets the value of the description of the element in the trkType. Can be overridden by the user. Defaults to an empty string.

      Can be overridden by the user. If nothing was set before, defaults to an empty string.

      Parameters:
      value -

      The value of the description of the element in the trkType.