API Providers
In this task, I choose below two API providers:
Open Weather Map
ThinkPage
Compare APIs between above two providers(the free version )
- Current Weather API Response Data
| Data | Open Weather Map | ThinkPage |
|---|---|---|
| Location | Y | Y |
| Datetime | UNIX timestamp | The local datetime of the location |
| Weather Description | Y | Y |
| Temperature | Y | Y |
| Pressure | Y | N |
| Humidity | Y | N |
| Cloudiness | Y | N |
| Wind speed | Y | N |
| Wind direction | Y | N |
| Sunrise | Y | N |
| Sunset | Y | N |
- Daily Forecast API Response Data
| Data | Open Weather Map | ThinkPage |
|---|---|---|
| Max days Forecast | 3 | 16 |
| Location | Y | Y |
| Date | Y | Y |
| Day Weather | Y | Y |
| Night Weather | N | Y |
| High Temperature | Y | Y |
| Low Temperature | Y | Y |
| wind_direction | N | Y |
| wind_degress | Y | Y |
| wind_speed | Y | Y |
| wind_scale | N | Y |
| Pressure | Y | N |
| Humidity | Y | N |
- Unit of Measure
| Data | Open Weather Map | ThinkPage | |||
|---|---|---|---|---|---|
| param | Standard | Metric | Imperial | c(Default) | f |
| Temperature | Kelvin | Celsius | Fahrenheit | Celsius | Fahrenheit |
| Wind Speed | meter/sec | meter/sec | miles/hour | km/hour | miles/hour |
| Pressure | hPa | hPa | hPa | mb | in |
- Language
Both support Chinese
- Location name
| Data | Open Weather Map | ThinkPage |
|---|---|---|
| Location | English name | Chinese name & English name |
- Advantage
Open Weather Map
- For the free version, OWM provides more detailed data
- Better response data structure, easy to parse the json
- Very quick response time
- Support more internation location
ThinkPage
- The timezone is displayed in the local time zone of the query location, so user don't need to convert from UTC to local. The offset is also provided.
- Support Chinese Character in location parameters
- Provide compass wind direction, so user don't need to convert from degree to compass
- Support more Chinese location