Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Air Quality JSON Info #71

Open
vicsonic opened this issue May 19, 2016 · 0 comments
Open

Improve Air Quality JSON Info #71

vicsonic opened this issue May 19, 2016 · 0 comments

Comments

@vicsonic
Copy link

Right now the current response from the air quality API is:

{ id: 120, title: "Sistema de Monitoreo Atmosférico de la Ciudad de México", link: "www.calidadaire.df.gob.mx", description: "SEDEMA Calidad del aire", reporte: 15, imagenclima: "clima1_dia", gradosclima: 24, calairuser: "MALA", colairuser: "ff9900", iconairuser: "mala", colairno: "ff9900", calairno: "MALA", colairne: "ff9900", calairne: "MALA", colairce: "ffff00", calairce: "REGULAR", colairso: "ffff00", calairso: "REGULAR", colairse: "ff9900", calairse: "MALA", imgiuvuser: null, caliuvuser: "NECESITA PROTECCIÓN", coliuvuser: "fff300", created_at: "2015-03-05T22:10:26.891Z", updated_at: "2015-03-05T22:10:26.891Z" }

However, data like imgiuvuser (which always returns null in my case) , iconairuser or imagenclima are really useless without the real reference to the image (an URL maybe?). Another big missing data is the UV Index Value, it seems the API is planned to show this data with the image, but again the image is always null.

I think a better JSON response will be:

{ id: 120, title: "Sistema de Monitoreo Atmosférico de la Ciudad de México", link: "www.calidadaire.df.gob.mx", description: "SEDEMA Calidad del aire", reporte: 15, gradosclima: 24, calairuser: "MALA", colairuser: "ff9900", colairno: "ff9900", calairno: "MALA", colairne: "ff9900", calairne: "MALA", colairce: "ffff00", calairce: "REGULAR", colairso: "ffff00", calairso: "REGULAR", colairse: "ff9900", calairse: "MALA", caliuvuser: "NECESITA PROTECCIÓN", coliuvuser: "fff300", valiuvuser: "11", created_at: "2015-03-05T22:10:26.891Z", updated_at: "2015-03-05T22:10:26.891Z" }

Hope you take in consideration this proposal, this API seems to be almost abandoned 😞.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant