Get weather by html5 geolocation [closed]

会有一股神秘感。 提交于 2019-12-23 06:48:40

问题


Is there a free API to get the local weather by geolocation lat/long coordinates?


回答1:


World Weather Online API - http://developer.worldweatheronline.com/

They are very explicit with their pricing model. Their free tier includes:

  • Local city and town weather
    • current conditions plus 5 day weather forecast, 24 hourly forecast
  • Marine weather
    • 1 day weather, 3 hourly interval
  • Time zone API (great for time conversion)
    • Current local time
    • UTC offset hour and minute
  • Location search
    • Search city and town (geocoding)
  • Limits
    • 500 requests per hour
    • personal and commercial use
    • 99% uptime
    • email support

For complete ToS: http://developer.worldweatheronline.com/free_api_terms_of_use




回答2:


You should look into Google Weather API. Here is a sample form Google for Mountain View's weather: http://www.google.com/ig/api?weather=Mountain+View.



来源:https://stackoverflow.com/questions/9464415/get-weather-by-html5-geolocation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!