loaders.gl support
| Type | API |
|---|---|
| Loader | GPXLoader |
The GPX document
A small vocabulary for movement data.
GPX keeps the model intentionally simple: named points, ordered tracks, and routes made from points. Extensions can carry useful metadata such as elevation, time, and heart rate.
Waypoints
Named places or points of interest
Tracks
Recorded sequences of positions
Routes
Planned sequences of route points
Extensions
Activity and device-specific metadata
Detailed guide
GPX format details
The notes below introduce the GPX schema and its role as an interchange format.
GPX, or GPS Exchange Format, is an XML schema designed as a common GPS data format for software applications. It can be used to describe waypoints, tracks, and routes. Location data, elevation, time, and application-specific extensions are stored in XML elements and can be exchanged between GPS devices and software.
Characteristics
| Characteristic | Value |
|---|---|
| File extension | .gpx |
| MIME type | application/gpx+xml |
| Container | XML document |
| Coordinate reference system | WGS84 longitude/latitude (OGC:CRS84) |
Feature matrix
| Feature | Support | Output |
|---|---|---|
Waypoints (wpt) | ✅ Supported | Point features |
Routes (rte) | ✅ Supported | LineString features |
Tracks (trk) and segments (trkseg) | ✅ Supported | LineString or MultiLineString features |
| Elevation and timestamps | ✅ Supported | Z coordinates and coordinate properties |
| Common Garmin extensions | ✅ Supported | Normalized feature or coordinate properties |
| Arrow, GeoJSON, and object-row tables | ✅ Supported | Arrow is the default |
| Binary geometry output | ✅ Supported | Select gpx.shape: 'binary-geometry' |