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

Improve location description

niklaslong opened this issue · comments

Either by computing it on the fly or querying google API.

If we have a mix task for this we can run that with heroku's scheduler feature.

You mean if we need to query the Google API?
What's the advantage of using a mix task?

Ah sorry - meant to comment that on another issue: #23 (comment) This makes no sense here of course 🤦‍♂️

I think we'll have to query the google api if we want consistent and precise display names for the locations?

I think we could do that async when we get a new location (but not wait for the response so that the 2nd visitor of a location is likely to see the updated description).

🤔 yes that would make sense. However, we'd need to keep the identifier (what we're currently displaying) for a location as that's what we're using to query OpenAQ.
We could have a second attr. which would contain the display name (initially identical to the identifier) which we update later with the google location.

yes, no problem introducing a new attribute for the label 👍