Refactor voice hints into subclasses

This commit is contained in:
Norbert Renner 2021-02-25 10:06:33 +01:00
parent fd0ece0d31
commit e34e6a4cb0
2 changed files with 145 additions and 93 deletions

View file

@ -16,8 +16,8 @@ BR.Gpx = {
let gpxTransform = trkNameTransform;
if (turnInstructionMode > 0) {
const voiceHints = BR.voiceHints(geoJson);
gpxTransform = voiceHints.getGpxTransform(turnInstructionMode, transportMode);
const voiceHints = BR.voiceHints(geoJson, turnInstructionMode, transportMode);
gpxTransform = voiceHints.getGpxTransform();
}
let gpx = togpx(geoJson, {