SectionType Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. maps. route. models. SectionType
- com.
- com.
public final class SectionType
extends ExpandableStringEnum<SectionType>
Defines values for SectionType.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Section |
CARPOOL
Sections of the route that require use of carpool (HOV/High Occupancy Vehicle) lanes. |
|
static final
Section |
CAR_OR_TRAIN
Sections of the route that are cars or trains. |
|
static final
Section |
COUNTRY
Sections indicating which countries/regions the route is in. |
|
static final
Section |
FERRY
Sections of the route that are ferries. |
|
static final
Section |
MOTORWAY
Sections of the route that are motorways. |
|
static final
Section |
PEDESTRIAN
Sections of the route that are only suited for pedestrians. |
|
static final
Section |
TOLL_ROAD
Sections of the route that require a toll to be paid. |
|
static final
Section |
TOLL_VIGNETTE
Sections of the route that require a toll vignette to be present. |
|
static final
Section |
TRAFFIC
Sections of the route that contain traffic information. |
|
static final
Section |
TRAVEL_MODE
Sections in relation to the request parameter `travel |
|
static final
Section |
TUNNEL
Sections of the route that are tunnels. |
|
static final
Section |
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 Section |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Section |
fromString(String name)
Creates or finds a Section |
|
static
Collection<Section |
values()
Gets known Section |
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
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:
Returns:
values
public static Collection<SectionType> values()
Gets known SectionType values.
Returns: