jaing / react-native-places-input

MIT License
46 stars 18 forks source link

Restricting to search only locality/administrative_area_level_3 #4

Closed adarshperumal closed 4 years ago

adarshperumal commented 4 years ago

Is there a provision to look up only for locality ?

jaing commented 4 years ago

Done. I updated a readme and changelog:

1.0.10

New configuration props:

Place types

    <PlacesInput
        placeHolder={'Some placeholder'}
        queryTypes="establishment"
        googleApiKey={GOOGLE_API_KEY} 
        onSelect={place => this.setState({place})} 
    />

https://developers.google.com/places/web-service/autocomplete#place_types