geocoder2 1.5.0
geocoder2: ^1.5.0 copied to clipboard
Forward and reverse geocoding is Easy Now.
1.5.0 #
- Dart 3 & Flutter 3 Support: Updated SDK constraint to
">=2.17.0 <4.0.0"andhttpconstraint to">=0.13.4 <2.0.0". (Fixes #18, #19) - Zero Results & Bad State Fix: Fixed fatal
Unhandled Exception: Bad state: No elementwhen Google Geocoding API returns empty results or errors. (Fixes #2, #3, #17, #20) - Structured Exception Handling: Introduced
Geocoder2Exceptionreturning status code (REQUEST_DENIED,OVER_QUERY_LIMIT, etc.) and Google's exacterror_message. (Fixes #1) - Multiple Results Support: Added
getAllDataFromAddressandgetAllDataFromCoordinatesto return all matching locations. (Fixes #9, #15) - Nullable Helpers: Added
getDataFromAddressOrNullandgetDataFromCoordinatesOrNull. - URL Encoding: Switched to
Uri.https()with properly encoded query parameters, preventing malformed URLs when queries contain spaces, symbols, or accents. (Fixes #11) - LocationType Fallback: Safely handle unknown or null
location_typefrom Google API withLocationType.UNKNOWNinstead of throwingtype 'Null' is not a subtype of type 'LocationType'. (Fixes #5, #16) - City Resolution Hierarchy: Improved city extraction prioritizing
locality->sublocality->postal_town->administrative_area_level_2. - Documentation & Compatibility: Added
street_numbergetter onGeoDatafor backward compatibility with README snippets, and updated code examples. (Fixes #6, #7) - Convenience Aliases: Added
getCoordinatesFromAddressandgetAddressFromCoordinates.
1.4.0 #
-
Adding Location Type
-
Read
README.md