flutter_polyline_points
A flutter package to get polyline points by either passing the coordinates or google encoded polyline string
3.1.0
60K downloads/mo
#1371 most downloaded on pub.dev
Dammyololade/flutter_polyline_points
What this package is like to depend on
Last release 11 months ago
20 Sep 2025
Release timing varies
gaps range from 4 weeks to 2.3 years
Nearly every release is documented
notes for 14 of 14 stable releases
1 version withdrawn
withdrawn after publishing
7 years old
15 releases · first in 2019
1 release in the last 12 months
see the full history below
Release timeline
15 releases · Apr 2019 to Sep 2025Releases
latest 15-
3.1.020 Sep 2025 -
3.0.123 Jul 2025 -
3.0.022 Jul 2025Release notes
Open source →What's Changed
- Added timeout feature to handle slow network responses by @tolgasozbir in #110
- Migrated from Directions API to Route api by @Dammyololade in #115
New Contributors
- @tolgasozbir made their first contribution in #110
Full Changelog: v2.1.0...v3.0.0
Release notes
Open source →🚀 Major Refactor - Simplified and Unified API
Unified PolylinePoints Class
- BREAKING: Simplified API with single
PolylinePointsclass for both APIs - BREAKING: Constructor now requires
apiKeyparameter - NEW: Factory constructors:
PolylinePoints.legacy(),PolylinePoints.enhanced(),PolylinePoints.custom() - ENHANCED: Unified interface supporting both Directions API and Routes API
Enhanced Routes API Integration
- NEW:
RoutesApiRequestmodel with comprehensive parameter support - NEW:
RoutesApiResponsemodel with improved type safety - NEW: Custom body parameters support for advanced use cases
- NEW: Field mask support for response optimization
- NEW: Two-wheeler routing mode support
Improved Request/Response Models
- NEW:
RouteModifiersfor enhanced route customization - NEW: Timing preferences with departure/arrival time support
- NEW: Convenience getters:
durationMinutes,staticDurationMinutes,distanceKm - ENHANCED: Better type safety and null handling
- ENHANCED: Polyline decoding integration with automatic point conversion
Developer Experience
- NEW: Comprehensive test coverage for reliability
- NEW:
convertToLegacyResult()method for API compatibility - NEW: Enhanced error handling and validation
- IMPROVED: Code documentation and examples
- IMPROVED: Better parameter validation and error messages
🔧 Technical Improvements
- ENHANCED: Network utilities with better error handling
- ENHANCED: Polyline decoder with robust error handling
- NEW: Static
decodePolylinemethod for utility usage - IMPROVED: JSON serialization and deserialization
- IMPROVED: Memory efficiency and performance
🛠️ Breaking Changes
- BREAKING:
PolylinePointsconstructor now requiresapiKeyparameter - BREAKING: Removed
googleApiKeyparameter from method calls - BREAKING: Simplified class structure (removed separate V2 classes)
- MIGRATION: Update constructor calls and remove
googleApiKeyfrom method parameters
📚 Migration Support
- MAINTAINED: Full backward compatibility for legacy Directions API
- NEW: Clear migration path from v2.x to v3.0
- NEW: Updated documentation with migration examples
- NEW: Factory constructors for different use cases
-
2.1.002 Jul 2024Release notes
Open source →Breaking change,
getRouteBetweenCoordinatesnow requires aPolylineRequestobjectRelease notes
Open source →- Breaking change,
getRouteBetweenCoordinatesnow requires aPolylineRequestobject - Updated http package
- Bug fixes and general improvements Special thanks to these contributors:
- @tetrix
- @fadimanakilci
- @anixsam
- Breaking change,
-
2.0.125 Jun 2024 withdrawnRelease notes
Open source →What's Changed
- Added travel modes by @tuxbook in #2
- Development by @Dammyololade in #12
- fixed issues with the key passed as travel mode by @Dammyololade in #17
- WayPoints are not added correctly, add optimizeWaypoints option by @EnzoSeason in #25
- Merge pull request #12 from Dammyololade/development by @jtpdev in #15
- Development by @Dammyololade in #27
- Added a LICENSE by @Dammyololade in #28
- way points exception fix by @maheshmnj in #35
- Development by @Dammyololade in #36
- updating dependency http to ^0.13.0 by @hadi20sa in #48
- fixed uri issue in dart:core by @charlesarchibong in #51
- Added support of Null Safety by @bhavin-concetto in #49
- Version 2.0 by @Dammyololade in #57
- Version 2.0 by @Dammyololade in #59
- Development by @Dammyololade in #58
- upgrade http package version by @nnadir35 in #85
- ** Fix Bug :: Poly Lines not drawn properly on Flutter web by @a-k-o-r-e-d-e in #68
- docs: update http version to 1.2.1 by @fadimanakilci in #99
- Fix distance and duration values, basic support for proxy and additional HTTP headers by @twklessor in #93
- Features and code improments by @Dammyololade in #100
New Contributors
- @tuxbook made their first contribution in #2
- @Dammyololade made their first contribution in #12
- @EnzoSeason made their first contribution in #25
- @jtpdev made their first contribution in #15
- @maheshmnj made their first contribution in #35
- @hadi20sa made their first contribution in #48
- @charlesarchibong made their first contribution in #51
- @bhavin-concetto made their first contribution in #49
- @nnadir35 made their first contribution in #85
- @a-k-o-r-e-d-e made their first contribution in #68
- @fadimanakilci made their first contribution in #99
- @twklessor made their first contribution in #93
Full Changelog: https://github.com/Dammyololade/flutter_polyline_points/commits/2.0.1
-
2.0.022 Aug 2023Release notes
Open source →Updated dependencies and added some new functionalities such as:
- Fetching alternative routes
- Optimised algorithm for web Special thanks to this contibutors for landing such huge PRs:
- @nnadir35
- @shkvoretz
-
1.0.016 Apr 2021 -
0.2.615 Mar 2021 -
0.2.429 Sep 2020 -
0.2.324 Aug 2020 -
0.2.210 Jun 2020Release notes
Open source →FIxed issues with incorrect key being passed as travelmode Changed waypoint documentation
-
0.2.112 May 2020Release notes
Open source →Breaking change, the response object has been refined to a more suitable object that contains the status of the api and the error message.
-
0.2.012 May 2020 -
0.1.025 Apr 2019 -
0.0.125 Apr 2019