Skip to content

Add polyline encoding module#305

Open
Fabi755 wants to merge 1 commit intomaplibre:mainfrom
Fabi755:feature/polyline-encoding
Open

Add polyline encoding module#305
Fabi755 wants to merge 1 commit intomaplibre:mainfrom
Fabi755:feature/polyline-encoding

Conversation

@Fabi755
Copy link
Copy Markdown
Collaborator

@Fabi755 Fabi755 commented Apr 1, 2026

Description

As discussed this add util to encode & decode align the Polyline Encoding.

I'm not sure if a list of Position is the best choice for the API, but in the end this is the lowest input and output of this algorithm.

I create this changes test-driven. First the tests & API interfaces (handwritten), followed by the logic (AI generated). To be honest I'm not deep enough in the kotlin math functions for that 😅 but the algorithm is well documented already implemented in other libraries so I think it will work.

Let me know if you see any issues or have other ideas :-)

Fixes #303.

Checklist

  • Confirm your changes do not include backports from Mapbox projects
    (unless with compliant license) - if you are not sure about this, please
    ask!
  • Briefly describe the changes in this PR.
  • Link to related issues.
  • Write tests for all new functionality.
  • Disclose if and to what extent an AI coding assistant was used.
  • Run ./gradlew updateLegacyAbi to dump the public API for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding polyline encoding/decoding ?

1 participant