QueryHistoryTrackOption class
查询某entity终端实体,在一段时间之内的行程信息的请求信息类
Constructors
- QueryHistoryTrackOption({@required int tag, @required int serviceId, @required String entityName, @required int startTime, @required int endTime, bool isProcessed: false, QueryTrackProcessOption processOption, TrackProcessOptionSupplementMode supplementMode: TrackProcessOptionSupplementMode.NO_SUPPLEMENT, TrackProcessOptionSupplementContent supplementContent, double lowSpeedThreshold, CoordType outputCoordType: CoordType.BD09LL, TrackSortType sortType: TrackSortType.ASC, int pageIndex: 1, int pageSize: 100})
- 有参构造
- QueryHistoryTrackOption.fromMap(Map map)
- map => QueryHistoryTrackOption
Properties
- endTime ↔ int
-
结束时间 UNIX时间戳,必填。
结束时间不能大于当前时间,且起止时间区间不超过24小时。
read / write
- entityName ↔ String
-
需要查询的entity的名称,必填,必须为非空字符串
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- isCanceled ↔ bool
-
是否取消请求 (android)
read / write, inherited
- isProcessed ↔ bool
-
是否返回纠偏后的里程,选填。
TRUE代表返回纠偏后的里程,FALSE代表使用原始轨迹计算里程。
默认值为FALSE。
read / write
- lowSpeedThreshold ↔ double
-
低速阈值,选填。(单位:千米/小时)
若填写该值且isProcessed=true时,则返回结果中将增加low_speed_distance字段,表示速度低于该值的里程。
示例:
lowSpeedThreshold=20,则返回结果中将增加low_speed_distance字段表示此段轨迹中速度低于20千米/小时的里程,可用于网约车行业中计算低速里程。
read / write
- outputCoordType ↔ CoordType
-
返回的坐标类型,选填。
该字段用于控制返回结果中的坐标类型。
只允许设置为百度经纬度或者国测局经纬度。
该参数仅对国内(包含港、澳、台)轨迹有效,海外区域轨迹均返回 wgs84坐标系。
read / write
- pageIndex ↔ int
-
分页索引,选填。
默认值为1。
pageIndex与pageSize一起计算从第几条结果返回,代表返回第几页。
read / write
- pageSize ↔ int
-
分页大小,选填。
默认值为100。
pageSize与pageIndex一起计算从第几条结果返回,代表返回结果中每页有几个轨迹点。
read / write
- processOption ↔ QueryTrackProcessOption
-
纠偏选项,选填。
该选项只有在isProcessed选项为TRUE时有效。
若设置此选项,则使用开发者指定的选项进行纠偏。
如果不设置,或者值为null,将使用默认的纠偏选项:去燥、不绑路、不过滤噪点、交通方式为驾车。
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- serviceId ↔ int
-
鹰眼服务ID 必填
read / write, inherited
- sortType ↔ TrackSortType
-
返回轨迹点的排序规则,选填。
若不设置,则使用默认值TrackSortType.ASC,按照定位时间升序排序(旧->新)
read / write
- startTime ↔ int
-
开始时间 UNIX时间戳,必填。
read / write
- supplementContent ↔ TrackProcessOptionSupplementContent
-
轨迹补偿内容
仅在supplementMode不为no_supplement时生效。
默认值:only_distance。
可选值:
only_distance:对于中断区间,只补偿中断的里程,不补偿轨迹点
distance_and_points:对于中断区间,既补偿里程,又补偿轨迹点
read / write
- supplementMode ↔ TrackProcessOptionSupplementMode
-
里程补偿的方式,选填。
在里程计算时,两个轨迹点定位时间间隔5分钟以上,被认为是中断。中断轨迹可以进行里程补偿,通过此属性设置里程补偿的方式。
默认值为TrackProcessOptionSupplementMode.NO_SUPPLEMENT 不进行里程补偿。
read / write
- tag ↔ int
-
请求标识 必填
read / write, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toMap(
) → Map - BaseOption => map
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited