Support Center

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

list of countries and their code

Roelof Wobben Mar 20, 2017 06:30PM UTC

Hello,

Someone knows if there is a simple way to get a list of the countries and their code in c#.
I like to use that in my app I want to make which uses the openweather api.

Roelof

Up 0 rated Down
Maxim Gushcho Mar 22, 2017 02:28PM UTC OpenWeatherMap Agent

Hello,

You can find list of locations but not the countries:
http://openweathermap.org/appid

Up -1 rated Down
Vlad Calin Mar 23, 2017 02:55PM UTC
Hello,

I encounter a problem with the accuracy of the service. I am trying to get the current forecast for Iasi by using the HTTP API and I get the following behavior:

Based on the results of http://openweathermap.org/find?q=iasi, i get the geographic coordinates of [47.1667, 27.6], but when I am using the API with the URL

http://samples.openweathermap.org/data/2.5/weather?lat=47.1667&lon=27.6&appid=***hidden*** i get the forecast for Tawarano, JP.

I also tried the follwing
http://samples.openweathermap.org/data/2.5/weather?lat=27.6&lon=47.1667&appid=***hidden***
but I am getting the same wrong result.

What am I doing wrong?
Up 1 rated Down
Maxim Gushcho Mar 24, 2017 08:37AM UTC OpenWeatherMap Agent

Hello,

Please remember that all Examples of API calls that listed on this page are just samples and do not have any connection to the real API service!
Source:
http://openweathermap.org/current
Use the correct endpoint!

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