The GPXLoader
parses GPX files into GeoJSON. From Wikipedia:
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 (and optionally elevation, time, and other information) is stored in tags and can be interchanged between GPS devices and software.
Loader | Characteristic |
---|---|
File Extension | .gpx |
File Type | Text |
File Format | GPX |
Data Format | GIS |
Decoder Type | Synchronous |
Worker Thread Support | No |
Streaming Support | No |
import {GPXLoader} from '@loaders.gl/kml';
import {load} from '@loaders.gl/core';
const data = await load(url, GPXLoader, options);
Option | Type | Default | Description |
---|---|---|---|
gis.format | string | 'geojson' | Can be set to 'raw' , 'geojson' or 'binary' . |
@loaders.gl/polyfills
for the DOMParser
polyfill.