public final class HistoryTrackRequest extends BaseRequest
serviceId, tag
构造器和说明 |
---|
HistoryTrackRequest() |
HistoryTrackRequest(int tag,
long serviceId) |
HistoryTrackRequest(int tag,
long serviceId,
java.lang.String entityName) |
HistoryTrackRequest(int tag,
long serviceId,
java.lang.String entityName,
long startTime,
long endTime,
boolean isProcessed,
ProcessOption processOption,
SupplementMode supplementMode,
SortType sortType,
CoordType coordTypeOutput,
int pageIndex,
int pageSize) |
HistoryTrackRequest(int tag,
long serviceId,
java.lang.String entityName,
long startTime,
long endTime,
boolean isProcessed,
ProcessOption processOption,
SupplementMode supplementMode,
SortType sortType,
CoordType coordTypeOutput,
int pageIndex,
int pageSize,
double lowSpeedThreshold)
V3.1.0版本新增字段构造方法
|
HistoryTrackRequest(int tag,
long serviceId,
java.lang.String entityName,
long startTime,
long endTime,
boolean isProcessed,
ProcessOption processOption,
SupplementMode supplementMode,
SortType sortType,
CoordType coordTypeOutput,
int pageIndex,
int pageSize,
double lowSpeedThreshold,
SupplementContent supplementContent)
V3.1.8版本新增字段构造方法
|
HistoryTrackRequest(int tag,
long serviceId,
java.lang.String entityName,
long startTime,
long endTime,
boolean isProcessed,
ProcessOption processOption,
SupplementMode supplementMode,
SortType sortType,
CoordType coordTypeOutput,
int pageIndex,
int pageSize,
double lowSpeedThreshold,
SupplementContent supplementContent,
Extensions extensions)
V3.1.9版本新增字段构造方法
|
限定符和类型 | 方法和说明 |
---|---|
CoordType |
getCoordTypeOutput() |
long |
getEndTime() |
java.lang.String |
getEntityName() |
Extensions |
getExtensions() |
double |
getLowSpeedThreshold()
获取低速阈值, 单位:千米/小时
V3.1.0新增字段
若填写该值且isProcessed = true时,则返回结果中将增加lowSpeedDistance字段,表示速度低于该值的里程。
|
int |
getPageIndex() |
int |
getPageSize() |
ProcessOption |
getProcessOption() |
SortType |
getSortType() |
long |
getStartTime() |
SupplementContent |
getSupplementContent()
获取轨迹补偿内容
|
SupplementMode |
getSupplementMode() |
boolean |
isProcessed() |
void |
setCoordTypeOutput(CoordType coordTypeOutput)
设置返回结果的坐标类型,默认为百度经纬度
该字段用于控制返回结果中坐标的类型。
|
void |
setEndTime(long endTime)
设置结束时间
|
void |
setEntityName(java.lang.String entityName)
设置entity标识
|
void |
setExtensions(Extensions extensions)
设置返回结果控制
V3.1.8新增字段
base:返回基础信息
road_info:在base的基础上增加返回道路等级(road_grade)、道路限速(car_limit_speed)、
道路名称(road_name)信息(注:目前road_info仅在开发者申请开通了道路等级和道路限速字段权限后才生效)
|
void |
setLowSpeedThreshold(double lowSpeedThreshold)
设置低速阈值, 单位:千米/小时
V3.1.0新增字段
若填写该值且isProcessed = true时,则返回结果中将增加lowSpeedDistance字段,表示速度低于该值的里程。
|
void |
setPageIndex(int pageIndex)
设置分页索引
|
void |
setPageSize(int pageSize)
设置分页大小
|
void |
setProcessed(boolean isProcessed)
设置是否返回纠偏后轨迹,默认不纠偏
true:打开轨迹纠偏,返回纠偏后轨迹;
false:关闭轨迹纠偏,返回原始轨迹。
|
void |
setProcessOption(ProcessOption processOption)
设置纠偏选项,可选项为:
needDenoise:去噪(false:不需要,true:需要)
needVacuate:抽稀(false:不需要,true:需要)
needMapMatch:绑路(false:不需要,true:需要)
radiusThreshold:精度过滤(0:不需要,>0:radius过滤值)
transportMode:交通方式(driving, riding, walking)
|
void |
setSortType(SortType sortType)
设置返回结果的排序规则,默认升序排序
|
void |
setStartTime(long startTime)
设置起始时间
|
void |
setSupplementContent(SupplementContent supplementContent)
设置轨迹补偿内容
V3.1.8新增字段
仅在supplement_mode不为no_supplement时生效。
|
void |
setSupplementMode(SupplementMode supplementMode)
设置里程补偿方式,默认不补充
|
java.lang.String |
toString() |
cancel, getServiceId, getTag, isCanceled, setServiceId, setTag
public HistoryTrackRequest()
public HistoryTrackRequest(int tag, long serviceId)
tag
- 请求标识serviceId
- 轨迹服务IDpublic HistoryTrackRequest(int tag, long serviceId, java.lang.String entityName)
tag
- 请求标识serviceId
- 轨迹服务IDentityName
- entity标识public HistoryTrackRequest(int tag, long serviceId, java.lang.String entityName, long startTime, long endTime, boolean isProcessed, ProcessOption processOption, SupplementMode supplementMode, SortType sortType, CoordType coordTypeOutput, int pageIndex, int pageSize)
tag
- 请求标识serviceId
- 轨迹服务IDentityName
- entity标识startTime
- 开始时间endTime
- 结束时间isProcessed
- 是否返回纠偏后轨迹processOption
- 纠偏选项supplementMode
- 里程补偿方式sortType
- 返回结果的排序规则coordTypeOutput
- 返回结果的坐标类型pageIndex
- 分页索引pageSize
- 分页大小public HistoryTrackRequest(int tag, long serviceId, java.lang.String entityName, long startTime, long endTime, boolean isProcessed, ProcessOption processOption, SupplementMode supplementMode, SortType sortType, CoordType coordTypeOutput, int pageIndex, int pageSize, double lowSpeedThreshold)
tag
- 请求标识serviceId
- 轨迹服务IDentityName
- entity标识startTime
- 开始时间endTime
- 结束时间isProcessed
- 是否返回纠偏后轨迹processOption
- 纠偏选项supplementMode
- 里程补偿方式sortType
- 返回结果的排序规则coordTypeOutput
- 返回结果的坐标类型pageIndex
- 分页索引pageSize
- 分页大小lowSpeedThreshold
- 低速阈值public HistoryTrackRequest(int tag, long serviceId, java.lang.String entityName, long startTime, long endTime, boolean isProcessed, ProcessOption processOption, SupplementMode supplementMode, SortType sortType, CoordType coordTypeOutput, int pageIndex, int pageSize, double lowSpeedThreshold, SupplementContent supplementContent)
tag
- 请求标识serviceId
- 轨迹服务IDentityName
- entity标识startTime
- 开始时间endTime
- 结束时间isProcessed
- 是否返回纠偏后轨迹processOption
- 纠偏选项supplementMode
- 里程补偿方式sortType
- 返回结果的排序规则coordTypeOutput
- 返回结果的坐标类型pageIndex
- 分页索引pageSize
- 分页大小lowSpeedThreshold
- 低速阈值supplementContent
- 轨迹补偿内容public HistoryTrackRequest(int tag, long serviceId, java.lang.String entityName, long startTime, long endTime, boolean isProcessed, ProcessOption processOption, SupplementMode supplementMode, SortType sortType, CoordType coordTypeOutput, int pageIndex, int pageSize, double lowSpeedThreshold, SupplementContent supplementContent, Extensions extensions)
tag
- 请求标识serviceId
- 轨迹服务IDentityName
- entity标识startTime
- 开始时间endTime
- 结束时间isProcessed
- 是否返回纠偏后轨迹processOption
- 纠偏选项supplementMode
- 里程补偿方式sortType
- 返回结果的排序规则coordTypeOutput
- 返回结果的坐标类型pageIndex
- 分页索引pageSize
- 分页大小lowSpeedThreshold
- 低速阈值supplementContent
- 轨迹补偿内容extensions
- 返回结果控制public java.lang.String getEntityName()
public void setEntityName(java.lang.String entityName)
entityName
- public long getStartTime()
public void setStartTime(long startTime)
startTime
- public long getEndTime()
public void setEndTime(long endTime)
endTime
- public boolean isProcessed()
public void setProcessed(boolean isProcessed)
true:打开轨迹纠偏,返回纠偏后轨迹; false:关闭轨迹纠偏,返回原始轨迹。 打开纠偏时,请求时间段内轨迹点数量不能超过2万,否则将返回错误。
isProcessed
- public ProcessOption getProcessOption()
public void setProcessOption(ProcessOption processOption)
needDenoise:去噪(false:不需要,true:需要) needVacuate:抽稀(false:不需要,true:需要) needMapMatch:绑路(false:不需要,true:需要) radiusThreshold:精度过滤(0:不需要,>0:radius过滤值) transportMode:交通方式(driving, riding, walking)
processOption
- public SupplementMode getSupplementMode()
public void setSupplementMode(SupplementMode supplementMode)
supplementMode
- public SortType getSortType()
public void setSortType(SortType sortType)
sortType
- public CoordType getCoordTypeOutput()
public void setCoordTypeOutput(CoordType coordTypeOutput)
该字段用于控制返回结果中坐标的类型。可选值为: bd09ll:百度经纬度坐标; gcj02:国测局加密坐标; 注:该字段在国外无效,国外均返回wgs84坐标
coordTypeOutput
- public int getPageIndex()
public void setPageIndex(int pageIndex)
pageIndex
- public int getPageSize()
public void setPageSize(int pageSize)
pageSize
- public double getLowSpeedThreshold()
public void setLowSpeedThreshold(double lowSpeedThreshold)
lowSpeedThreshold
- 低速阈值, 单位:千米/小时public SupplementContent getSupplementContent()
public void setSupplementContent(SupplementContent supplementContent)
supplementContent
- 轨迹补偿内容public Extensions getExtensions()
public void setExtensions(Extensions extensions)
extensions
- 返回结果控制public java.lang.String toString()
toString
在类中 java.lang.Object