This small program parses a Records.json
file belonging to Location History, which is exported from a Google Takeout. It breaks down and categorises years worth of location history data into manageable csv files that can then be used in other programs, such as, Excel.
The following is an example of the output folder structure to expect after parsing a Records.json
file:
├── DevicesLocationHistoryCSVs
│ ├── {deviceTag1}
│ │ ├── 2023.csv
│ │ ├── 2022.csv
│ ├── {deviceTag2}
│ │ ├── 2021.csv
This is a portable binary (.exe) meaning it does not come with any installation or extra steps.
- Download the release build.
- Run in terminal:
./rawloc.exe <path_to_records_file>
Running the program will generate a DevicesLocationHistoryCSVs
directory at the same location where the Records.json
file is located.
This section is intended as a guide for people who want to locally build the program and/or contribute to the source code.
C++ was chosen as it is seems favourable when it comes to processing large data files. Furthermore, a binary can be generated that can be easily distributed across systems that require the functionality, specifically for Windows. Interacting with JSON files does not come natively out of the box, therefore, the following open-source external dependency is used: yyjson.
No package manager has been used as it introduces more complexity to the codebase and the program does not rely on many external dependencies.
- Clone the yyjson repository and save to your external dependencies folder.
- Compile a release of the repository.
- Add the path of the repository to the
Additional Include Directories
underRawloc > Properties > C/C++ > General
. - Add the path to the
yyjson.lib
to theAdditional Dependencies
underRawloc > Properties > Linker > Input
.
You should be good to go now to build Rawloc
locally.