public class TransitParam extends RoutePlanningParam
Modifier and Type | Class and Description |
---|---|
static class |
TransitParam.Policy |
static class |
TransitParam.Preference |
RoutePlanningParam.DrivingPolicy, RoutePlanningParam.TransitPolicy
Constructor and Description |
---|
TransitParam() |
TransitParam(LatLng from,
LatLng to) |
Modifier and Type | Method and Description |
---|---|
RequestParams |
buildParameters()
构造参数
|
TransitParam |
departureTime(long departureTime)
出发时间,默认使用当前时间,用于过滤掉非运营时段的线路
|
java.lang.Class<TransitResultObject> |
getResultClass() |
java.lang.String |
getUrl() |
TransitParam |
policy(RoutePlanningParam.TransitPolicy policy)
Deprecated.
|
TransitParam |
policy(TransitParam.Policy policy,
TransitParam.Preference... preferences)
设置换乘策略
|
checkParams, from, locationToParamsString, to
public TransitParam policy(RoutePlanningParam.TransitPolicy policy)
policy
- public TransitParam policy(TransitParam.Policy policy, TransitParam.Preference... preferences)
policy
- public TransitParam departureTime(long departureTime)
departureTime
- public RequestParams buildParameters()
ParamObject
buildParameters
in interface ParamObject
buildParameters
in class RoutePlanningParam
public java.lang.String getUrl()
getUrl
in class RoutePlanningParam
public java.lang.Class<TransitResultObject> getResultClass()
getResultClass
in class RoutePlanningParam