-
Notifications
You must be signed in to change notification settings - Fork 2
Description
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 😞.