We are using google places API to autocomplete state, city or region searches. The issue is when one searches for a state, Places API gives two results one for the state and the other for the city/region. For eg, if we search Maine we get Maine, USA and Maine, ME, USA both in the response. Would anyone please provide a way to avoid this duplication?
Google Places API gives name of the state as city in the suggestion
359 Views Asked by Subham Rajput At
1
There are 1 best solutions below
Related Questions in WEB-SERVICES
- couldn't copy pdb file to another directory while consuming wcf web service
- .net rest service with JSON string and consumed with java client
- How to send Rest GET request that contains "#" value in url parameters?
- Looking the Method that MANUALLY INSTALL PHP on OSX Yosemite
- How to use @queryparam when using array in Java
- How to accept cookies when using a webservice - Android?
- zend soap server reading xml attributes
- Web Service Error path property must set before calling the send method
- Error with kSOAP2
- JAX-RS service response is returning double fields without decimal places
- How can I call a ASP.Net webservice using AJAX without calling controller
- Generate clients for multiple WSDL files and place it in different package through Spring Gradle
- File upload in AXIS2 webservice
- How to route by call method in proxy with WSO2?
- fetch data from web service to dataset in Delphi
Related Questions in GOOGLE-PLACES-API
- How can I get place details via getDetails in specific language?
- This IP, site or mobile application is not authorized to use this API key I have tried all suggestion from here
- Fail to obtain specific Place from PlaceBuffer
- Is short name returned in response from google places api unique?
- Adding same google map search to my site
- Is it possible to filter the GMSPlacePicker based on place type/category
- Is it possible to filter google place picker
- Don't show country in results of Google AutoComplete
- Google Places API (Android) Autocomplete just like on Google Maps
- Google Places API results not showing on map?
- Android Key or Browser Key for Place AutoComplete?
- Intelligently cache google places
- Android reverse geocoding requires either an Internet connection or a backend data provider
- ANDROID PLACE_PICKER (builder.build(context)
- How to set "Types" in Google Place PlacePicker in Android?
Related Questions in GOOGLE-PLACES
- Fail to obtain specific Place from PlaceBuffer
- Is short name returned in response from google places api unique?
- How to detect if a store listed in google maps has business view (see inside 360 tours)?
- How to get Open Table Restaurant ID(rid) from Google Places API Webservice search result?
- Google places API for ios, only 10 results
- In IOS Google places API with web service gave output in Unicode Character 'DEVANAGARI LETTER NA' (U+0928)
- Google Webservices API equivalent to the Places search box
- How do I add a link to the dropdown menu provided by google places api (autocomplete)?
- Google Places AutoComplete - Clicking on link makes a function run
- Restrict places autocomplete results to within COUNTRY and STATE
- Google Places Autocomplete suggestions not clickable when in Ionic modal
- Google Places API Error, but returns success
- Google Places API returns different place_id for the same city
- Google API not showing marker on all the registered places
- Restrict Google Places API search by type
Related Questions in REACT-GOOGLE-PLACES-AUTOCOMPLETE
- Auto complete address for search in reactjs
- Google Places Auto Complete making input field go up
- React-google-places-autocomplete street_address component not working?
- How to simulate click on custom geojson layer with @react-google-maps/api?
- How to show currentLocation using GooglePlacesAutocomplete in expo project
- React/Material UI - Google Places autocomplete dropdown sometimes doesn't work
- react native searchbar overlapping mapview but cant zoom or pitch mapview
- How to remove google place autocomplete close icon?
- GooglePlacesAutocomplete doesn't take tap on results
- React google places autocomplete returning only one place (Needing zip)
- React Native Errors - VirtualizedLists should never be nested inside plain ScrollViews
- How to make react-native-google-places-autocomplete currentLocation work in Expo app
- How to integrate react-google-places-autocomplete with react-hook-from?
- reactjs-select + react-google-places-autocomplete: how to initialize with a place
- google places automplete only suggestions with stress number
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Do you use "types" parameter? https://developers.google.com/maps/documentation/places/web-service/autocomplete#types "cities" type might give the result you want.