TraversedJunction
Resumen
Represents a single junction of a route.
Debate
This object is acquired through DirectionsQuery and cannot be created. A typical route is an alternating sequence of edges and junctions, for example, RouteJunction -> RouteEdge -> RouteJunction -> RouteEdge -> RouteJunction.
The TraversedJunction class is inherited from the TraversedElement class, therefore, all the properties of the TraversedElement class are also accessible from the TraversedJunction class.
Propiedades
| Nombre | Explicación | Tipo de datos |
|---|---|---|
|
arrivalTime (Solo lectura) |
The calculated time of arrival (in local time). |
DateTime |
|
arriveCurbApproach (Solo lectura) |
The curb approach of a destination (if any) in the junction. |
CurbApproach |
|
departureTime (Solo lectura) |
The time of departure (in local time). |
DateTime |
|
directionPoints (Lectura y escritura) |
An iterable of the direction points associated with the junction. |
DirectionPoint |
|
element (Solo lectura) |
The network junction element. |
Junction |
|
level (Solo lectura) |
The level of the junction. |
Integer |
|
names (Solo lectura) |
An iterable of the names of the junction. |
DirectionsName |
|
referenceLandmark (Solo lectura) |
The reference landmark related to the junction. |
ReferenceLandmark |
|
roadSplitID (Solo lectura) |
The object ID of the related road split. |
Integer |
|
signpostID (Solo lectura) |
The object ID of the related signpost. |
Integer |
|
spatialLandmarks (Solo lectura) |
An iterable of spatial landmarks related to the junction. |
SpatialLandmark |
|
timeWindowEnd (Solo lectura) |
The end value of a time window in which a stop on the junction will be visited (in local time). |
DateTime |
|
timeWindowStart (Solo lectura) |
The start value of a time window in which a stop on the junction will be visited (in local time). |
DateTime |
|
violationTime (Solo lectura) |
The violation time, expressed in the network's time attribute units. |
Float |
|
waitTime (Solo lectura) |
The wait time between the arrival and the departure for a stop. The value is expressed in the network's time attribute units. |
Float |
Métodos
getName(index, mapping, fallback)
Gets the name of the junction. The full name or a portion of the name can be returned depending on the mapping parameter value.
| Nombre | Explicación | Tipo de datos |
|---|---|---|
|
index |
The type of name that will be retrieved (for example, PrimaryName = 0, AlternateName1 = 1, AlternateName2 = 2, and so on depending on the network dataset’s direction configuration). The default value is 0. |
Integer |
|
mapping |
The portion of the name that will be returned. The default value is DirectionsFieldMapping.FullName. |
DirectionsFieldMapping |
|
fallback |
The value if the junction does not contain the requested mapped property. The default value is "". |
String |
Valor de retorno
| Tipo de datos | Explicación |
|---|---|
|
String |
The name from the junction pursuant to the input parameters. |
getNames(mapping, fallback)
Gets the name of the junction.
| Nombre | Explicación | Tipo de datos |
|---|---|---|
|
mapping |
The portion of the name that will be returned. The default value is DirectionsFieldMapping.FullName. |
DirectionsFieldMapping |
|
fallback |
The value if the junction does not contain the requested mapped property. The default value is "". |
String |
Valor de retorno
| Tipo de datos | Explicación |
|---|---|
|
Iterable |
An iterable of the string consisting of names (primary and alternatives) from the junction. |