TraversedEdge

サマリー

Represents a single edge of a route.

説明

This object is acquired through the DirectionsQuery class and cannot be created. A typical route is an alternating sequence of edges and junctions, for example, RouteJunction -> RouteEdge -> RouteJunction -> RouteEdge -> RouteJunction.

The TraversedEdge class is inherited from the TraversedElement class, therefore, all the properties of the TraversedElement class are also accessible from the TraversedEdge class.

プロパティ

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

The name of the administrative area the edge is in.

String
arrivalTime
(読み取り専用)

The time at the start of the edge (in UTC).

DateTime
departureTime
(読み取り専用)

The time at the end of the edge (in UTC).

DateTime
directionPoints
(読み書き)

The direction points associated with the edge.

DirectionPoint
drivingSide
(読み取り専用)

The driving side value.

DrivingSide
element
(読み取り専用)

The network edge element.

Edge
floorName
(読み取り専用)

The name of a floor the edge is on.

String
fromLevel
(読み取り専用)

The starting level of the edge.

Integer
fromPosition
(読み取り専用)

The position on a network element where the route edge starts. The values are in the range of 0.0 to 1.0.

Float
generalizedAzimuths
(読み取り専用)

A generalized azimuth calculated farther away than the immediateAzimuths property value from the start and end of the edge.

Object
immediateAzimuths
(読み取り専用)

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

tuple
names
(読み取り専用)

An iterable of the names of the edge.

DirectionsName
referenceLandmarks
(読み取り専用)

An iterable of reference landmarks related to the edge.

ReferenceLandmark
spatialLandmarks
(読み取り専用)

An iterable of spatial landmarks related to the edge.

SpatialLandmark
timezoneID
(読み取り専用)

The ID of the time zone the edge is in.

Integer
toLevel
(読み取り専用)

The ending level of the edge.

Integer
toPostition
(読み取り専用)

The position on a network element where the route edge ends. The values are in the range of 0.0 to 1.0.

Float

方法の概要

方法説明
getName (index, mapping, fallback)

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

getNames (mapping, fallback)

Gets the names of the edge.

方法

getName (index, mapping, fallback)
パラメーター説明データ タイプ
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).

(デフォルト値は次のとおりです 0)

Integer
mapping

The portion of the name that will be returned.

(デフォルト値は次のとおりです DirectionsFieldMapping.FullName)

DirectionsFieldMapping
fallback

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

(デフォルト値は次のとおりです "")

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

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

getNames (mapping, fallback)
パラメーター説明データ タイプ
mapping

The portion of the name that will be returned.

(デフォルト値は次のとおりです DirectionsFieldMapping.FullName)

DirectionsFieldMapping
fallback

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

(デフォルト値は次のとおりです "")

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

An iterable of string consisting of the names (primary and alternatives) from the edge. "None" is also a possible return value.