Skip to content

Conversation

@regeter
Copy link
Contributor

@regeter regeter commented Jan 15, 2026

Implements a centralized polyline decoding utility that supports multiple formats commonly used in Fleet Engine and Google Maps. It refactors the existing ad-hoc decoding logic into a unified service that handles S2, Google Maps Encoded, Google Maps Unencoded (Plain Text), and JSON coordinate formats.

Key Details:
Sequential Decoding Strategy: Implemented a priority-based decoding flow (S2 -> GMP Encoded -> JSON/Plain Text) to maximize detection accuracy.
Testing: Added PolylineUtils.test.js with consistent test data (Googleplex, NASA Ames, Shoreline Park) verifying all four formats with high precision.

@regeter regeter merged commit 3046c41 into googlemaps:main Jan 15, 2026
8 checks passed
github-actions bot pushed a commit that referenced this pull request Jan 15, 2026
* feat: implementation of polyline decoding for S2, GMP Encoded, and JSON formats

* build: demo file for internal as well 3046c41
@github-actions
Copy link
Contributor

🎉 This PR is included in version 1.25.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant