Class IndoorRouteStyle

java.lang.Object
com.here.NativeBase
com.here.sdk.venue.routing.IndoorRouteStyle

public final class IndoorRouteStyle extends NativeBase

Represents a style of the indoor route. Contains information about route colors and widths. Optionally, this style allows to set MapMarker instances that can be used for specific route elements.

  • Constructor Details

    • IndoorRouteStyle

      public IndoorRouteStyle()

      Creates a new instance of this class.

  • Method Details

    • getIndoorMarkerFor

      @Nullable public MapMarker getIndoorMarkerFor(@NonNull IndoorFeatures feature, int deltaZ)

      Returns a MapMarker for a given indoor feature and the number of levels to change. By default, no map markers are provided.

      Parameters:
      feature -

      An indoor feature.

      deltaZ -

      A number of levels to change, positive for up, negative for down. In the case of 0, the method returns an exit map marker.

      Returns:

      The result MapMarker, if it was set.

    • setIndoorMarkersFor

      public void setIndoorMarkersFor(@NonNull IndoorFeatures feature, @Nullable MapMarker upMarker, @Nullable MapMarker downMarker, @Nullable MapMarker exitMarker)

      Sets map markers for the given indoor feature.

      Parameters:
      feature -

      An indoor feature.

      upMarker -

      A MapMarker to go up.

      downMarker -

      A MapMarker to go down.

      exitMarker -

      A MapMarker to exit the indoor feature.

    • getIndoorPolylineWidth

      public double getIndoorPolylineWidth()

      The width in pixels of polylines for indoor route sections.

      Returns:

      The width in pixels. Default value is 15 pixels

    • setIndoorPolylineWidth

      public void setIndoorPolylineWidth(double value)

      The width in pixels of polylines for indoor route sections.

      Parameters:
      value -

      The width in pixels. Default value is 15 pixels

    • getIndoorPolylineColor

      @NonNull public Color getIndoorPolylineColor()

      The color of polylines for indoor route sections.

      Returns:

      The color value. The default color is #48DAD0.

    • setIndoorPolylineColor

      public void setIndoorPolylineColor(@NonNull Color value)

      The color of polylines for indoor route sections.

      Parameters:
      value -

      The color value. The default color is #48DAD0.

    • getOutdoorPolylineWidth

      public double getOutdoorPolylineWidth()

      The width in pixels of polylines for outdoor route sections.

      Returns:

      The width in pixels. The default width is 20 pixel

    • setOutdoorPolylineWidth

      public void setOutdoorPolylineWidth(double value)

      The width in pixels of polylines for outdoor route sections.

      Parameters:
      value -

      The width in pixels. The default width is 20 pixel

    • getOutdoorPolylineColor

      @NonNull public Color getOutdoorPolylineColor()

      The color of polylines for outdoor route sections.

      Returns:

      The color value. The default color is #00908

    • setOutdoorPolylineColor

      public void setOutdoorPolylineColor(@NonNull Color value)

      The color of polylines for outdoor route sections.

      Parameters:
      value -

      The color value. The default color is #00908

    • getStartMarker

      @Nullable public MapMarker getStartMarker()

      The start map marker of the resulting route.

      Returns:

      A MapMarker instance representing the start of the route. By default, no map marker is provided.

    • setStartMarker

      public void setStartMarker(@Nullable MapMarker value)

      The start map marker of the resulting route.

      Parameters:
      value -

      A MapMarker instance representing the start of the route. By default, no map marker is provided.

    • getDestinationMarker

      @Nullable public MapMarker getDestinationMarker()

      The destination map marker of the resulting route.

      Returns:

      A MapMarker instance representing the destination of the route. By default, no map marker is provided

    • setDestinationMarker

      public void setDestinationMarker(@Nullable MapMarker value)

      The destination map marker of the resulting route.

      Parameters:
      value -

      A MapMarker instance representing the destination of the route. By default, no map marker is provided

    • getWalkMarker

      @Nullable public MapMarker getWalkMarker()

      The walk map marker of the resulting route. It signals that a user should leave their transport vehicle and continue on foot.

      Returns:

      A MapMarker instance representing the walk point of the route. By default, no map marker is provided.

    • setWalkMarker

      public void setWalkMarker(@Nullable MapMarker value)

      The walk map marker of the resulting route. It signals that a user should leave their transport vehicle and continue on foot.

      Parameters:
      value -

      A MapMarker instance representing the walk point of the route. By default, no map marker is provided.

    • getDriveMarker

      @Nullable public MapMarker getDriveMarker()

      The drive map marker of the resulting route. It signals that a user should take a transport vehicle.

      Returns:

      A MapMarker instance representing the drive point of the route. By default, no map marker is provided.

    • setDriveMarker

      public void setDriveMarker(@Nullable MapMarker value)

      The drive map marker of the resulting route. It signals that a user should take a transport vehicle.

      Parameters:
      value -

      A MapMarker instance representing the drive point of the route. By default, no map marker is provided.