Google Mobility Reports show aggregate activity in each country, and how it changes in response to policies aimed at combating COVID-19. However, it is only published as a PDF and the data isn't available in a machine-readable format that could enable more richer analysis.
This is an effort to reverse-engineer the PDFs into vectors and ultimately into time-series data available as a JSON Rest API.
The JSON is available for use at โ
https://pastelsky.github.io/covid-19-mobility-tracker/output/<ISO-COUNTRY-CODE>/mobility.json
Each data element consists of date
and value
(which represents mobility change in percentage)
For eg: India: https://pastelsky.github.io/covid-19-mobility-tracker/output/IN/mobility.json
- Expected error range is ยฑ2%, though errors in activity percentanges should be rare given the methodolgy used to extract data.
- As of now, this only indexes country-level data. State / Province level breakup is yet to be added.
- Data sources will be updated once / day and is incumbent upon google publishing updated reports
- It assumes that the same scale (-80% to +80%) is used in all PDFs and they are structured similarly.
-
Run
yarn install
to install dependencies. -
Install Inkscape
1.0beta2
for your OS, and make sure theinkscape
is available as in your path as a command line utility. You can test this usinginkscape --version
-
Run
yarn build
to begin downloading reports form google, and parsing it into theouput
folder.
All data made available for use is by taken from Google Mobility Reports. This project does not claim any ownership over this data.