Restaurant health inspections: interactive map

Ira Koroleva
3 min readJan 20, 2021

Here I want to present an interactive map of restaurants in LA County, where you can check the location and scores of each particular restaurant. Open the link above to see the web page.

When zoomed out, points are grouped into clusters and that helps solve the problem of crowded places where all the markers hide under one another and it’s not really possible to clearly see neither the points nor the places where they are located. That’s why the first thing you are going to see is these circles labeled with the number of points they represent. As you zoom in, the clusters fall apart into smaller ones, and as soon as separate points can be seen, the clusters disappear, and points of restaurants appear on their own.

When separate points appear, they are colored according to their scores from the Health Inspections. I filtered the data so only fresh inspections of 2018–2020 are counted and the events of the past are not playing the role. The data on the source website contains observations till September of 2020.

All the elements on the map are clickable, so you can see more information about each restaurant. The legend is hidden under the button on the left, so when viewed on the mobile, it doesn’t cover the screen.

The menu in the upper part of the page provides information about the data, health inspections grading system, clarification of computations, and a histogram of the distribution of the scores. Also, I gave a link on my static maps on the same subject. All the links open in new tabs, while info is shown in hoverable dropdowns.

It is always interesting to see the best, so I created a simple filter that allows seeing the restaurants with mean scores higher than average, the best 10% of the sample, and an option to go back to the full database.

The data was prepared on R, and the app uses ArcGIS API for Java Script. The creation of this page included HTML markup and CSS styling.

--

--