3wcircus / DamnThePotHolesBackend

1 stars 0 forks source link

Create a view that combines hit data with CLOSED 311 open pothole tickets #21

Closed Kevin-CodeCrew closed 4 years ago

Kevin-CodeCrew commented 4 years ago

Create a separate view that displays CLOSED 311 pothole tickets with different markers along with pothole hits collect on a date >= to ticket date.

3wcircus commented 4 years ago

This is mostly implemented, but when the geoJSON returned from open 311 is injected into context to be rendered, the rendered EJS template cannot iterate the array of responses for some reason.

For hackathon presentation, I had to capture the 311 API responses, and just add them to an array in the corresponding EJS template (endMap.ejs and openMap.ejs).

This needs to be fixed so live data is used.