Want to Simplify a GPX track, which includes not only lat+lon but also timestamps and other properties. After simplification, I want to retain these additional properties (most likely only the timestamp, the others need to be recalculated).
Looking at the documentation: https://phpgeo.marcusjaschen.de/Transformations_and_Processing/Simplifying_a_Polyline.html
How can I create a Polyline to be used by Simplify, which includes not only lat+lon, but additional properties? A la
$polyline->addPoint(new Coordinate($point['lat'], $point['lon']), $gpxDetails);
Alternatively, can you make it possible to retain the original array keys of the Polyline?
(e.g. $simplified->getPoints(): [ 0 => [...], 3 => [...], 9 => [...] ])
PS. the Github example for Simplify does not work, the one in the documentation does.