hibiken / react-places-autocomplete

React component for Google Maps Places Autocomplete
https://hibiken.github.io/react-places-autocomplete/
MIT License
1.38k stars 388 forks source link

GeocodeByAddress : Restrict search only to Address having Pincode #203

Open satejrajam30 opened 6 years ago

satejrajam30 commented 6 years ago

Hi,

Thank you for the plugin.

I am trying to get addresses by using geocodeByAddress();

This returns the correct result, my issue is I am filtering locations by their pincode, which is giving in the json response as address_components.

The issue is not all addresses have the address_components containing the pincode.

Is there a way where I can only display suggestions which has the address_component containing the pincode of the respective location.

Thank you.

vishaldeepverma commented 4 years ago

reverse geocode using lat and long values. you will get the pincode