All Projects β†’ ErrorPro β†’ React Google Autocomplete

ErrorPro / React Google Autocomplete

Licence: mit
React component for google autocomplete.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Google Autocomplete

Photo Exif Toolkit
Photo Exif Toolkit Android app entirely written using Kotlin language
Stars: ✭ 37 (-71.76%)
Mutual labels:  google-api
Expenses
πŸ’°Expense tracker using Google Sheets πŸ“‰ as a storage written in React
Stars: ✭ 1,105 (+743.51%)
Mutual labels:  google-api
Google Api Nodejs Client
Google's officially supported Node.js client library for accessing Google APIs. Support for authorization and authentication with OAuth 2.0, API Keys and JWT (Service Tokens) is included.
Stars: ✭ 9,722 (+7321.37%)
Mutual labels:  google-api
Figma To Google Slides
Convert Figma frames into a Google Slides presentation 🍭
Stars: ✭ 385 (+193.89%)
Mutual labels:  google-api
Gkeepapi
An unofficial client for the Google Keep API.
Stars: ✭ 1,066 (+713.74%)
Mutual labels:  google-api
React Places Autocomplete
React component for Google Maps Places Autocomplete
Stars: ✭ 1,265 (+865.65%)
Mutual labels:  google-api
blog
Source code for the posts of my blog https://theroadtodelphi.com/
Stars: ✭ 96 (-26.72%)
Mutual labels:  google-api
Taking Advantage Of Google Apps Script
Here, CLI tools, libraries, Add-ons, Reports, Benchmarks and Sample Scripts for taking advantage of Google Apps Script which are publishing in my blog, Gists and GitHub are summarized.
Stars: ✭ 123 (-6.11%)
Mutual labels:  google-api
Google Sheets To Html
JavaScript that draws a Google Sheets document into an HTML table (includes base web template)
Stars: ✭ 53 (-59.54%)
Mutual labels:  google-api
Php Google Contacts V3 Api
πŸ‘₯ PHP library for the Google Contacts API (v3)
Stars: ✭ 97 (-25.95%)
Mutual labels:  google-api
Forge View.googledrive.models
View models from Google Drive: Sample Viewer application that displays files of supported formats from Google Drive, and generates them in the Viewer
Stars: ✭ 18 (-86.26%)
Mutual labels:  google-api
Cuba
πŸ‡¨πŸ‡Ί Google Sheets + SQL = JSON
Stars: ✭ 45 (-65.65%)
Mutual labels:  google-api
React Google Calendar Api
An api to manage your google calendar
Stars: ✭ 93 (-29.01%)
Mutual labels:  google-api
Raccoon4
APK Downloader for Google Play
Stars: ✭ 369 (+181.68%)
Mutual labels:  google-api
Cardview
Material Design Cards ? How cool is that !
Stars: ✭ 101 (-22.9%)
Mutual labels:  google-api
youtube-playlist-json
Returns JSON of Youtube Playlist using YouTube Data API v3
Stars: ✭ 14 (-89.31%)
Mutual labels:  google-api
Gapi Ocaml
A simple OCaml client for Google Services.
Stars: ✭ 79 (-39.69%)
Mutual labels:  google-api
Ng Gapi
ng-gapi a Google api module for Angular 6+
Stars: ✭ 126 (-3.82%)
Mutual labels:  google-api
Google Maps React
Companion code to the "How to Write a Google Maps React Component" Tutorial
Stars: ✭ 1,542 (+1077.1%)
Mutual labels:  google-api
React Google Login
A React Google Login Component
Stars: ✭ 1,317 (+905.34%)
Mutual labels:  google-api

React google autocomplete

This is a simple react component for working with google autocomplete

Install

npm i react-google-autocomplete --save


As of version 1.2.4, you can now pass an apiKey prop to automatically load the Google maps scripts. The api key can be found in your google cloud console.

<AutoComplete
  apiKey={YOUR_GOOGLE_MAPS_API_KEY}
  onPlaceSelected={() => 'do something on select'}
/>

Alternatively if not passing the apiKey prop, you can include google autocomplete link api in your app. Somewhere in index.html or somewhere else.

  <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=[YOUR_API_KEY]&libraries=places"></script>

Example

import Autocomplete from 'react-google-autocomplete';

<Autocomplete
    style={{width: '90%'}}
    onPlaceSelected={(place) => {
      console.log(place);
    }}
    types={['(regions)']}
    componentRestrictions={{country: "ru"}}
/>

The component has one function called onPlaceSelected. The function gets invoked every time a user chooses location. A types props means type of places in google place API. By default it uses (cities). A componentRestrictions prop by default is empty. A bounds prop by default is empty. You also can pass any props you want to the final input. You can also set fields prop if you need extra information, now it defaults to basic data in order to control expenses. The options(optional) prop is the optional configuration to your Autocomplete instance. You can see full options here

Contribution

If you would like to see something in this library please create an issue and I will implement it as soon as possible.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].