星图云开放平台
全球海流流场
更新时间:2025-08-07 19:05:19
接口说明

本接口为“全球海洋网格预报图层”的补充,为了丰富可视化产品展示效果,我们推出流场产品,并提供示例代码,其中包括在高德地图、百度地图、leaflet、openlayer、Cesium等二三维地图框架的应用示例,使您可以在应用中快速集成,直观地展示流场特征。
空间范围:全球海洋
空间分辨率:8km
时间范围:查询时间过去24小时至未来7天
更新频次:1次/天
预报时效:未来0~3天逐1小时,未来3~7天逐3小时
数据要素:海流流速

调用方式

使用 API 前,需要先注册账号并完成用户认证,查看 开发指南

服务地址https://api.open.geovisearth.com/v2/ocean/flow/range
请求方式GET 方法
接口鉴权服务密钥授权,您需要 申请 token将 token 作为必填参数拼接在服务地址中一起请求
调用限制服务调用量的限制请点击 这里 查阅
请求参数

参数名

含义

规则数据

是否必填

缺省值

meteCode要素类型,见要素代码表string/
start查询开始时间(yyyyMMddHH)string/
end查询结束时间(yyyyMMddHH)string/

 

meteCode要素代码表:

要素代码要素说明
current_speed海流流速
返回参数
参数名类型说明
statusint状态码,非0表示没有正常获取到数据
dataCodeString数据编码
productCodeString产品类型编码
meteCodeString要素编码
timeRangeString请求的数据时间范围,格式:”yyyyMMddHH”,”yyyyMMddHH”
urlsString时间序列对应的文件,每个时次包括一个webp/png文件和一个json文件

 

json文件参数说明

注:此说明用于帮助理解文件内容,应用开发可使用示例代码中的函数直接读取json文件

 

参数名参数说明
lo1最小经度固定为-180
lo2最大经度固定为179.75
la1最小纬度固定为-90
la2最大纬度固定为90
dx横向步长固定为1
dy纵向步长固定为0.99
nx横向划分栅格数量固定为360
ny纵向划分栅格数量固定为181
gribLength栅格点数量固定为65160
parameterNumberName要素名称U-component_of_wind、V-component of wind,每个文件包含以上两个要素名称的数据体
parameterUnit数据单位固定为m/s
refTime数据时次格式为yyyyMMddHHmm
data各栅格点的海流流速数值-
调用示例

请求示例

https://api.open.geovisearth.com/v2/ocean/flow/range?token=您的token&start=2024101601&end=2024101608&meteCode=wind_spd_10

返回示例

{
    "status": 0,
    "version": "v1",
    "date": {
        "time": "20241016140926",
        "timeZone": "Asia/Shanghai"
    },
    "result": {
        "dataCode": "current",
        "productCode": "flow",
        "meteCode": "current_speed",
        "timeRange": [
            "2024101601",
            "2024101608"
        ],
        "urls": {
            "2024101601": "https://io-qos.geovisearth.com/getfile/35/visual/vucloud/flow/current/202410/1408/currentSpeed_202410160100a3b27dea347012661f.json",
            "2024101602": "https://io-qos.geovisearth.com/getfile/35/visual/vucloud/flow/current/202410/1408/currentSpeed_202410160200b582e138263ff4bd52.json",
            "2024101603": "https://io-qos.geovisearth.com/getfile/35/visual/vucloud/flow/current/202410/1408/currentSpeed_202410160300a716341eb18550d31e.json",
            "2024101604": "https://io-qos.geovisearth.com/getfile/35/visual/vucloud/flow/current/202410/1408/currentSpeed_202410160400ef25767e09ae2196e1.json",
            "2024101605": "https://io-qos.geovisearth.com/getfile/35/visual/vucloud/flow/current/202410/1408/currentSpeed_2024101605004dcd1a82c18e78b09a.json",
            "2024101606": "https://io-qos.geovisearth.com/getfile/35/visual/vucloud/flow/current/202410/1408/currentSpeed_20241016060051047db18df9b25dd7.json",
            "2024101607": "https://io-qos.geovisearth.com/getfile/35/visual/vucloud/flow/current/202410/1408/currentSpeed_20241016070044da13837b7ee13321.json",
            "2024101608": "https://io-qos.geovisearth.com/getfile/35/visual/vucloud/flow/current/202410/1408/currentSpeed_2024101608003ec7c635127d59376c.json"
        }
    }
}