mainmatter / breethe-server

Air Quality Data for Locations around the World

Home Page:https://breethe.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cache location data

marcoow opened this issue · comments

This is the second step where we if there is data in the database (that is still relatively recent), return that and still load the new data in the background and write it to the database for later requests.

I think the second step for this is to return the measurements for a location in the same response when the location is returned so that the client wouldn't even have to make an additional request.

@marcoow I think it might easier to keep these separate for now while building all the async stuff?

Yes, that can be done separately - just left it here so it doesn't get lost.