public class TransferPathService
extends java.lang.Object
交通换乘线路查询服务类。
限定符和类型 | 类和说明 |
---|---|
static class |
TransferPathService.TransferPathEventListener
处理线路查询结果的监听器抽象类。
|
构造器和说明 |
---|
TransferPathService(java.lang.String url)
构造函数。
|
限定符和类型 | 方法和说明 |
---|---|
TransferPathResult |
getLastResult()
返回线路查询结果。
|
<T> void |
process(TransferPathParameters<T> parameters, TransferPathService.TransferPathEventListener listener)
根据线路查询服务地址与服务端完成异步通讯,即发送分析参数,并通过实现TransferPathEventListener监听器处理查询结果。
|
public TransferPathService(java.lang.String url)
构造函数。
url
- 线路查询服务地址。public <T> void process(TransferPathParameters<T> parameters, TransferPathService.TransferPathEventListener listener)
根据线路查询服务地址与服务端完成异步通讯,即发送分析参数,并通过实现TransferPathEventListener监听器处理查询结果。
parameters
- 线路查询参数信息。listener
- 处理查询结果的TransferPathEventListener监听器。public TransferPathResult getLastResult()
返回线路查询结果。