Skip to content
pubscout

google_maps_apis

6.0.0, released 5 weeks ago by dev.lamt.dev

Dart client library for Google Maps Web Services APIs.

WASM-ready
$ flutter pub add google_maps_apis
Source repository

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.

Works with

Packages commonly used together with google_maps_apis: ones it builds on, ones built on it, and its own family.