Platform: API iOS Android

Global currents data for the next 10 days, including currents speed and direction.


Currents data for the next 10 days, including currents speed, direction and hourly forecast.

Interface code (Enum) Interface Class
INQUIRE_TYPE_OCEAN_CURRENTS Currents data OceanTideBaseClass

Request Parameters

If no optional parameters are set, the default value will be used.

  • 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
  • appKey(required)API authentication key, please refer to How To Get Your Key. For example: appKey=12334567890ABC

Sample Code

QWeatherConfigInstance.publicID = @"publicID";
QWeatherConfigInstance.appKey = @"key";
QWeatherConfigInstance.appType = APP_TYPE_BIZ;    
QWeatherConfigInstance.location = @"P66981"; = @"20210518";
[QWeatherConfigInstance weatherWithInquireType: INQUIRE_TYPE_OCEAN_CURRENTS WithSuccess:^(OceanCurrentsBaseClass  *responseObject) {
    NSLog(@"描述->%@",[responseObject description]);
} faileureForError:^(NSError *error) {


  • code See Status Code
  • updateTime API last update time
  • fxLink Responsive web page of this data, for embedded in website or APP
  • currentsTable.fxTime Maximum speed time
  • currentsTable.speedMax Maximum speed, cm/sec
  • currentsTable.dir360 Currents direction in azimuth degree
  • currentsHourly.fxTime Hourly forecast time
  • currentsHourly.speed Currents speed, cm/sec
  • currentsHourly.dir360 Currents direction in azimuth degree
  • refer.sources Data source and other statements, may be null
  • refer.license Data license, may be null