gpt4 book ai didi

api - 如何通过 zip 获取 openweathermap.org 信息?

转载 作者:行者123 更新时间:2023-12-05 01:17:02 25 4
gpt4 key购买 nike

我正在尝试通过 openweathermap.org 检索天气信息。无论我输入哪个邮政编码,它总是返回 Not found city。

http://api.openweathermap.org/data/2.5/weather?zip=98104,us&APPID=xxx

{"cod":"404","message":"Error: Not found city"}



有谁知道我做错了什么?

最佳答案

我只是用我的 id 尝试过,但也没有用。可能是服务器过载。
您可能希望自己使用 openWeatherMap 来填写支持请求,这是我不久前发现的:

来自 https://openweathermap.desk.com/customer/portal/questions/13084185-error-not-found-city :
Ivan - UTC 时间 2015 年 9 月 15 日下午 03:51 - OpenWeatherMap 代理

To make it clear: a problem of our API is that errors like this don’t necessarily mean what they say. A 404 or, say, 503 error can happen even when your request is perfectly valid and when the place actually is in the database, the reason behind is the free servers overload. We do our best to extend the capacity continuously but don’t always manage fitting in the resources we have

关于api - 如何通过 zip 获取 openweathermap.org 信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39543293/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com