Skip to main content

AdjacentNetworkEdge

サマリー

Represents an edge adjacent to a junction.

ディスカッション

Use directions_query.adjacentEdges(junction) to get the adjacent edges.

プロパティ

名前 説明 データ タイプ

element

(読み取り専用)

The network edge element of the adjacent edge.

Edge

fromPosition

(読み取り専用)

The position on a network element where the adjacent edge starts. The value is in the range of 0.0 to 1.0.

Float

immediateAzimuths

(読み取り専用)

The azimuth calculated at close proximity to the start and end of the edge. The tuple contains float values separated by a comma.

tuple

names

(読み取り専用)

An iterable of element names referring to the adjacent edge.

DirectionsName

sourceID

(読み取り専用)

The source ID of the adjacent edge's network element.

Integer

sourceObjectID

(読み取り専用)

The source object ID of the adjacent edge's network element.

Integer

toPosition

(読み取り専用)

The position on a network element where the adjacent edge ends. The value is in the range of 0.0 to 1.0.

Float

type

(読み取り専用)

The type of adjacent edge.

TraversedElementType

方法

getName(index, mapping, fallback)

Gets the name of the adjacent edge. The full name or a portion of the name can be returned depending on the mapping parameter value.

名前 説明 データ タイプ

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 edge does not contain the requested mapped property.

The default value is "".

String

戻り値

データ タイプ 説明

String

The name from the edge. None is also a valid return value.

getNames(mapping, fallback)

Gets the names of the adjacent edge.

名前 説明 データ タイプ

mapping

The portion of the name that will be returned.

The default value is DirectionsFieldMapping.FullName.

DirectionsFieldMapping

fallback

The value if the edge does not contain the requested mapped property.

The default value is "".

String

戻り値

データ タイプ 説明

Iterable

An iterable of string consisting of the names (primary and alternatives) from the edge.