google_api_services 0.0.1 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
- Autocomplete Api : used for searching places.
- 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.