问题
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