Closed smellyshovel closed 10 months ago
There's a new polyline package from Placemark:
As highlighted in the readme, it is maintained, it uses [lon, lat] order, it doesn't have any depencencies and it is typed.
Using it would simplify the decoding process from decode(geometry).map((coordinate) => coordinate.reverse()) to decode(geometry).
decode(geometry).map((coordinate) => coordinate.reverse())
decode(geometry)
I'd like to use it in my own codebase but I don't want to use both since Mapbox's package is a dependency of maplibre-gl-directions.
So it'd be great if you would consider switching packages.
Originally posted by @clementmas in https://github.com/maplibre/maplibre-gl-directions/discussions/211
@clementmas would you like me to set you as assignee?
There's a new polyline package from Placemark:
As highlighted in the readme, it is maintained, it uses [lon, lat] order, it doesn't have any depencencies and it is typed.
Using it would simplify the decoding process from
decode(geometry).map((coordinate) => coordinate.reverse())
todecode(geometry)
.I'd like to use it in my own codebase but I don't want to use both since Mapbox's package is a dependency of maplibre-gl-directions.
So it'd be great if you would consider switching packages.
Originally posted by @clementmas in https://github.com/maplibre/maplibre-gl-directions/discussions/211