Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rely on Turf to encode and decode GeoJSON LineStrings #638

Merged
merged 1 commit into from
Dec 21, 2021

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Dec 20, 2021

Removed PolyLineString’s custom LineString encoding and decoding implementation in favor of Turf’s built-in implementation. This fixes an issue where PolyLineString encoded a GeoJSON LineString that was invalid because it was missing the type property. (As a result, GeoJSON-formatted Directions API responses were becoming malformed when round-tripped back to JSON.) It will also take advantage of the foreign member support added in mapbox/turf-swift#175 once that gets released.

/cc @mapbox/navigation-ios

@1ec5 1ec5 added the bug label Dec 20, 2021
@1ec5 1ec5 requested a review from a team December 20, 2021 21:22
@1ec5 1ec5 self-assigned this Dec 20, 2021
@1ec5 1ec5 added this to the v2.2-rc milestone Dec 20, 2021
@1ec5 1ec5 force-pushed the 1ec5-polylinestring-encode-type branch from 40ee15f to 3c6bcc3 Compare December 20, 2021 21:25
@1ec5 1ec5 added the op-ex Refactoring, Tech Debt or any other operational excellence work. label Dec 20, 2021
@1ec5 1ec5 merged commit a3ed46c into main Dec 21, 2021
@1ec5 1ec5 deleted the 1ec5-polylinestring-encode-type branch December 21, 2021 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug op-ex Refactoring, Tech Debt or any other operational excellence work.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants