| java.lang.Object | |
| ↳ | com.tencent.map.lssupport.protocol.BaseSyncProtocol |
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.tencent.map.lssupport.protocol.SyncProtocol
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| BaseSyncProtocol(TLSAccount account) | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void | carpoolOrderStatusSync(String driverOrderId, String passengerOrderId, String passengerId, TLSLatlng passengerPosition, String driverId, TLSLatlng driverPosition, TLSLatlng start, TLSLatlng dest, int targetStatus, int carType, int bizType, SyncProtocol.OrderResultListener listener) | ||||||||||
| void |
changeDestination(TLSLatlng destLatLng)
更改目的地
| ||||||||||
| void |
destroy()
销毁对象
| ||||||||||
| OrderManager |
getOrderManager()
获取SDK内部维护的订单管理器。
| ||||||||||
| RouteManager |
getRouteManager()
获取SDK内部维护的路线管理器
| ||||||||||
| RouteManager.Editor |
getTLSBRoute()
This method is deprecated.
2.2之后,建议使用
editCurrent()
| ||||||||||
| void |
init(Context applicationContext, TLSConfigPreference config)
初始化工作
| ||||||||||
| boolean |
isRuning()
当前司乘同显服务是否开启。
| ||||||||||
| void | orderStatusSync(String orderId, String passengerId, TLSLatlng passengerPosition, String driverId, TLSLatlng driverPosition, TLSLatlng start, TLSLatlng dest, int targetStatus, int carType, int bizType, SyncProtocol.OrderResultListener listener) | ||||||||||
| void |
orderStatusSync(String orderId, Map<String, Object> requestMap, SyncProtocol.OrderResultListener listener)
请求订单同步
| ||||||||||
| void |
reflux(long startTime, long endTime)
回流某段时间日志
| ||||||||||
| void |
resetOrder()
This method is deprecated.
2.2版本之后,不再使用
| ||||||||||
| void |
setPullTimeInterval(int sec)
设置拉取位置请求的时间间隔
也可通过接口动态配置,具体参考接口文档。 | ||||||||||
| void |
setPushTimeInterval(int sec)
设置上报位置请求的时间间隔
| ||||||||||
| void |
start()
开启司乘同显服务。
| ||||||||||
| void |
stop()
结束司乘同显服务。
| ||||||||||
| void |
switchToNetConfig(boolean needSwitch)
是否切换至配置域名
| ||||||||||
| void |
uploadImmediately()
立即上报当前定位点。
| ||||||||||
| void |
uploadPosition(TLSBPosition position)
上传定位点。
上传定位点前,需保证当前订单状态最新, 可通过该方法来更新SDK内部Order。
getTLSBOrder().set(...)
.set(...)
| ||||||||||
| void |
uploadPosition(TLSBOrder order, TLSBPosition position)
指定订单的定位点
| ||||||||||
| void |
uploadRoute(TLSBRoute route)
上传单一路线
| ||||||||||
| void | uploadRoute(TLSBRoute route, TLSBPosition position) | ||||||||||
| void | uploadRouteWithIndex(int routeIndex, TLSBPosition position) | ||||||||||
| void |
uploadRouteWithIndex(int routeIndex)
上报指定路线
| ||||||||||
| void | uploadRoutes(TLSBPosition position) | ||||||||||
| void |
uploadRoutes()
上传所有路线。
上传路线前,需保证当前路线信息最新, 可通过该方法来更新SDK内部TLSBRoute。
getTLSBRoute().set(...)
.set(...)
| ||||||||||
| void |
uploadUsingRoute()
上传当前使用中的路线
| ||||||||||
| void | uploadUsingRoute(TLSBPosition position) | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.tencent.map.lssupport.protocol.LocationProtocol
| |||||||||||
From interface
com.tencent.map.lssupport.protocol.NetworkProtocol
| |||||||||||
From interface
com.tencent.map.lssupport.protocol.OrderProtocol
| |||||||||||
From interface
com.tencent.map.lssupport.protocol.RouteProtocol
| |||||||||||
From interface
com.tencent.map.lssupport.protocol.SyncProtocol
| |||||||||||
销毁对象
This method is deprecated.
2.2之后,建议使用editCurrent()
获取SDK内部维护的路线编辑器
开发者需通过更新该路线信息, 来保证SDK内部路线信息最新。
2.2 返回类型修改成 RouteManager.Editor
初始化工作
| applicationContext | 上下文 |
|---|---|
| config | 基础信息配置类 |
当前司乘同显服务是否开启。
请求订单同步
| orderId | 司机订单ID,若不存在传"" |
|---|---|
| requestMap | 请求参数,同步接力单时需要开发者填充参数 |
| listener | 监听者 |
回流某段时间日志
| startTime | 开始时间 |
|---|---|
| endTime | 结束时间 |
设置拉取位置请求的时间间隔
也可通过接口动态配置,具体参考接口文档。
| sec | 时间间隔,单位:秒 |
|---|
设置上报位置请求的时间间隔
| sec | 时间间隔,单位:秒 |
|---|
开启司乘同显服务。
结束司乘同显服务。
是否切换至配置域名
| needSwitch | 需要切换 |
|---|
立即上报当前定位点。
上传定位点。
上传定位点前,需保证当前订单状态最新, 可通过该方法来更新SDK内部Order。
getTLSBOrder().set(...)
.set(...)
| position | 定位信息 |
|---|
指定订单的定位点
| order | 订单ID |
|---|---|
| position | 定位点信息 |
上报指定路线
| routeIndex | 路线索引 |
|---|
上传所有路线。
上传路线前,需保证当前路线信息最新, 可通过该方法来更新SDK内部TLSBRoute。
getTLSBRoute().set(...)
.set(...)