location_iq 1.1.0
location_iq: ^1.1.0 copied to clipboard
A comprehensive, type-safe Dart client for the LocationIQ API with support for geocoding, reverse geocoding, autocomplete, nearby POI, directions, timezone, and account balance services.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.1.0 - 2025-05-27 #
Added #
- Nearby Points of Interest API - Find restaurants, schools, hospitals, and other POIs
NearbyPOIServicewith specialized methods for different POI types- Support for radius-based search with customizable limits
- Detailed POI information including distance, category, and address
- Directions API - Comprehensive route planning
- Support for driving, walking, and cycling profiles
- Turn-by-turn directions with detailed maneuvers
- Route optimization and waypoint support
- Distance and duration calculations
- Timezone API - Timezone information services
- Current and historical timezone data for any coordinate
- DST (Daylight Saving Time) support and calculations
- UTC offset information and formatting helpers
- Balance API - Account monitoring and usage tracking
- Real-time account balance checking
- Usage percentage calculations
- Sufficient balance validation methods
- Enhanced Documentation
- Comprehensive usage examples for all new services
- Updated README with complete feature overview
- Improved error handling documentation
- Robust Testing
- 89 comprehensive unit tests
- Full mock coverage for all new services
- Type-safe test data and validation
Improved #
- API Key Validation - Enhanced validation in LocationIQClient constructor
- Error Handling - More specific exception types and better error messages
- Type Safety - Fixed coordinate type casting issues across all services
- Parameter Validation - Consistent validation across all service methods
Fixed #
- Type casting issues in existing geocoding and autocomplete services
- Missing required fields in model classes
- Parameter validation edge cases
- Test data consistency issues
1.0.0 - 2025-05-26 #
Added #
- Initial stable release
- Complete LocationIQ API implementation:
- Free-form forward geocoding
- Structured forward geocoding
- Postal code forward geocoding
- Reverse geocoding
- Address autocomplete
- Type-safe API with null safety
- Comprehensive error handling system
- Custom HTTP client support
- Configurable timeouts
- Extensive documentation
- Unit tests
Changed #
- Refactored service architecture for better maintainability
- Improved error handling with specific exception types
- Enhanced request parameter handling