google_place 0.1.0 copy "google_place: ^0.1.0" to clipboard
google_place: ^0.1.0 copied to clipboard

discontinued
outdated

A new Flutter package for handle google place api that place search and details and photos and autocomplete and query autocomplete requests are available

google_place #

A Flutter plugin that provides a Google Place API.

Preview #

The Places API is a service that returns information about places using HTTP requests. Places are defined within this API as establishments, geographic locations, or prominent points of interest.

The following place requests are available:

  1. Place Search returns a list of places based on a user's location or search string.
  2. Place Details returns more detailed information about a specific place, including user reviews.
  3. Place Photos provides access to the millions of place-related photos stored in Google's Place database.
  4. Place Autocomplete automatically fills in the name and/or address of a place as users type.
  5. Query Autocomplete provides a query prediction service for text-based geographic searches, returning suggested queries as users type.

Usage #

To use this plugin, add google_place as a dependency in your pubspec.yaml file.

Getting Started #

Sample Usage #

  • Place Autocomplete
var googlePlace = GooglePlace("Your-Key");
var risult = await googlePlace.autocomplete.get("1600 Amphitheatre");
  • Place Query Autocomplete
var googlePlace = GooglePlace("Your-Key");
var risult = await googlePlace.queryAutocomplete.get("pizza near sydne");
  • Place Photos
var googlePlace = GooglePlace("Your-Key");
Uint8List result = await googlePlace.photos.get(
 "CnRtAAAATLZNl354RwP_9UKbQ_5Psy40texXePv4oAlgP4qNEkdIrkyse7rPXYGd9D_Uj1rVsQdWT4oRz4QrYAJNpFX7rzqqMlZw2h2E2y5IKMUZ7ouD_SlcHxYq1yL4KbKUv3qtWgTK0A6QbGh87GB3sscrHRIQiG2RrmU_jF4tENr9wGS_YxoUSSDrYjWmrNfeEHSGSc3FyhNLlBU",
        maxWidth: 400);
  • Place Details
var googlePlace = GooglePlace("Your-Key");
Uint8List result = await googlePlace.details.get("ChIJN1t_tDeuEmsRUsoyG83frY4",
        fields: "name,rating,formatted_phone_number")
  • Place Search

    • Find Place

      var googlePlace = GooglePlace("Your-Key");
      var result = await googlePlace.search.getFindPlace(
          "Museum of Contemporary Art Australia", InputType.TextQuery);
      
    • Nearby Search

      var googlePlace = GooglePlace("Your-Key");
      var result = await googlePlace.search.getNearBySearch(
          Location(lat: -33.8670522, lng: 151.1957362), 1500,
          type: "restaurant", keyword: "cruise");
      
    • Text Search

      var googlePlace = GooglePlace("Your-Key");
      var result = await googlePlace.search.search.getTextSearch("restaurants in Sydney");
      
230
likes
0
pub points
97%
popularity

Publisher

unverified uploader

A new Flutter package for handle google place api that place search and details and photos and autocomplete and query autocomplete requests are available

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, http

More

Packages that depend on google_place