gpxToGeoJSON

suspend fun gpxToGeoJSON(gpxXml: String): String?

Converts a GPX XML payload to a GeoJSON FeatureCollection string using the SDK converter.

This does not mutate the map and can be used to prepare data for a GeoJSON source.

Return

The GeoJSON FeatureCollection as a compact JSON string, or null on failure.

Parameters

gpxXml

The GPX file contents as a string.