Enum TransportMode

  • java.lang.Object
    • java.lang.Enum<TransportMode>
      • com.here.sdk.transport.TransportMode
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<TransportMode>

    public enum TransportMode
    extends java.lang.Enum<TransportMode>

    Specifies the mode of transport used for route calculalation.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BICYCLE
      Route calculation for bicycles.
      BUS
      Route calculation for buses.
      CAR
      The calculated route is optimized for cars.
      PEDESTRIAN
      The calculated route is optimized for pedestrians.
      PRIVATE_BUS
      Route calculation for private buses.
      PUBLIC_TRANSIT
      The calculated route is optimized for public transit.
      SCOOTER
      The calculated route is optimized for scooters.
      TAXI
      The taxi transport mode takes into account tax restricted streets as well as streets reserved for exclusive taxi access.
      TRUCK
      The calculated route is optimized for trucks.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static TransportMode valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static TransportMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • CAR

        public static final TransportMode CAR

        The calculated route is optimized for cars.

      • TRUCK

        public static final TransportMode TRUCK

        The calculated route is optimized for trucks. This mode considers truck restrictions and uses truck specific speed assumptions when calculating the route.

      • PEDESTRIAN

        public static final TransportMode PEDESTRIAN

        The calculated route is optimized for pedestrians. As one effect, maneuvers will be optimized for walking, i.e. segments will consider actions relevant for pedestrians and maneuver instructions will contain texts suitable for a walking person. This mode disregards any traffic information.

      • SCOOTER

        public static final TransportMode SCOOTER

        The calculated route is optimized for scooters.

      • BICYCLE

        public static final TransportMode BICYCLE

        Route calculation for bicycles.

      • PUBLIC_TRANSIT

        public static final TransportMode PUBLIC_TRANSIT

        The calculated route is optimized for public transit. Note that this transport mode is available only for some versions of the HERE SDK. Check SDKBuildInformation and consult your HERE representative if necessary.

      • TAXI

        public static final TransportMode TAXI

        The taxi transport mode takes into account tax restricted streets as well as streets reserved for exclusive taxi access. Note that roads that are restricted or reserved for taxis are avoided, unless a waypoint is set on such a road - as this may indicate to pick-up or to drop-off a passenger.

        Note: This is a beta release of this transport mode, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases or even become unsupported, without a deprecation process.

      • BUS

        public static final TransportMode BUS

        Route calculation for buses. Denotes those vehicles operated by public transport provider. This transport mode has the access to the bus-only lane/road.

      • PRIVATE_BUS

        public static final TransportMode PRIVATE_BUS

        Route calculation for private buses. Denotes those vehicles operated by private transport company. This transport mode does not have the access to the bus-only lane/road.

    • Method Detail

      • values

        public static TransportMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TransportMode c : TransportMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TransportMode valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null