OBS-FACE-Visualization visualizes the output of the OpenBikeSensor FACE script in a map overlay style.
The visualization is implemented as two static HTMl/JavaScript websites, requiring a simple HTTP server and a recent web browser on client side.
Clone the script repository
git clone https://github.com/openbikesensor/OpenBikeSensor-Scripts.git
and go to the visualization subdirectory
cd OpenBikeSensor-Scripts/visualization
.
Create a subdirectory json
and copy the GeoJson files resulting from running OpenBikeSensor FACE script (by default ./data/visualization/*.json
) there.
The directory containing measurements.html
and roads.html
must be served using an HTTP server.
For local, non-public use, a simple one - e.g. SimpleHTTPServer is sufficient.
Connect to the HTTP server, and open measurements.html
or roads.html
.
Open measurements.html
to shows all confirmed measurements.
Open roads.html
to shows all confirmed measurements consolidates to ways, i.e. road segments, also separated by direction.
- The maps opens, but no roads/measurements are shown.
- Opening the files directly from the file system will fail with modern browsers due to security restrictions.
- Make sure you places
measurements.json
androads.json
in the./json
subdirectory.