Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

city.list.json incomplete or outdated?

Nathaniel Jun 09, 2019 08:23AM BST

Was looking to query the API by city name, but saw that this doesn't work well when the name is used for multiple places within the same country (perhaps in different states/provinces) - data for only one of the places is returned (not necessarily the more populous/prominant either)

The API doc seems to suggest using the city id to work around such issues, so I download city.list.json, and some of the places aren't even listed once, eg. "Mirrabooka"... so to use that as an example:

API: api.openweathermap.org/data/2.5/weather?q=Mirrabooka,AU
get data about the tiny suburb (population less than 800) of Lake Macquarie in NSW, but not Mirrabooka the Perth suburb (population greater than 8000, 10 times more than the NSW town/suburb)

city.list.json: no entry / city ID for either Mirrabooka


Go to https://openweathermap.org/find?q=Mirrabooka,au (manual search of the website) and both Mirrabooka's are shown, with links that give city IDs for both.

I hence feel I should report that the city.list.json file seems incomplete/outdated relative to the site/API.

I am not looking for a solution/workaround/resolution at this stage (I can probably get away with ignoring the issue!) but I felt I should report this as it seems like it would effect others as well

Up 0 rated Down
Pavel Zuykov Jun 10, 2019 02:04PM BST OpenWeatherMap Agent

Hello,

Thank you very much for report.

We trying to get our city list actual, and update it then possible. I will send your request to development team.

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)
9eda11838f597e7a95b6a1c991dcae0a@openweathermap.desk-mail.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete