SectionType Class

public final class SectionType
extends ExpandableStringEnum<SectionType>

Defines values for SectionType.

Field Summary

Modifier and Type Field and Description
static final SectionType CARPOOL

Sections of the route that require use of carpool (HOV/High Occupancy Vehicle) lanes.

static final SectionType CAR_OR_TRAIN

Sections of the route that are cars or trains.

static final SectionType COUNTRY

Sections indicating which countries/regions the route is in.

static final SectionType FERRY

Sections of the route that are ferries.

static final SectionType MOTORWAY

Sections of the route that are motorways.

static final SectionType PEDESTRIAN

Sections of the route that are only suited for pedestrians.

static final SectionType TOLL_ROAD

Sections of the route that require a toll to be paid.

static final SectionType TOLL_VIGNETTE

Sections of the route that require a toll vignette to be present.

static final SectionType TRAFFIC

Sections of the route that contain traffic information.

static final SectionType TRAVEL_MODE

Sections in relation to the request parameter `travelMode`.

static final SectionType TUNNEL

Sections of the route that are tunnels.

static final SectionType URBAN

Sections of the route that are located within urban areas.

Constructor Summary

Constructor Description
SectionType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SectionType value.

Method Summary

Modifier and Type Method and Description
static SectionType fromString(String name)

Creates or finds a SectionType from its string representation.

static Collection<SectionType> values()

Gets known SectionType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

CARPOOL

public static final SectionType CARPOOL

Sections of the route that require use of carpool (HOV/High Occupancy Vehicle) lanes.

CAR_OR_TRAIN

public static final SectionType CAR_OR_TRAIN

Sections of the route that are cars or trains.

COUNTRY

public static final SectionType COUNTRY

Sections indicating which countries/regions the route is in.

FERRY

public static final SectionType FERRY

Sections of the route that are ferries.

MOTORWAY

public static final SectionType MOTORWAY

Sections of the route that are motorways.

PEDESTRIAN

public static final SectionType PEDESTRIAN

Sections of the route that are only suited for pedestrians.

TOLL_ROAD

public static final SectionType TOLL_ROAD

Sections of the route that require a toll to be paid.

TOLL_VIGNETTE

public static final SectionType TOLL_VIGNETTE

Sections of the route that require a toll vignette to be present.

TRAFFIC

public static final SectionType TRAFFIC

Sections of the route that contain traffic information.

TRAVEL_MODE

public static final SectionType TRAVEL_MODE

Sections in relation to the request parameter `travelMode`.

TUNNEL

public static final SectionType TUNNEL

Sections of the route that are tunnels.

URBAN

public static final SectionType URBAN

Sections of the route that are located within urban areas.

Constructor Details

SectionType

@Deprecated
public SectionType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SectionType value.

Method Details

fromString

public static SectionType fromString(String name)

Creates or finds a SectionType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding SectionType.

values

public static Collection<SectionType> values()

Gets known SectionType values.

Returns:

known SectionType values.

Applies to