a wrapper for the places functionality to improve the usability of it

Overview

Places Service

A service that Wraps the Google places Api through the google_maps_webservice package and provides an easy interface to work with and handle in your code.

How To use

Initialise

To start off you have to call initialise an pass in your api key

   _placesService.initialize(
      apiKey: 'PUT_YOUR_KEY_HERE',
    );

If you're using the setup recommended by FilledStacks this can be done in the StartUpViewModel.

Get Automcomplete Suggestions

When this is complete you can get your Suggestions for an address using the getAutoComplete function.

final autoCompleteSuggestions = await _placesService.getAutoComplete('cape town');

That will return a list of auto complete suggestions to you.

Get Places Details

Once you have the places id you want to get you can make a request to getPlaceDetails to get all the details google has available for that place.

final placeDetails = await _placesService.getPlaceDetails('ID_FROM_AUTO_COMPLETE');
You might also like...

Google places picker plugin for flutter. Opens up the google places picker on ios and android returning the chosen place back to the flutter app.

flutter_places_dialog Shows a places picker dialog in ios and android, returning the data in the places picker to the app. Getting Started Generate yo

Dec 6, 2022

This app contain two pages. In first page user will see the list of places to visit and in other page detail of places will be shown. Apart from that there is route transition, hero and staggered animation while navigating to the detail page.

This app contain two pages. In first page user will see the list of places to visit and in other page detail of places will be shown. Apart from that there is route transition, hero and staggered animation while navigating to the detail page.

travell_app A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if t

Dec 3, 2022

Google Places - Google places autocomplete widgets for flutter.

Google Places - Google places autocomplete widgets for flutter.

flutter_google_places Google places autocomplete widgets for flutter. Getting Started For help getting started with Flutter, view our online documenta

Jan 5, 2023

Searchhelperexample - SearchHelper - code wrapper for searching functionality

Searchhelperexample - SearchHelper - code wrapper for searching functionality

Overview SearchHelper is code wrapper for searching functionality developed by D

Dec 19, 2022

A collection of Animations that aims to improve the user experience for your next flutter project.

A collection of Animations that aims to improve the user experience for your next flutter project.

Flutter Animations A collection of Animations that aims to improve the user experience for your next flutter project. Built by Ezaldeen SAHB I hope th

Dec 24, 2022

AI Library to create efficient Artificial Neural Networks. Computation uses SIMD (Single Instruction Multiple Data) to improve performance.

eneural_net eNeural.net / Dart is an AI Library for efficient Artificial Neural Networks. The library is portable (native, JS/Web, Flutter) and the co

Dec 29, 2022

A collection of Animations that aims to improve the user experience for your next flutter project.

A collection of Animations that aims to improve the user experience for your next flutter project.

A collection of Animations that aims to improve the user experience for your next flutter project.

Dec 24, 2022

😀 improve your productivity and long-term happiness in just 21 days.

😀 improve your productivity and long-term happiness in just 21 days.

Quick Links The Well app is available for download! 🥳 🚀 iOS/macOS: Search for "well: reboot your mindset" on the iOS app store. Web: Visit https://w

Dec 28, 2022

A Flutter Word generator App to improve English vocabulary

A Flutter Word generator App to improve English vocabulary

Word generator App to improve English vocabulary: Add English words you don't know and their translation, then you need to answer what is the translat

Dec 12, 2021

Software analytics tool that helps developers analyse and improve software quality.

Software analytics tool that helps developers analyse and improve software quality.

Dart Code Metrics Note: you can find the full documentation on the website Configuration | Rules | Metrics | Anti-patterns Dart Code Metrics is a stat

Dec 26, 2022

Numbers is simple game to improve problem solving skills and it is built in Flutter Framework

Numbers is simple game to improve problem solving skills and it is built in Flutter Framework

Numbers - Flutter Game Numbers is a simple game built in Flutter Framework and is purely based on numbers to improve problem solving skills. Screensho

Oct 21, 2022

Orkut app - A project developed in Flutter to improve UI development

Orkut app - A project developed in Flutter to improve UI development

Orkut App Projeto Orkut App - Flutter Este é um projeto desenvolvido em Flutter

Feb 9, 2022

Tan Tien is an e-commerse mobile application, using Neumorphic design in UI to improve UX

Tan Tien is an e-commerse mobile application, using Neumorphic design in UI to improve UX

Tân Tiến (新進)Shop App Tan Tien is an e-commerse mobile application, using Neumorphic design in UI to improve UX. About the app name: 'Tân Tiến' (新進) i

Nov 11, 2022

A BottomNavigationBar for nested routing and advanced features to improve user experience.

A BottomNavigationBar for nested routing and advanced features to improve user experience.

navbar_router 0.1.2 This is the ultimate BottomNavigionBar created by considering the advanced use cases in real world applications. This widget handl

Dec 28, 2022

Know where to go safely. Describe your experiences and rate places.

Know where to go safely. Describe your experiences and rate places.

Is It Safe? 📌 Índice Sobre Showcase Features Como eu posso rodar o projeto? Ferramentas Instalação Run Suporte Como posso contribuir? Autores Info 🤔

Sep 19, 2022

Tour guide App UI in Flutter Consist of Three Pages. First Screen is Splash Screen , Second is welcome screen routing to third Screen and Third screen consist of details , navigation, places, and responsive UI.

Tour guide App UI in Flutter Consist of Three Pages. First Screen is Splash Screen , Second is welcome screen routing to third Screen and Third screen consist of details , navigation, places, and responsive UI.

Tour Guide // Tourism App Ui in Flutter. Tour Guid App Ui in Flutter. Visit Website Features State Management Navigation Bar Responsive Design Hybrid

Nov 14, 2022

This is a Flutter package that uses the Google Maps API to make a TextField that tries to autocomplete places as the user types, with simple smooth animations, making a nice UI and UX.

This is a Flutter package that uses the Google Maps API to make a TextField that tries to autocomplete places as the user types, with simple smooth animations, making a nice UI and UX.

search_map_place This is a Flutter package that uses the Google Maps API to make a TextField that tries to autocomplete places as the user types, with

Oct 22, 2022

Flutter Google Places Autocomplete Widgets

Flutter Google Places Autocomplete Widgets

google_maps_webservice General Information This is the Dart Library for Google Maps Webservices. You can find the Google Maps Platform Documentation h

Dec 29, 2022
Comments
  • feat: add southwest and north east lat lng

    feat: add southwest and north east lat lng

    Usecase

    This is useful to adjust the zoom for the place obtained. We can do this as follows.

      double getZoom(BuildContext context, double southwest, double northeast) {
        const width = 256;
        double angle = northeast - southwest;
        if (angle < 0) {
          angle += 360;
        }
        final zoom =
            log(MediaQuery.of(context).size.width * 360 / angle / width) / ln2;
        return zoom;
      }
    
    opened by saileshbro 0
  • Throw more detailed exceptions

    Throw more detailed exceptions

    Problem

    At the moment when the request fails to get the information from google places API we return a generic message.

    Solution

    Throw a custom PlacesApiException where we print out that generic message and provide the full details for the exception returned from the google places sdk if there is one.

    enhancement 
    opened by FilledStacks 0
Owner
Dane Mackier
Full-Stack applications developer focussed on complete Mobile products.
Dane Mackier
Tan Tien is an e-commerse mobile application, using Neumorphic design in UI to improve UX

Tân Tiến (新進)Shop App Tan Tien is an e-commerse mobile application, using Neumorphic design in UI to improve UX. About the app name: 'Tân Tiến' (新進) i

MinhHo 5 Nov 11, 2022
Discover places & geography around Cambodia 📝

Cambodia Geography Getting Started In this project, we use flutter 2.2.3. If you have different version, you should consider install FVM. Prerequisite

Institute of Digital Technology 13 Oct 20, 2022
A modern application to track your visitors at public places

VisitorTracker A modern application to track your visitors at public places! Exp

Behruz Hurramov 0 Dec 25, 2021
Integrated Docker with Mobile App using python API and Can perform almost all functionality of Docker

tech_app A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this

Keshav Sharma 0 Oct 29, 2021
Notefy is a note-taking web app built with ReactJS and Django, with a subtle yet attractive UI and great functionality!

Notefy Notefy is a note-taking web app built with ReactJS and Django, with a subtle yet attractive UI and great functionality! Demo Here is the websit

Servatom 23 Nov 20, 2022
A Package providing Core functionality/Template to start off a Clean Architecture based project

A Package providing Core functionality/Template to start off a Clean Architecture based project Features Provides with APIResult & UseCaseResult model

null 1 Dec 25, 2021
Web3 Ethereum, Etherjs and Wallet Connect wrapper for Flutter Web.

flutter_web3 This is a fork of flutter_web3_provider. Be sure to check out the original package. Introduction flutter_web3 v2 is full Dart class and f

yoisha 105 Jan 2, 2023
Flutter Wrapper for Multiavatar

random_avatar Flutter Wrapper for Multiavatar Multiavatar is a multicultural avatar maker. Random Avatar represents people from multiple races, multip

Samuel Annin Yeboah 20 Dec 22, 2022
KeepReading - a Mobile (Android/IOS) Cross-Platform App wrapper for the Keep Talking and Nobody Explodes manual

KeepReading is a Mobile (Android/IOS) Cross-Platform App wrapper for the Keep Talking and Nobody Explodes manual. It helps you to jump directly to a specific section of the manual with just a tap ?? !

Nicolò Vescera 2 May 16, 2022