google_maps_apis
6.0.0, released 5 weeks ago by dev.lamt.dev
Dart client library for Google Maps Web Services APIs.
What it does
Provides typed wrappers for Google Maps Web Services such as Geocoding, Places (legacy and new), Directions, Distance Matrix, Timezone and Static Maps. Handles HTTP requests, authentication via API key or token, and response parsing.
AI-written summary of version 6.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need server‑side or Flutter access to Google Maps data without embedding a map widget
- You want a single package covering multiple Google Maps APIs with customizable HTTP client
Skip it when
- You need an interactive map UI
- You require offline or on‑device map data
Strengths
- Covers most Google Maps Web Services in one package
- Supports both legacy and new Places APIs
- Allows custom interceptors, headers and proxy base URLs
Weaknesses
- No map rendering widgets, only web service calls
- Requires a valid web API key and may incur usage costs
- Limited to Dart; not a full Flutter UI solution
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 8
import 'package:google_maps_apis/geocoding.dart';
final geocoding = GoogleMapsGeocoding(apiKey: '<API_KEY>');
final response = await geocoding.searchByAddress('1600 Amphitheatre Parkway, Mountain View, CA');
print(response.results.first.formattedAddress);Alternatives
Packages that do the same job and could replace google_maps_apis.
- google_maps_flutter
Provides native map widgets for iOS/Android when UI map is needed
90Compare - geocoding
Lightweight package if you only need geocoding functionality
91Compare - google_maps
Another client for Google Maps services with different API design
75Compare
Works with
Packages commonly used together with google_maps_apis: ones it builds on, ones built on it, and its own family.
- uuidgoogle_maps_apis depends on itGenerates and parses RFC‑4122/9562 UUIDs (v1‑v8) for Dart.
- json_annotationgoogle_maps_apis depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- diogoogle_maps_apis depends on itA powerful HTTP networking package for Dart and Flutter with interceptors and request cancellation.
- retrofitgoogle_maps_apis depends on itDart Dio client generator using source_gen
- map_location_pickerBuilt on google_maps_apisGoogle Maps location picker for Flutter with Places API search and typed addresses.
- places_serviceBuilt on google_maps_apisDart service for Google Places API auto-complete, details, and nearby searches