The geographic XML path
Read the document. Extract the track or feature data.
KML carries map annotations and styling, while GPX and TCX describe tracks, routes, and activity records. The module’s loaders translate these document shapes into usable JavaScript data.
KML
Map features, placemarks, and overlays
GPX
Tracks, routes, and waypoints
TCX
Fitness activity and training records
Decoder
GeoJSON-oriented document conversion
Detailed guide
Format and loader details
The reference below covers installation, individual format pages, loader entry points, external references, and attribution.
The @loaders.gl/geospatial/kml entry point supports KML and KMZ. Import GPX and TCX loaders from @loaders.gl/geospatial/gpx and @loaders.gl/geospatial/tcx.
KML (Keyhole Markup Language) is an XML-based file format used to display geographic data in an Earth browser such as Google Earth (originally named "Keyhole Earth Viewer"). It can be used with any 2D or 3D maps.
GPX (GPS Exchange Format) is an XML-based file format commonly used by GPS tracking software.
TCX (Training Center XML) is an XML-based file format commonly used by fitness watches or similar GPS tracking software.
All four parsers use the shared @loaders.gl/documents parser and return Arrow
tables by default. KML and KMZ support is described in the KML and KMZ
format page; the GPX
and TCX pages describe the sports-track
formats.
References:
Installation
npm install @loaders.gl/core @loaders.gl/geospatial