endurance / route-kml
KML path interpretation for immutable Route revisions
v0.2.0
2026-11-23 21:01 UTC
Requires
- php: ^8.5
- endurance/foundation: ^0.2.0
- endurance/geo: ^0.2.0
- endurance/kml: ^0.2.0
- endurance/route: ^0.2.0
Requires (Dev)
- phpunit/phpunit: ^12.5
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-23 21:05:07 UTC
README
Map selected KML geometry to Endurance Route content for PHP 8.5.
composer require endurance/route-kml
Supply a completed PathReader result and a stable prepared point stream:
use Endurance\RouteKml\KmlGeometryToRoute; $mapping = new KmlGeometryToRoute()->map($completedRead, $preparedPoints, $sourceReference); $route = $publisher->create( $routeId, $revisionId, $mapping->metadata, $mapping->properties, $mapping->content, );
KmlGeometryToRouteacceptskml.v2, preserving LineStrings, GX tracks and missing-position breaks as separate parts. Point-only or entirely unlocated content cannot create a Route. No interpolation or proximity attachment occurs.KmlPathToRouteretains its separatekml.v1interpretation for LineStrings. The source locator and interpretation version must match the chosen mapper.- Only absolute altitude becomes reported elevation. Relative/clamped values remain omissions; no terrain lookup or invented vertical datum is applied.
- Mapping is lazy. Fully consume all content before publication or accepting the bounded report. Prepared identity/order/counts are checked. The caller owns resources, authorization and publication; a source reference grants no access.
License: MPL-2.0.