Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/netojose/react-google-places-typeahead

Google Maps Places Autocomplete React component
https://github.com/netojose/react-google-places-typeahead

autocomplete google-autocomplete google-maps google-places-api react

Last synced: about 6 hours ago
JSON representation

Google Maps Places Autocomplete React component

Awesome Lists containing this project

README

        




License
Last commit
Open issues
Stars
Npm version
Minified size
Minified gzipped size
Downloads

# Google Maps Places Autocomplete React component

A React component to build a customized UI for Google Maps Places Autocomplete

* [Demo](#demo)
* [Features](#features)
* [Instalation](#instalation)
* [Getting Started](#getting-started)
* [Props](#props)
* [Utility Functions](#utility-functions)

## Demo
* [Online demo on Heroku](https://react-google-places-typeahead.herokuapp.com/)
* [Demo source code](https://github.com/netojose/react-google-places-typeahead-demo/)

## Features
*Comming soon*

## Instalation
```bash
npm install --save @netojose/react-google-places-typeahead
```

## Getting Started
*Comming soon*

## Props
| prop | Description | type | default value | required |
|---------------------------------- |--------------------------------------------------------------------- |---------- |--------------- |---------- |
| [children](#children) | function to render items | function | | Yes |
| [value](#value) | Search input value | string | | Yes |
| [onChange](#onChange) | On change event | function | | Yes |
| [onError](#onError) | On error event | function | () => null | No |
| [gMapsCallback](#gMapsCallback) | Callback name to initialise component after google script is loaded | string | null | No |
| [onSelect](#onSelect) | On select event | function | () => null | No |
| [debounce](#debounce) | Interval between each Google API service call (in ms) | integer | 200 | No |
| [searchOptions](#searchOptions) | Options to Google Maps API | object | {} | No |

### children
*Comming soon*

### value
*Comming soon*

### onChange
*Comming soon*

### onError
*Comming soon*

### gMapsCallback
*Comming soon*

### onSelect
*Comming soon*

### debounce
*Comming soon*

### searchOptions
*Comming soon*

## Utility Functions
* [geocodeByPlaceId](#geocodeByPlaceId)
* [geocodeByAddress](#geocodeByAddress)
* [getLatLng](#getLatLng)
* [loadScript](#loadScript)

### geocodeByPlaceId
*Comming soon*

### geocodeByAddress
*Comming soon*

### getLatLng
*Comming soon*

### loadScript
*Comming soon*