You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
polyline --fromGeoJSON and polyline --encode include leading and trailing quotes in the output, as if it were a JSON string, which means that output can't be piped directly back into polyline --decode. I think this is probably a bug, although fixing it would break any applications that expect the quotes. @nerik, as the original author of the CLI, what do you think?
Sorry for the late reply.
This is a bug, I think quotes should just be removed from the encoded polyline output - this is an easy fix. Maybe bump to a new major version?
Any other solution seems unclean to me: keep wrongly outputting quotes, adding some mechanism to detect leading/trailing quotes when using decode /toGeoJSON, but I'm happy to implement that too.
The rounding errors are probably by design but the coordinates are somehow corrupted.
@mapbox/[email protected]
The text was updated successfully, but these errors were encountered: