Home  >  Q&A  >  body text

python - 有没有提供用经度纬度查询天气的服务?

有没有提供用经度纬度查询天气的服务?

或者有那些比较好的实现方式?

阿神阿神2714 days ago906

reply all(3)I'll reply

  • ringa_lee

    ringa_lee2017-04-17 13:53:42

    You can check the city first, and then check the weather based on the city.
    For example, you can query a city through Baidu Map API or Google Map API and then query the weather through China Weather Network API.


    Weather Underground
    Example: http://api.wunderground.com/auto/wui/geo/GeoLookupXML/index.xml?query=37.76834106,-122.39418793
    Source

    reply
    0
  • 迷茫

    迷茫2017-04-17 13:53:42

    Available through Yahoo Weather. Yahoo Weather supports getting woeid from longitude and latitude (this is a region ID dedicated to Yahoo Weather), and then you can use woeid to get the weather.

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 13:53:42

    Basically all current APIs support it. Know the weather by heart, gentle weather and the like

    reply
    0
  • Cancelreply