Skip to content

Latest commit

 

History

History
61 lines (40 loc) · 1.66 KB

README.md

File metadata and controls

61 lines (40 loc) · 1.66 KB

This is an image

How to do the task

Fork the project, work on the solution and send us back a link to your forked GitHub project.

Weather API - Laravel Developer Test Task

We will use Open Weather API to get current weather data based on latitude/longitude.


Task

Create a project, that will pull the weather information of cities based on latitude/longitude and will store it in the database every two minutes.

Data to store

  • Store the data about cities in the database
  • Store the data about weather information in the database every two minutes

Rest API Endpoints

  • Store the data about cities in the database
  • Get the list of the stored weather information
  • Ability to filter the weather information by city name ( exact match )

Data

Columns that should be stored about city

  • City name
  • Latitude
  • Longitude

Columns that should be stored about weather information in the table:

  • Time
  • Name
  • Latitude
  • Longitude
  • Temperature (in Celsius)
  • Pressure
  • Humidity
  • MIN Temperature
  • MAX Temperature

Example Cities

Name Latitude Longitude
Yerevan 40.18 44.51
Kapan 39.21 46.41

Note:

In your solution include the readme with the explanation of how to run the project and get the data.