Always getting "weatherCondition": "n/a"

44 views
Skip to first unread message

Pankaj Kumar

unread,
Jun 12, 2024, 6:50:30 AMJun 12
to GeoNames
Dear Team,

I am facing some issues with the API call  http://api.geonames.org/findNearByWeatherJSON
You will see "weatherCondition": "n/a" if you check the details below. I tried for multiple lat & long but for every request getting the same n/a. Please let me know if there is any change or if I am doing wrong here.

{
"weatherObservation": {
"elevation": 897,
"lng": 77.6333333333333,
"observation": "VOBG 111030Z 25011KT 8000 SCT012 SCT018 BKN080 29/22 Q1011 NOSIG",
"ICAO": "VOBG",
"clouds": "scattered clouds",
"dewPoint": "22",
"cloudsCode": "SCT",
"datetime": "2024-06-11 10:30:00",
"countryCode": "IN",
"temperature": "29",
"humidity": 66,
"stationName": "Bangalore / Hindustan",
"weatherCondition": "n/a",
"windDirection": 250,
"hectoPascAltimeter": 1011,
"windSpeed": "11",
"lat": 12.95
}
}

Marc Wick

unread,
Jun 13, 2024, 4:31:34 AMJun 13
to geon...@googlegroups.com
Hi Pankay

The condition is not reported in the metar string.
Here a current example of a location which includes the condition:
{"weatherObservation": {
  "elevation": 53,
  "lng": 11.866666666666667,
  "weatherConditionCode": "DZ",
  "observation": "ESGP 130750Z 20010KT 9999 DZ BKN020 10/07 Q1009 RERA",
  "ICAO": "ESGP",
  "clouds": "broken clouds",
  "dewPoint": "7",
  "cloudsCode": "BKN",
  "datetime": "2024-06-13 07:50:00",
  "countryCode": "SE",
  "temperature": "10",
  "humidity": 81,
  "stationName": "Goteborg / Save",
  "weatherCondition": "drizzle",
  "windDirection": 200,
  "hectoPascAltimeter": 1009,
  "windSpeed": "10",
  "lat": 57.766666666666666
}}

Best Regards

Marc

--
You received this message because you are subscribed to the Google Groups "GeoNames" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geonames+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geonames/87084671-70ae-4e35-a8c5-6473050db652n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages