Skip to content
This repository has been archived by the owner on Nov 21, 2021. It is now read-only.

Latest commit

 

History

History

paris

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Paris

../results/SD/paris.png

Sadly I started my project with NodeJS :(.

Cook Recipe

osmconvert ile-de-france-latest.osm.pbf -B=FR-PARIS.poly -o=Paris.pbf
  • Launched Paris.osm with Graphhopper
  • installed sync-request, node-osm-stream, lodash and proj4js via NPM :
npm install sync-request node-osm-stream lodash proj4js
  • then node read.js (it took me 3 days)
  • refactored the data using refactor.js 😓
  • compile & run main.cpp
g++ -o draw -std=c++11 -I/usr/local/include/cairo -L/usr/local/lib/ -lcairo main.cpp
chmod +x draw
./draw

Settings

  • homeLat & homeLon parameters inside read/read.js
  • *.json data filepath inside main.cpp