A web service that returns current weather information for a mobile client user based on their current location.
- Capture the latitude/longitude coordinates from the mobile application request.
- Consume weather data from https://openweathermap.org/.
- Extract the weather details for the client's given location and return the following values in JSON format:
- Temperature in Fahrenheit
- Weather, e.g. "clear", "overcast"
- Wind speed
- Wind direction
- Needs to support multiple versions of the mobile application since not all customers upgrade immediately, so backwards-compatibility is key.
- Business could agree to obtain their weather data from a different source, so design your solution to minimize code rework.
- The support team heavily relies on logging to troubleshoot and diagnose production issues.
- Download Zip or clone repository.
- Put Repository inside htdocs folder of apache or xampp
- Create .local folder in project directory.
- Create authorization.php (to authorize user) and config-local.php (to define constants and initialize logging) files in .local folder.
- Click here and test the service.