google_maps_webservice 0.0.10

  • Installing
  • Versions
  • 94


Build Status Coverage Status

Google Maps Web Services API



import "package:google_maps_webservice/geocoding.dart";

final geocoding = new GoogleMapsGeocoding(apiKey: "<API_KEY>");
final geocoding = new GoogleMapsGeocoding(apiKey: "<API_KEY>", httpClient: new BrowserClient());
final geocoding = new GoogleMapsGeocoding(baseUrl: "");

GeocodingResponse response = await geocoding.searchByAddress("1600 Amphitheatre Parkway, Mountain View, CA");


import "package:google_maps_webservice/places.dart";

final places = new GoogleMapsPlaces(apiKey: "<API_KEY>");
final places = new GoogleMapsPlaces(apiKey: "<API_KEY>", httpClient: new BrowserClient());
final places = new GoogleMapsPlaces(baseUrl: "");

PlacesSearchResponse reponse = await places.searchNearbyWithRadius(new Location(31.0424, 42.421), 500);
PlacesSearchResponse reponse = await places.searchNearbyWithRankby(new Location(31.0424, 42.421), "distance");
PlacesSearchResponse reponse = await places.searchByText("123 Main Street");

PlacesDetailsResponse response = await places.getDetailsByPlaceId("PLACE_ID");
PlacesDetailsResponse response = await places.getDetailsByReference("REF");


In case of using a proxy the baseUrl can be set. The apiKey is not required in case the proxy sets it. (Not storing the apiKey in the app is good practice)

Feature Requests and Issues

Please file feature requests and bugs at the issue tracker.



  • introduced configurable base url
  • changed apiKey to an optional named parameter
  • added session token parameter for autocomplete search


  • fix partial match type in geocoding


  • fix 'Int' is not double


  • fix opening hours


  • update dart sdk


  • bug fix


  • support Dart 2


  • parse Geometry field in place details response


  • Directions API


  • Geocoding API
  • Places API

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  google_maps_webservice: ^0.0.10

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:google_maps_webservice/directions.dart';
import 'package:google_maps_webservice/geocoding.dart';
import 'package:google_maps_webservice/places.dart';
Version Uploaded Documentation Archive
0.0.10 Nov 29, 2018 Go to the documentation of google_maps_webservice 0.0.10 Download google_maps_webservice 0.0.10 archive
0.0.9 Sep 29, 2018 Go to the documentation of google_maps_webservice 0.0.9 Download google_maps_webservice 0.0.9 archive
0.0.8 Sep 29, 2018 Go to the documentation of google_maps_webservice 0.0.8 Download google_maps_webservice 0.0.8 archive
0.0.7 Aug 29, 2018 Go to the documentation of google_maps_webservice 0.0.7 Download google_maps_webservice 0.0.7 archive
0.0.6 Aug 1, 2018 Go to the documentation of google_maps_webservice 0.0.6 Download google_maps_webservice 0.0.6 archive
0.0.5 May 26, 2018 Go to the documentation of google_maps_webservice 0.0.5 Download google_maps_webservice 0.0.5 archive
0.0.4 Apr 12, 2018 Go to the documentation of google_maps_webservice 0.0.4 Download google_maps_webservice 0.0.4 archive
0.0.3 Dec 21, 2017 Go to the documentation of google_maps_webservice 0.0.3 Download google_maps_webservice 0.0.3 archive
0.0.2 Sep 17, 2017 Go to the documentation of google_maps_webservice 0.0.2 Download google_maps_webservice 0.0.2 archive
0.0.1 Sep 6, 2017 Go to the documentation of google_maps_webservice 0.0.1 Download google_maps_webservice 0.0.1 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Dec 5, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.7


Detected platforms: Flutter, web, other

No platform restriction found in libraries.

Maintenance suggestions

Package is pre-v0.1 release. (-10 points)

While there is nothing inherently wrong with versions of 0.0.*, it usually means that the author is still experimenting with the general direction of the API.

Maintain an example.

None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use google_maps_webservice.dart. Packages with multiple examples should use example/


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.20.1 <3.0.0
http >=0.11.0 <1.0.0 0.12.0
meta ^1.1.0 1.1.6
Transitive dependencies
async 2.0.8
charcode 1.1.2
collection 1.14.11
http_parser 3.1.3
path 1.6.2
source_span 1.4.1
string_scanner 1.0.4
typed_data 1.1.6
Dev dependencies
test ^1.3.0