Skip to content

ICJIA/arrest_explorer

Repository files navigation

Arrests Explorer

This repository contains aggregated Illinois arrest data, and a graphical and programming interface to it.

The interfaces are hosted by Netlify at icjia.illinois.gov/arrestexplorer and icjia.illinois.gov/arrestexplorer/api.

See the documentation site for more about the project and data.

Design

The dataset is stored as a JavaScript Object Notation (JSON) file (src/data.json).

A separate JSON file contains a map of the dataset's variables and their levels (src/levels.json).

These files are loaded into a processor (src/dataview.js), which is used by both the graphical and programming interfaces -- this is the internal interface to the dataset.

The processor includes a query parser which ingests the URL querystring in either context such that icjia.illinois.gov/arrestexplorer/?{querystring} and icjia.illinois.gov/arrestexplorer/api/?{querystring} should result in the same data view.

Graphical User Interface

Built with Node, Vue, Vuetify, and ECharts.

Can be run locally with the Netlify CLI (netlify dev), which handles the publicPath setting and enables the API function (in contrast to using the Vue CLI in this case).

Application Programing Interface

Runs as a lambda function from functions/api.js.

The examples directory has example scripts of the API's use in R (api_example.R) and Python (api_example.py).

About

Distribution of, and interface to, aggregated Illinois arrest data.

Resources

Stars

Watchers

Forks