google_search_api 0.0.3 copy "google_search_api: ^0.0.3" to clipboard
google_search_api: ^0.0.3 copied to clipboard

This package implement Google Search API with only dart dependency(without flutter).

This package implement Google Search API with only dart dependency(without flutter). Before working with the plugin, be sure to read Before you begin and create an API key in Google Developer Console.

Features #

Search google places using google service

Getting started #

Create an API key in Google Developer Console.

with dart #

$ dart pub add google_search_api

with flutter #

$ flutter pub add google_search_api

Usage #

import 'package:google_search_api/google_search_api.dart';

try {
      GoogleSearchParametersModle googleSearchParametersModle = GoogleSearchParametersModle('cruise', '-33.8670522,151.1957362', 'GOOGLE_API_KEY', 1500, 'restaurant' );
      dynamic places = await getNearbyPlaces(googleSearchParametersModle);
      if (kDebugMode) {
        print(places.results);
      }
    } catch (e) {
      if (kDebugMode) {
        print(e);
      }
    }
2
likes
110
points
30
downloads

Publisher

unverified uploader

Weekly Downloads

This package implement Google Search API with only dart dependency(without flutter).

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

dio, flutter

More

Packages that depend on google_search_api