How to get current weather through web services

I am trying to get the current weather based on a zip code or a set of latitude / longitude coordinates. It seems that the best practice for this (and how NOAA does it) is to get an XML stream for the weather station.

Example:    http://www.weather.gov/xml/current_obs/KEDW.xml

The only problem is that NOAA does not provide a good way to find the nearest weather station, given the zip code or coordinates, and I have not seen any hosted web services there that will provide this mapping.

Does anyone know of any web services to get the nearest weather station based on a zip code or coordinate input? If not, does anyone have great search solutions that provide similar information like NOAA but take a zip code or coordinates?

+3
source share
3 answers

There are numerous weather APIs that will search for weather based on zip codes or find the closest one for a zip code. See this question .

National Weather Service has a REST API . CTRL + F for zipcode:

Zip-: NDFD, DWML, (50 -).


, . , Wunderground API. GeolookupXML (. nearby_weather_stations ), WXCurrentObXML, .

+3

, NOAA METAR , URL- RSS XML-. XML : http://www.weather.gov/xml/current_obs/index.xml

API Google Yahoo / (, , ..), METAR .

+2

, City, Street . . , API city/street, 5- , , .

0

Source: https://habr.com/ru/post/1737393/


All Articles