GeoJSON is a universal web geodata format, GPX is specialized for GPS tracks and routes. GPX is simpler but limited to navigation.
| Criteria | GeoJSON | GPX |
|---|---|---|
| Geometry types | All types | Points, tracks |
| GPS devices | ✗ | ✓ |
| Data attributes | ✓ | ✗ |
| Timestamps | ✗ | ✓ |
| Web compatibility | ✓ | ✗ |
For web maps, storing polygons/lines/points, APIs.
For GPS devices, Strava/Komoot, hiking tracks.