| 包 | com.supermap.web.iServerJava2.networkAnalystServices |
| 类 | public class PathGuideItem |
| 继承 | PathGuideItem Object |
行驶导引记录了如何一步步从起点行驶到终点的过程,其中每一步就是一个行驶导引子项。利用该类可以获取到行驶导引对象的子项,诸如子项 ID、名称、序号、权值、行驶方向、转弯方向等信息。
| 属性 | 定义方 | ||
|---|---|---|---|
| bounds : Rectangle2D
[read-only] 获取子对象(弧段或结点或站点)的范围.
|
PathGuideItem | ||
| directionType : int
[read-only] 获取行驶方向常量.
|
PathGuideItem | ||
| distance : Number
[read-only] 获取站点到弧段的距离.
|
PathGuideItem | ||
| id : int
[read-only] 获取行驶导引对象子项的 ID,即 EdgeID 或 NodeID。
|
PathGuideItem | ||
| index : int
[read-only] 获取行驶导引对象子项的索引号。
|
PathGuideItem | ||
| isEdge : Boolean
[read-only] 获取该子项是否是弧段。
|
PathGuideItem | ||
| isStop : Boolean
[read-only] 获取该子项是否为站点.
|
PathGuideItem | ||
| length : Number
[read-only] 如果行驶导引对象子项为弧段时,获取弧段的长度。
|
PathGuideItem | ||
| name : String
[read-only] 获取行驶导引对象子项的名称。
|
PathGuideItem | ||
| sideType : int
[read-only] 判断站点是在路的左侧、右侧还是在路上的常量 当属性 IsEdge 为 true 时将返回 0(即SideType.NONE)表示无效值。
|
PathGuideItem | ||
| turnAngle : int
[read-only] 获取转弯角度。单位为度,精确到0.1度。
|
PathGuideItem | ||
| turnType : int
[read-only] 获取转弯方向常量。当属性 IsEdge 为 true 时将返回 TurnType.None,表示无效值。
|
PathGuideItem | ||
| weight : Number
[read-only] 获取行驶导引对象子项的权值,即行使导引对象子项的花费。
|
PathGuideItem | ||
| bounds | 属性 |
bounds:Rectangle2D [read-only]
获取子对象(弧段或结点或站点)的范围.
对弧段而言,为弧段的外接矩形;对点而言,为点本身。
public function get bounds():Rectangle2D| directionType | 属性 |
directionType:int [read-only]
获取行驶方向常量.
共有五个方向,即东、南、西、北、无方向。当属性 IsEdge 为 false 时,即为结点无行驶方向,将返回 DirectionType.None。
public function get directionType():int| distance | 属性 |
distance:Number [read-only]
获取站点到弧段的距离.
该距离是指站点到最近一条弧段的距离。
如下图所示,桔色点代表网络结点,蓝色代表弧段,灰色点为站点,红色线段代表距离。比如用户希望计算出从家里出发乘坐公交车去医院的最短路程,除了计算出公交线路的最短路程外,还需要计算出从家走到公交站的最短距离,这个距离就是该属性的值表示。

public function get distance():Number| id | 属性 |
id:int [read-only]
获取行驶导引对象子项的 ID,即 EdgeID 或 NodeID。
public function get id():int| index | 属性 |
index:int [read-only]
获取行驶导引对象子项的索引号。
public function get index():int| isEdge | 属性 |
isEdge:Boolean [read-only]
获取该子项是否是弧段。
public function get isEdge():Boolean| isStop | 属性 |
isStop:Boolean [read-only]
获取该子项是否为站点.
站点为用户指定的用于做路径分析的点。
public function get isStop():Boolean| length | 属性 |
length:Number [read-only]
如果行驶导引对象子项为弧段时,获取弧段的长度。
public function get length():Number| name | 属性 |
name:String [read-only]
获取行驶导引对象子项的名称。
public function get name():String| sideType | 属性 |
sideType:int [read-only]
判断站点是在路的左侧、右侧还是在路上的常量
当属性 IsEdge 为 true 时将返回 0(即SideType.NONE)表示无效值。
public function get sideType():int另请参见
| turnAngle | 属性 |
turnAngle:int [read-only]
获取转弯角度。单位为度,精确到0.1度。
public function get turnAngle():int| turnType | 属性 |
turnType:int [read-only]
获取转弯方向常量。当属性 IsEdge 为 true 时将返回 TurnType.None,表示无效值。
public function get turnType():int另请参见
| weight | 属性 |
weight:Number [read-only]
获取行驶导引对象子项的权值,即行使导引对象子项的花费。
public function get weight():Number