flutter_polyline_points 3.1.0
flutter_polyline_points: ^3.1.0 copied to clipboard
A flutter package to get polyline points by either passing the coordinates or google encoded polyline string
3.1.0 - 2025-09-20 #
3.0.1 - 2025-07-23 #
- NEW: Add support for custom headers in Routes API requests.
3.0.0 - 2025-07-22 #
π Major Refactor - Simplified and Unified API #
Unified PolylinePoints Class
- BREAKING: Simplified API with single
PolylinePoints
class for both APIs - BREAKING: Constructor now requires
apiKey
parameter - NEW: Factory constructors:
PolylinePoints.legacy()
,PolylinePoints.enhanced()
,PolylinePoints.custom()
- ENHANCED: Unified interface supporting both Directions API and Routes API
Enhanced Routes API Integration
- NEW:
RoutesApiRequest
model with comprehensive parameter support - NEW:
RoutesApiResponse
model 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:
RouteModifiers
for 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
decodePolyline
method for utility usage - IMPROVED: JSON serialization and deserialization
- IMPROVED: Memory efficiency and performance
π οΈ Breaking Changes #
- BREAKING:
PolylinePoints
constructor now requiresapiKey
parameter - BREAKING: Removed
googleApiKey
parameter from method calls - BREAKING: Simplified class structure (removed separate V2 classes)
- MIGRATION: Update constructor calls and remove
googleApiKey
from 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.0 02-06-2024 #
- Breaking change,
getRouteBetweenCoordinates
now requires aPolylineRequest
object - Updated http package
- Bug fixes and general improvements Special thanks to these contributors:
- @tetrix
- @fadimanakilci
- @anixsam
2.0.0 22-08-2023 #
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.0 16-04-2021 #
Released a null safety version
0.2.6 07-03-2021 #
updated http package
0.2.5 07-03-2021 #
updating http dependency to ^0.13.0
0.2.4 29-09-2020 #
Fixed issues with waypoint
0.2.3 24-08-2020 #
Fixed a bug with adding waypoint to request thanks to EnzoSeason
0.2.2 10-06-2020 #
FIxed issues with incorrect key being passed as travelmode Changed waypoint documentation
0.2.1 05-04-2020. #
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.1.0 25-04-2019. #
update readme.
0.0.1 25-04-2019. #
initial release.