Preparing search index...
The search index is not available
百度地图 JSAPI UI-Kit 文档
百度地图 JSAPI UI-Kit 文档
BMapUIKit 类参考
TransitSegment
Interface TransitSegment
公交路段
interface
TransitSegment
{
distance
:
number
;
distanceText
:
string
;
path
?:
NormalizedLocation
[]
;
type
:
"transit"
;
subType
:
|
"bus"
|
"subway"
|
"ferry"
|
"train"
|
"airplane"
|
"coach"
;
lineName
:
string
;
onStop
:
string
;
offStop
:
string
;
stopCount
:
number
;
duration
?:
number
;
}
Hierarchy (
view full
)
BaseSegment
TransitSegment
Index
Properties
distance
distance
Text
path?
type
sub
Type
line
Name
on
Stop
off
Stop
stop
Count
duration?
Properties
distance
distance
:
number
距离(米)
distance
Text
distance
Text
:
string
距离文本
Optional
path
path
?:
NormalizedLocation
[]
路径坐标点(可选)
type
type
路段类型
sub
Type
sub
Type
:
|
"bus"
|
"subway"
|
"ferry"
|
"train"
|
"airplane"
|
"coach"
交通工具类型
line
Name
line
Name
:
string
线路名称
on
Stop
on
Stop
:
string
上车站
off
Stop
off
Stop
:
string
下车站
stop
Count
stop
Count
:
number
途经站数
Optional
duration
duration
?:
number
行驶时长(秒,可选)
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
distance
distance
Text
path
type
sub
Type
line
Name
on
Stop
off
Stop
stop
Count
duration
百度地图 JSAPI UI-Kit 文档
Loading...
公交路段