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.
Libraries
- google_api_services
- googleapi/google_api_status
- googleapi/models/base_response_model
- googleapi/models/geometry_model
- googleapi/models/google_service_data_model
- googleapi/models/lat_lng_model
- googleapi/models/place_details_result_model
- googleapi/models/prediction_model
- googleapi/models/structured_formatting_model
- googleapi/models/sub_values_model
- googleapi/models/view_port_model