| java.lang.Object | |
| ↳ | com.tencent.map.lssupport.protocol.RouteManager |
路线管理器, 非线程安全
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| class | RouteManager.Editor | 路线编辑器 | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| RouteManager(TLSAccount account) | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| RouteManager.Editor |
addNewRoute()
创建新路线
| ||||||||||
| RouteManager.Editor |
addRelayRoute()
创建新的接力单路线
| ||||||||||
| synchronized void |
copyFrom(RouteManager newRoute, boolean withRelayRoutes)
拷贝数据
| ||||||||||
| synchronized void |
copyRelayRouteFrom(RouteManager newRouteManager, boolean main)
拷贝接力单的算路路线
| ||||||||||
| RouteManager.Editor |
editCurrent()
创建当前路线的编辑器
| ||||||||||
| RouteManager.Editor |
editRelayRoute(String routeId)
创建指定接力路线的编辑器
| ||||||||||
| RouteManager.Editor |
editRoute(String routeId)
创建指定路线的编辑器
| ||||||||||
| TLSAccount | getAccount() | ||||||||||
| TLSLatlng |
getDestPosition()
获取终点
| ||||||||||
| int |
getMainRouteIndex()
获取路线索引
| ||||||||||
| TLSBRoute | getOnTripSelectRoute() | ||||||||||
| List<TLSDWayPointInfo> |
getOriginalWayPoints()
获取原始途经点
TLSDWayPointInfo信息。 | ||||||||||
| TLSBRoute |
getPickUpSelectRoute()
获取当前选中的路线
| ||||||||||
| List<TLSLatlng> |
getPoints()
获取路线点
TLSLatlng串。 | ||||||||||
| TLSBRoute |
getRelayRouteById(String routeId)
通过ID查找接力单路线实体
| ||||||||||
| TLSBRoute |
getRelayRouteByOrderId(String orderId)
通过订单ID查找接力单路线实体
| ||||||||||
| List<TLSBRoute> |
getRelayRoutes()
获得接力单路线列表
| ||||||||||
| int |
getRemainingDistance()
获取剩余距离。
| ||||||||||
| int |
getRemainingTime()
获取剩余时间。
| ||||||||||
| TLSBRoute |
getRouteById(String routeId)
通过ID查找路线实体
| ||||||||||
| TLSBRoute |
getRouteByIndex(int index)
通过索引查找路线实体
| ||||||||||
| TLSBRoute |
getRouteByOrderId(String orderId)
通过订单ID查找路线实体
| ||||||||||
| String |
getRouteId()
获取路线id。
| ||||||||||
| int |
getRouteIndexByRouteId(String routeId)
通过路线ID查找索引值
| ||||||||||
| List<TLSBRoute> |
getRoutes()
获得路线列表
| ||||||||||
| List<TLSBRoute> |
getRoutesByOrderId(String orderId)
通过订单ID查找多条路线实体
| ||||||||||
| TLSLatlng |
getStartPosition()
获取起点
| ||||||||||
| List<TLSBRouteTrafficItem> |
getTrafficItems()
获取路况单元
TLSBRouteTrafficItem信息。 | ||||||||||
| List<TLSBRouteTrafficItem> |
getTrafficItemsWithInternalRoute()
获取包含内部路路况单元,其中内部路color为3
| ||||||||||
| TLSBRoute |
getUsingRoute()
返回当前路线信息
| ||||||||||
| List<TLSBWayPoint> |
getWayPoints()
获取途经点
TLSBWayPoint信息。 | ||||||||||
| void |
refreshRoutes()
将usingRoute信息刷新至routes中
| ||||||||||
| boolean |
removeRouteById(String routeId)
指定ID删除路线
| ||||||||||
| void |
reset()
重置当前路线数据
| ||||||||||
| void |
resetAll()
重置所有路线
| ||||||||||
| static TLSBRoute |
subRouteByIndex(TLSBRoute origin, int startIndex, int length)
截取子路线
| ||||||||||
| static TLSBRoute |
subRouteByRange(TLSBRoute origin, int startIndex, int endIndex)
截取子路线
| ||||||||||
| String | toString() | ||||||||||
| boolean |
useRouteAndSelectedByIndex(int index)
使用指定索引的路线数据
| ||||||||||
| boolean |
useRouteId(String id)
使用指定ID的路线数据
| ||||||||||
| boolean |
useRouteIndex(int index)
使用指定索引的路线数据
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
拷贝数据
| newRoute | 路线数据 |
|---|---|
| withRelayRoutes | 包括接力路线数据 |
拷贝接力单的算路路线
| newRouteManager | 算路路线 |
|---|---|
| main | true:从主路线列表拷贝 false:从接力路线列表拷贝 |
创建指定接力路线的编辑器
| routeId | 指定路线ID |
|---|
| NullPointerException | 指定路线无效或为null |
|---|
创建指定路线的编辑器
| routeId | 指定路线ID |
|---|
| NullPointerException | 指定路线无效或为null |
|---|
获取路线索引
通过ID查找接力单路线实体
| routeId | 路线ID |
|---|
通过订单ID查找接力单路线实体
| orderId | 订单ID |
|---|
获取剩余距离。
获取剩余时间。
通过订单ID查找路线实体
| orderId | 订单ID |
|---|
获取路线id。
通过路线ID查找索引值
| routeId | 路线ID |
|---|
通过订单ID查找多条路线实体
| orderId | 订单ID |
|---|
获取包含内部路路况单元,其中内部路color为3
将usingRoute信息刷新至routes中
指定ID删除路线
| routeId | 路线ID |
|---|
重置当前路线数据
重置所有路线
截取子路线
| origin | 原路线 |
|---|---|
| startIndex | 起点位置 |
| length | 长度 |
截取子路线
| origin | 原路线 |
|---|---|
| startIndex | 起点位置 |
| endIndex | 终点位置 |
使用指定索引的路线数据
| index | 指定路线索引 |
|---|
使用指定ID的路线数据
| id | 指定路线ID |
|---|
使用指定索引的路线数据
| index | 指定路线索引 |
|---|