Skip to content

A web service that returns current weather information for a mobile client user based on their current location.

Notifications You must be signed in to change notification settings

nmp4817/Weather-Webservice

Repository files navigation

Weather-Webservice

A web service that returns current weather information for a mobile client user based on their current location.

About

Requirements:

  • 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.

Considerations:

  • 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.

Installation Instruction

  1. Download Zip or clone repository.
  2. Put Repository inside htdocs folder of apache or xampp
  3. Create .local folder in project directory.
  4. Create authorization.php (to authorize user) and config-local.php (to define constants and initialize logging) files in .local folder.
  5. Click here and test the service.

About

A web service that returns current weather information for a mobile client user based on their current location.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published