Currents
Currents data for the next 10 days, including currents speed, direction and hourly forecast.
Interface Code | Interface | Class |
---|---|---|
getOceanCurrents | Currents data | CurrentsBean |
Parameter
-
location
(required)The currents station to be queried, need LocationID and LocationID can be obtained by POI Lookup. For example:location=P66981
-
date
(required)Set the date, up to 10 days in the future (including today). The date format is yyyyMMdd. Eexample:date=20200531
Sample Code
QWeather.getOceanCurrents(Context context, String location, String date, OnResultOceanTideListener listener);
Properties
Properties of CurrentsBean
Property | Description | Example |
---|---|---|
getCode | Status code, please refer to Status Code | Status Code |
getBasic | Basic Informatio | Basic |
getRefer | Reference data, includes data source, statements and license | Refer |
getHourlyList | Hourly currents data | List<CurrentsHourlyBase> |
getTableList | Currents table | List<CurrentsTableBase> |
Basic
Property | Description | Example |
---|---|---|
getUpdateTime | Last updated time | 2017-10-25T04:34+08:00 |
getFxLink | Responsive web page of this data, for embedded in website or APP | https://www.qweather.com |
Refer
Property | Description | Example |
---|---|---|
getSourcesList | Data source and other statements | QWeather |
getLicenseList | Data license | QWeather Developers License |
CurrentsTableBase
Property | Description | Example |
---|---|---|
getFxTime | Maximum speed time | 2017-10-25T04:34+08:00 |
getSpeedMax | Maximum speed, cm/sec | 1.23 |
getDir360 | Currents direction in azimuth degree | 212 |
CurrentsHourlyBase
Property | Description | Example |
---|---|---|
getFxTime | Hourly forecast time | 2017-10-25T04:34+08:00 |
getSpeed | Currents speed, cm/sec | 1.23 |
getDir360 | Currents direction in azimuth degree | 212 |