Skip to content

Convert data from SharedStreet's trip-simulator into Kepler.gl input

Notifications You must be signed in to change notification settings

superextinct/tripper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

  _            _                               
 | |_   _ __  (_)  _ __    _ __     ___   _ __ 
 | __| | '__| | | | '_ \  | '_ \   / _ \ | '__|
 | |_  | |    | | | |_) | | |_) | |  __/ | |   
  \__| |_|    |_| | .__/  | .__/   \___| |_|   
                  |_|     |_|                  

Convert data from SharedStreet's trip-simulator into Kepler.gl input

Installation

Clone the repo and install with npm install

Usage

1. Generate Trips

Generate GPS Temeletry with trip-simulator. For detailed explanation see Use.

trip-simulator \
  --config scooter \
  --pbf nash.osm.pbf \
  --graph nash.osrm \
  --agents 100 \
  --start 1563122921000 \
  --seconds 86400 \
  --traces ./traces.json \
  --probes ./probes.json \
  --changes ./changes.json \
  --trips ./trips.json

2. Convert simulated trips with tripper

Run tripper with trips.json as input file and specify an output filepath:

node tripper --input="./trips.json" --output="./parsed.json"

3. Use with kepler.gl

Upload parsed.json to kepler.gl or use with local instance.

Screenshot

About

Convert data from SharedStreet's trip-simulator into Kepler.gl input

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published