船舶实时位置
简要描述
船舶实时位置查询
请求地址
/v4/api/ship/operateLatestHeader
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| Token | 是 | string | 应用令牌 |
请求参数
| 参数名 | 必选 | 类型 | 层级 | 说明 | 示例 |
|---|---|---|---|---|---|
| mmsi | 是 | string | 1 | 船舶mmsi | 249888000 |
- 请求对象
java
@NotBlank(message = "mmsi不能为空")
@Schema(description = "船舶mmsi")
private String mmsi;返回参数
java
@Getter
@Setter
public class HistoryRes implements Serializable {
@Schema(description = "定位时间(单位:utc秒)")
private String posTime;
@Schema(description = "经度(单位:1/10000分)")
private String lon;
@Schema(description = "纬度(单位:1/10000分)")
private String lat;
@Schema(description = "航向(单位:0.1度)")
private String cog;
@Schema(description = "航艏向(单位:度)")
private String heading;
@Schema(description = "航速(单位:0.1节)")
private String sog;
@Schema(description = "转向率(度/分钟)")
private String rot;
@Schema(description = "ais航行状态", example = "0 = 发动机使用中,1 = 锚泊,2 = 未操纵,3 = 有限适航性,4 = 受 船舶吃水限制,5 = 系泊,6 = 搁浅,7 = 从事捕捞,8 = 航行中, 9 =留做将来修正导航状态,10=留做将来修正导航状态, 11 = 机动船尾推作业(区域使用), 12 = 机动船顶推或侧推作业(区域使用),\n" +
"13 = 留做将来用, 14 = AIS-SART(现行的)、MOB-AIS、EPIRB-AIS ,15 = 未规定=默认值")
private String aisNavStatus;
}返回示例
json
{
"code": 200,
"data": {
"aisNavStatus": "5",
"cog": "2434",
"heading": "209",
"lat": "1752382",
"lon": "60771741",
"posTime": "1752224765",
"rot": "0",
"sog": "0"
},
"msg": "业务处理成功"
}