DirectionsQuery
Resumen
Provides access to directions properties and query methods.
Debate
A DirectionsQuery object is provided as a parameter to the customize method, allowing access to the output directions traversed junctions and traversed edges. The direction points associated with these elements can be accessed allowing them to be customized.
Propiedades
| Nombre | Explicación | Tipo de datos |
|---|---|---|
|
edges (Solo lectura) |
The edges in the sequence being traversed. |
TraversedJunction |
|
junctions (Solo lectura) |
The junctions in the sequence being traversed. |
TraversedJunction |
|
routeID (Solo lectura) |
The ID of the route in the result (zero based). |
Integer |
|
routeName (Solo lectura) |
The name of the route |
String |
|
softRestrictionNames (Solo lectura) |
An iterable of enabled soft restrictions. |
Iterable |
Métodos
adjacentEdges(junction)
Returns the adjacent edges of the specified junction. These edges are not traversed.
| Nombre | Explicación | Tipo de datos |
|---|---|---|
|
junction |
The adjacent edge from the specified junction. |
TraversedJunction |
Valor de retorno
| Tipo de datos | Explicación |
|---|---|
|
AdjacentNetworkEdge |
An iterable of adjacent edges. |
attributeValue(element, attribute)
Returns the value of the specified network attribute for the element.
| Nombre | Explicación | Tipo de datos |
|---|---|---|
|
element |
The element that will be queried for the attribute value. |
TraversedElement |
|
attribute |
The attribute that the value will be applied to. |
Attribute |
Valor de retorno
| Tipo de datos | Explicación |
|---|---|
|
Object |
The attribute value or |
fieldValue(element, mapped_field_name)
Returns the value of the specified mapped field for the specified element.
| Nombre | Explicación | Tipo de datos |
|---|---|---|
|
element |
A |
TraversedElement |
|
mapped_field_name |
The mapped field name. |
String |
Valor de retorno
| Tipo de datos | Explicación |
|---|---|
|
Object |
The field value or |
fromEdge(turn)
Returns the from edge of the specified turn.
| Nombre | Explicación | Tipo de datos |
|---|---|---|
|
turn |
The from edge of the specified turn. |
TraversedTurn |
Valor de retorno
| Tipo de datos | Explicación |
|---|---|
|
TraversedEdge |
A traversed edge. |
fromJunction(edge)
Returns the from junction for the specified edge.
| Nombre | Explicación | Tipo de datos |
|---|---|---|
|
edge |
The edge that will get the from junction. |
TraversedEdge |
Valor de retorno
| Tipo de datos | Explicación |
|---|---|
|
TraversedJunction |
A traversed junction. |
nextTraversedEdge(junction)
Returns the next edge of the specified junction.
| Nombre | Explicación | Tipo de datos |
|---|---|---|
|
junction |
The next traversed edge from the specified junction. |
TraversedJunction |
Valor de retorno
| Tipo de datos | Explicación |
|---|---|
|
TraversedEdge |
A traversed edge, or |
previousTraversedEdge(junction)
Returns the previous edge of the specified junction.
| Nombre | Explicación | Tipo de datos |
|---|---|---|
|
junction |
The previous traversed edge from the specified junction |
TraversedJunction |
Valor de retorno
| Tipo de datos | Explicación |
|---|---|
|
TraversedEdge |
A traversed edge, or |
toEdge(turn)
Returns the to edge of the specified turn.
| Nombre | Explicación | Tipo de datos |
|---|---|---|
|
turn |
The to edge of the specified turn. |
TraversedTurn |
Valor de retorno
| Tipo de datos | Explicación |
|---|---|
|
TraversedEdge |
A traversed edge. |
toJunction(edge)
Returns the to junction for the specified edge.
| Nombre | Explicación | Tipo de datos |
|---|---|---|
|
edge |
The edge that will get the to junction. |
TraversedEdge |
Valor de retorno
| Tipo de datos | Explicación |
|---|---|
|
TraversedJunction |
A traversed junction. |
turns(junction)
Returns the turns of the specified junction.
| Nombre | Explicación | Tipo de datos |
|---|---|---|
|
junction |
The turns of the specified junction. |
TraversedJunction |
Valor de retorno
| Tipo de datos | Explicación |
|---|---|
|
TraversedTurn |
An iterable of traversed turns. |