FLUTTER ECOSYSTEM

google_maps_utils

Initial version comes with the 3 main Classes. SphericalUtils, MathUtils and PolyUtils, calculating bounds, distances headings and many more.

Latest version
5.0.0
30-day downloads
291
Likes
62
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

A Dart package providing essential math utilities for Google Maps integration, including SphericalUtils for geospatial calculations like distance and bearing, MathUtils for basic mathematical operations, and PolyUtils for polygon and polyline manipulations. Designed to simplify complex geographic computations required in mapping applications, it supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux. The package is lightweight and focused on accuracy for location-based services.

Use cases
  • Calculating distances between map coordinates
  • Determining headings and bearings
  • Working with polygon and polyline geometries
  • Validating geographic bounds
  • Enhancing map overlay logic
  • Building routing and navigation features
Key features
  • Spherical geometry calculations
  • Support for latitude/longitude operations
  • Polygon and polyline utility functions
  • Cross-platform compatibility
  • Lightweight and dependency-free
  • Accurate geospatial math
Suitable for
  • Developers building map-based apps
  • Applications requiring precise distance calculations
  • Routing and geofencing tools
  • Location-aware UI components
  • Flutter projects using Google Maps
  • Geospatial data processing
Considerations
  • Limited to math and geometry utilities
  • No direct map rendering or UI components
  • Requires manual integration with Google Maps SDK
  • Not intended for real-time tracking
  • Best used alongside other mapping packages
  • No built-in error handling for invalid coordinates
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add google_maps_utils

Categories

Source repository

Related projects