Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The forecast APIs being used is deprecated, and results in two HTTP requests #10

Closed
rewsssiestedbo opened this issue May 24, 2019 · 2 comments · Fixed by #21
Closed

Comments

@rewsssiestedbo
Copy link

The /points/{point}/forecast and /points/{point}/forecast/hourly APIs are listed on https://www.weather.gov/documentation/services-web-api as deprecated. Each of them actually result in returning an HTTP 301 redirect to the /gridpoints/{wfo}/{x},{y}/forecast (.../hourly) endpoints to actually retrieve the forecast data. The correct forecast and hourly forecast URLs are returned as properties on a call to /points/{point}. Perhaps you should get the point properties on object creation and save the URLs for use to get the forecast data.

@MatthewFlamm
Copy link
Owner

Thanks. I don't believe these were deprecated earlier, but either way, I'll look into implementing it.

@rewsssiestedbo
Copy link
Author

rewsssiestedbo commented May 25, 2019

Based on the copies of the page on archive.org, they were changed to deprecated sometime between November 22, 2018 and April 20, 2019.

Note that the /points/{point}/stations URL also does a redirect to a /gridpoints URL. If you are picking up the forecast URLs from the /point data, you can also get the /gridpoints URL for getting the station list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants