【问题标题】:OpenWeather Onecall APIOpenWeather Onecall API
【发布时间】:2021-11-28 08:24:48
【问题描述】:

我想使用 Onecall API 根据用户所在位置、当前天气和本周剩余时间的天气获取城市名称,但在 城市名称 中找不到strong>Onecall API,只有一个 Timezone 没用。有没有其他方法可以获取城市名称? 这是 JSON API 响应:

{
  "lat": 33.44,
  "lon": -94.04,
  "timezone": "America/Chicago",
  "timezone_offset": -18000,
  "current": {
    "dt": 1633679614,
    "sunrise": 1633695331,
    "sunset": 1633737084,
    "temp": 292.71,
    "feels_like": 292.6,
    "pressure": 1017,
    "humidity": 72,
    "dew_point": 287.53,
    "uvi": 0,
    "clouds": 0,
    "visibility": 10000,
    "wind_speed": 1.34,
    "wind_deg": 180,
    "wind_gust": 2.24,
    "weather": [
      {
        "id": 800,
        "main": "Clear",
        "description": "clear sky",
        "icon": "01n"
      }
    ]
  },

【问题讨论】:

  • 请澄清您的具体问题或提供其他详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。

标签: flutter api dart openweathermap


【解决方案1】:

此信息不存在。使用地理编码获取您的城市。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-18
    • 2018-10-30
    • 1970-01-01
    • 2013-09-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多