Search by

endurance / route-gpx

endurance

Selected GPX recorded track geometry for immutable Endurance Route revisions

v0.2.0 2026-11-23 21:01 UTC

This package is auto-updated.

Last update: 2026-11-23 21:03:14 UTC


README

Map a selected GPX track or route to Endurance Route content.

composer require endurance/route-gpx

After completely reading the selected object, supply its completed result and prepared points to the mapper, then publish through your Route publisher:

use Endurance\RouteGpx\GpxPathToRoute;

$mapping = new GpxPathToRoute()->map($completedRead, $preparedPoints, $sourceReference);
$route = $publisher->create(
    $routeId, $revisionId, $mapping->metadata, $mapping->properties, $mapping->content,
);
  • Tracks become geometry with separate parts for segment breaks. Routes become ordered via points with unknown connecting geometry. Standalone waypoints stay unattached; an empty path is rejected.
  • Keep the prepared source stable. Mapping is lazy: consume every output stream before publication or accepting the report. Identity, ordering and final counts are checked; the mapper does not manage caller resources or publish content.
  • Elevation retains absence and reported origin. Times/sensors do not become navigation cues or execution time. Source references convey provenance, not ACL.
  • Omission reports have fixed counters/notices. Counts can overlap and describe one conversion, so summing them is not a document-wide loss count.

Route example; track example.

License: MPL-2.0.