Skip to content

feat: Enhance Routes API integration and fix decoding issues#126

Merged
Dammyololade merged 2 commits into
mainfrom
v3.1.0
Sep 20, 2025
Merged

feat: Enhance Routes API integration and fix decoding issues#126
Dammyololade merged 2 commits into
mainfrom
v3.1.0

Conversation

@Dammyololade

Copy link
Copy Markdown
Owner

This commit introduces several improvements and bug fixes related to the Google Routes API integration and polyline decoding.

Key changes:

  • ENHANCED: Added validation for bicycling and walking travel modes to ensure they use RoutingPreference.unspecified as required by the Google Routes API. This prevents potential API errors and ensures correct route calculations.
  • FIXED: Resolved a polyline decoding issue that primarily affected web platforms. The decoding logic has been updated to correctly handle BigInt operations, ensuring accurate coordinate parsing.
  • FIXED: Corrected an issue with decoding intermediate locations in API responses.
  • CHORE: Updated the http package dependency to version ^1.5.0.
  • CHORE: Set publish_to: none in the example app's pubspec.yaml to prevent accidental publishing.
  • TEST: Added a GitHub Actions workflow for automated testing, linting, formatting, and dry-run publishing on pull requests.
  • TEST: Introduced new unit tests for network provider functionality, specifically focusing on header handling in RoutesApiRequest.
  • TEST: Updated integration tests to reflect the routing preference change for walking mode.
  • TEST: Removed old polyline_points_test.dart and widget_test.dart from the example app as they were outdated or redundant.
  • DOCS: Updated CHANGELOG.md with details of these changes.
  • Incremented package version to 3.1.0.

This commit introduces several improvements and bug fixes related to the Google Routes API integration and polyline decoding.

Key changes:
- **ENHANCED**: Added validation for `bicycling` and `walking` travel modes to ensure they use `RoutingPreference.unspecified` as required by the Google Routes API. This prevents potential API errors and ensures correct route calculations.
- **FIXED**: Resolved a polyline decoding issue that primarily affected web platforms. The decoding logic has been updated to correctly handle `BigInt` operations, ensuring accurate coordinate parsing.
- **FIXED**: Corrected an issue with decoding intermediate locations in API responses.
- **CHORE**: Updated the `http` package dependency to version `^1.5.0`.
- **CHORE**: Set `publish_to: none` in the example app's `pubspec.yaml` to prevent accidental publishing.
- **TEST**: Added a GitHub Actions workflow for automated testing, linting, formatting, and dry-run publishing on pull requests.
- **TEST**: Introduced new unit tests for network provider functionality, specifically focusing on header handling in `RoutesApiRequest`.
- **TEST**: Updated integration tests to reflect the routing preference change for walking mode.
- **TEST**: Removed old `polyline_points_test.dart` and `widget_test.dart` from the example app as they were outdated or redundant.
- **DOCS**: Updated CHANGELOG.md with details of these changes.
- Incremented package version to 3.1.0.
@gitguardian

gitguardian Bot commented Sep 20, 2025

Copy link
Copy Markdown

️✅ There are no secrets present in this pull request anymore.

If these secrets were true positive and are still valid, we highly recommend you to revoke them.
While these secrets were previously flagged, we no longer have a reference to the
specific commits where they were detected. Once a secret has been leaked into a git
repository, you should consider it compromised, even if it was deleted immediately.
Find here more information about risks.


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

This commit focuses on improving code style and consistency across the project by applying automated code formatting. Additionally, some redundant newlines and comments have been removed to enhance readability.

Key changes:
- Applied Dart formatter to various files including tests, library code, and example app.
- Removed unnecessary empty lines in multiple files.
- Removed a redundant test file `test/flutter_polyline_points_test.dart` from `.gitignore` as it was already covered by other tests or was a duplicate.
- Minor cleanup of comments and spacing in classes like `PointLatLng`, `PolylineWayPoint`, and API model classes.
@Dammyololade Dammyololade merged commit 6dab537 into main Sep 20, 2025
2 checks passed
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.

1 participant