DirectionsQuery

サマリー

Provides access to directions properties and query methods.

説明

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.

プロパティ

プロパティ説明データ タイプ
edges
(読み取り専用)

The edges in the sequence being traversed.

TraversedJunction
junctions
(読み取り専用)

The junctions in the sequence being traversed.

TraversedJunction
routeID
(読み取り専用)

The ID of the route in the result (zero based).

Integer
routeName
(読み取り専用)

The name of the route

String
softRestrictionNames
(読み取り専用)

An iterable of enabled soft restrictions.

Iterable

方法の概要

方法説明
adjacentEdges (junction)

Returns the adjacent edges of the specified junction. These edges are not traversed.

attributeValue (element, attribute)

Returns the value of the specified network attribute for the element.

fieldValue (element, mapped_field_name)

Returns the value of the specified mapped field for the specified element.

fromEdge (turn)

Returns the from edge of the specified turn.

fromJunction (edge)

Returns the from junction for the specified edge.

nextTraversedEdge (junction)

Returns the next edge of the specified junction.

previousTraversedEdge (junction)

Returns the previous edge of the specified junction.

toEdge (turn)

Returns the to edge of the specified turn.

toJunction (edge)

Returns the to junction for the specified edge.

turns (junction)

Returns the turns of the specified junction.

方法

adjacentEdges (junction)
パラメーター説明データ タイプ
junction

The adjacent edge from the specified junction.

TraversedJunction
戻り値
データ タイプ説明
AdjacentNetworkEdge

An iterable of adjacent edges.

attributeValue (element, attribute)
パラメーター説明データ タイプ
element

The element that will be queried for the attribute value.

TraversedElement
attribute

The attribute that the value will be applied to.

Attribute
戻り値
データ タイプ説明
Object

The attribute value or None if the attribute doesn't exist. This could also be an integer, a float, or a boolean.

fieldValue (element, mapped_field_name)
パラメーター説明データ タイプ
element

A TraversedEdge, TraversedJunction, or TraversedTurn object.

TraversedElement
mapped_field_name

The mapped field name.

String
戻り値
データ タイプ説明
Object

The field value or None if the field doesn't exist or is not mapped. This could also be an integer, a float, or a string.

fromEdge (turn)
パラメーター説明データ タイプ
turn

The from edge of the specified turn.

TraversedTurn
戻り値
データ タイプ説明
TraversedEdge

A traversed edge.

fromJunction (edge)
パラメーター説明データ タイプ
edge

The edge that will get the from junction.

TraversedEdge
戻り値
データ タイプ説明
TraversedJunction

A traversed junction.

nextTraversedEdge (junction)
パラメーター説明データ タイプ
junction

The next traversed edge from the specified junction.

TraversedJunction
戻り値
データ タイプ説明
TraversedEdge

A traversed edge, or None is also a possible return value.

previousTraversedEdge (junction)
パラメーター説明データ タイプ
junction

The previous traversed edge from the specified junction

TraversedJunction
戻り値
データ タイプ説明
TraversedEdge

A traversed edge, or None is also a possible return value.

toEdge (turn)
パラメーター説明データ タイプ
turn

The to edge of the specified turn.

TraversedTurn
戻り値
データ タイプ説明
TraversedEdge

A traversed edge.

toJunction (edge)
パラメーター説明データ タイプ
edge

The edge that will get the to junction.

TraversedEdge
戻り値
データ タイプ説明
TraversedJunction

A traversed junction.

turns (junction)
パラメーター説明データ タイプ
junction

The turns of the specified junction.

TraversedJunction
戻り値
データ タイプ説明
TraversedTurn

An iterable of traversed turns.