google_api_services 0.0.1 copy "google_api_services: ^0.0.1" to clipboard
google_api_services: ^0.0.1 copied to clipboard

A helper function to use google api services

Package provides you with using google api services by only providing api key.

Features #

We support two api functions for now, which has further scope of development and any inputs are welcomed

  1. Autocomplete Api : used for searching places.
  2. Place Details Api : used to get place details using placeId.

Getting started #

You need google api key and enabling geocoding and geo place api from google cloud. After enabling use api key to initialize our package using , -> GoogleApiServices.initialize(

Now Enjoy functions directly.

Usage #

Usage of auto complete api : GoogleApiServices.instance.autoComplete(query).then((base) { base.data?.predictions?.forEach((data) {}); });

Usage of place detail api : GoogleApiServices.instance.details(placeId).then((data) { debugPrint("Place Detail: ${data.data?.result?.toJson()}"); });

Additional information #

Since project has lot more scope, we would like to welcome more community input to help community. Thank you.

2
likes
110
pub points
32%
popularity

Publisher

unverified uploader

A helper function to use google api services

Documentation

API reference

License

MIT (license)

Dependencies

flutter, http

More

Packages that depend on google_api_services