MobilityHexVis is a web-based tool for visualizing Origin–Destination flows using H3 indexes. It reads data from a Parquet file and displays movement patterns on a map.
- Node.js (v22.13.0 or higher)
- A flows.parquet file in the
public/datadirectory
Your Parquet file must include the following columns:
| Column | Description | Required? |
|---|---|---|
| lat_O | Origin latitude | Yes |
| lon_O | Origin longitude | Yes |
| lat_D | Destination latitude | Yes |
| lon_D | Destination longitude | Yes |
| group | Integer category representing user type/group | Yes |
| count | Magnitude of the flow | Yes |
| start_hour | Starting hour of the flow | Optional |
| end_hour | Ending hour of the flow | Optional |
-
Install Dependencies
npm install
-
Place your
flows.parquetfile in thepublic/datadirectory, then open the local URL shown in the terminal to view and interact with your data. -
Start the Development Server
npm run dev