- Add source gpx files in
data/inputs/reference_track
anddata/inputs/challenger_tracks
folders - Run
npm run node
- Synthesis is logged in the console.
- The gpx file containing all missed points of reference track is added in
data/output
folder
- Run
npm run build
ornpm run build:watch
to bundle javascript files - Launch you local server
- Open
http://localhost:5500
in your web browser
You can create test GPX files and view generated GPX files with https://gpx.studio/l/fr/.
- Details in
.github/workflows/deploy.yml
- Use
webpack --mode=development
to avoid minification only in dev mode - Launch all tests with
npm run test
2 long methods (respectively with orleans-loop & Bordeaux_Paris examples):
- parseGpx chall : 350 ms / 2300 ms
- calculate closest: 7000 ms / 5000 ms
- => Comes from external libs fast-xml-parser & calculateClosest (while loop executed 1_000_000 times)
- Optimize performance by using the hypothesis that points are really close together in
calculateClosest
method - Check timestamps presence before calculating kpis
- Create personalized Error classes
- Get rid of global variables in indexWeb.js ?