Skip to main content

adjacentEdges

汇总

提供对方向属性和查询方法的访问。

讨论

将提供 DirectionsQuery 对象作为 customize 方法的参数,由此允许访问输出方向遍历的交汇点和遍历的边。 可以访问与这些元素相关联的方向点,由此对其进行自定义。

语法

adjacentEdges()

属性

名称 说明 数据类型

edges

(只读)

正在遍历的序列中的边。

TraversedJunction

junctions

(只读)

正在遍历的序列中的交汇点。

TraversedJunction

routeID

(只读)

结果中的路径 ID(从零开始)。

Integer

routeName

(只读)

路径名称

String

softRestrictionNames

(只读)

启用的软限制的迭代。

Iterable

方法

adjacentEdges(junction)

返回指定交汇点的相邻边。 将不会遍历这些边。

名称 说明 数据类型

junction

The adjacent edge from the specified junction.

TraversedJunction

返回值

数据类型 说明

AdjacentNetworkEdge

相邻边的迭代。

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

属性值或者 None (如果该属性不存在)。 还可以为整型、浮点型或布尔型。

fieldValue(element, mapped_field_name)

返回指定元素的指定映射字段的值。

名称 说明 数据类型

element

A TraversedEdge, TraversedJunction, or TraversedTurn object.

TraversedElement

mapped_field_name

The mapped field name.

String

返回值

数据类型 说明

Object

字段值或 None (如果字段不存在或未映射)。 这也可以是整数、浮点数或字符串。

fromEdge(turn)

返回指定转弯的起始边。

名称 说明 数据类型

turn

The from edge of the specified turn.

TraversedTurn

返回值

数据类型 说明

TraversedEdge

遍历的边。

fromJunction(edge)

返回指定边的起始交汇点。

名称 说明 数据类型

edge

The edge that will get the from junction.

TraversedEdge

返回值

数据类型 说明

TraversedJunction

遍历的交汇点。

nextTraversedEdge(junction)

返回指定交汇点的下一条边。

名称 说明 数据类型

junction

The next traversed edge from the specified junction.

TraversedJunction

返回值

数据类型 说明

TraversedEdge

遍历的边,或者 None 也是一个可能的返回值。

previousTraversedEdge(junction)

返回指定交汇点的上一条边。

名称 说明 数据类型

junction

The previous traversed edge from the specified junction

TraversedJunction

返回值

数据类型 说明

TraversedEdge

遍历的边,或者 None 也是一个可能的返回值。

toEdge(turn)

返回指定转弯的结束边。

名称 说明 数据类型

turn

The to edge of the specified turn.

TraversedTurn

返回值

数据类型 说明

TraversedEdge

遍历的边。

toJunction(edge)

返回指定边缘的终止交汇点。

名称 说明 数据类型

edge

The edge that will get the to junction.

TraversedEdge

返回值

数据类型 说明

TraversedJunction

遍历的交汇点。

turns(junction)

返回指定交汇点的转弯。

名称 说明 数据类型

junction

The turns of the specified junction.

TraversedJunction

返回值

数据类型 说明

TraversedTurn

已遍历转弯的迭代。