Skip to content

Commit

Permalink
Use new GpxOptimizer in TravelObfGpxFileReader
Browse files Browse the repository at this point in the history
  • Loading branch information
RZR-UA committed Feb 22, 2025
1 parent c6b2184 commit 266d89b
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import net.osmand.binary.BinaryMapIndexReader;
import net.osmand.binary.HeightDataLoader;
import net.osmand.data.Amenity;
import net.osmand.gpx.GpxOptimizer;
import net.osmand.plus.Version;
import net.osmand.plus.activities.MapActivity;
import net.osmand.plus.base.BaseLoadAsyncTask;
Expand All @@ -49,8 +50,6 @@
import net.osmand.shared.util.KMapAlgorithms;
import net.osmand.util.Algorithms;
import net.osmand.util.MapUtils;
import net.osmand.util.OverlappedSegmentsMergerDS;
import net.osmand.util.OverlappedSegmentsMergerGPT;

import org.apache.commons.logging.Log;

Expand Down Expand Up @@ -183,9 +182,9 @@ private synchronized GpxFile buildGpxFile(@NonNull List<AmenityIndexRepository>
}
gpxFile.setTracks(new ArrayList<>());

// gpxFile.getTracks().add(track); // TODO analyze both DS and GPT methods
gpxFile.getTracks().add(GpxOptimizer.deduplicateAndJoinTrackSegments(track));
// gpxFile.getTracks().add(OverlappedSegmentsMergerDS.mergeSegmentsWithOverlapHandling(track));
gpxFile.getTracks().add(OverlappedSegmentsMergerGPT.mergeSegmentsWithOverlapHandling(track));
// gpxFile.getTracks().add(OverlappedSegmentsMergerGPT.mergeSegmentsWithOverlapHandling(track));

if (!(article instanceof TravelGpx)) {
gpxFile.setRef(article.ref);
Expand Down

0 comments on commit 266d89b

Please sign in to comment.