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
- Apache CXF is unable to handle duplicate localnames
- Why do we call all http services 'Web Api/Web Service'?
- Postman Webservice PHP Curl Code POST request giving forbidden error when run in local
- Migrate ASMX web method to WCF which accepts string array
- PKIX failed when using custom SSLcontext with custom keyStore and trustStore
- Problems in Validations via Web Service in a Vue 3 Application
- Maven plugin 100% compatible Java21 to generate stub classes from WSDL file and generate *.wsdl from java classes? A solution
- Kubernetes Ingress Port to Port route
- How to handle a multi thread tests calling a single thread web service in .Net Framework 4.6?
- oracle.dataaccess.dll keep showing up as reference after build of C# web service using Oracle MDAC
- Your thoughts on the suggested architecture for addressing the challenges and maintenance of third-party API implementation
- Issue with BizTalk register WCF-WSHttp adapter while calling web service
- Does PHP SoapClient creates XML to be sent to webservice end point, based on WSDL file, while using CURL the XML should be manually created?
- Invoice API in Authorize.net like Square
- Publish JAXWS Endpoint in the same port than Spring boot
Related Questions in GOOGLE-PLACES-API
- How can i get the reviews in google maps via API
- Flutter Google Places API Authorization Error
- Trying to use google map places api with usePlacesAutoComplete in NEXT.js project but getting InvalidKeyMapError
- Way to search and get a panoram image and other info on places
- how to request for license=cc0 photos by places api
- HTML/JS Google Maps API for reviews is showing only 5 reviews
- Places Autocomplete Only Return Residential Street Addresses In The US
- React google places autocomplete returning only one place (Needing zip)
- Implementing Places Search Box in ReactJS
- Get business rating over Google places API in Javascript (Client-Side)
- I want to filter Google places autocomplete suggestions only for India in Next Js
- AndroidStudio - Apps built on ARM processors are functionally different from Intel with same codebase
- Error retrieving place ID. Response code ZeroResults
- Google Places rejection iOS
- Google Places API - Passing Multiple "Types" into the Autocomplete Function
Related Questions in GOOGLE-PLACES
- Access string of selected place in StandaloneSearchBox in react-google-maps/api
- How can I download a single merged JSON file within a loop whilst using Google API and Javascript?
- How can I output Google Places details into a JSON file?
- Google Place Autocomplete API showing invalid address
- Get Address from current location Kotlin
- add 'Current location' button at the top of the autocomplete places list
- Vue JS Google Places API - Map not showing
- Google Places API gives name of the state as city in the suggestion
- Google Maps iOS SDK placesClient?.fetchPlace never gets response
- Google Place AutoComplete In SwiftUI
- Get exception in every input address google map directions problem
- How to fix UI of GMSAutocompleteViewController in iOS 15?
- How to get place_id based on telephone number
- Storing Data from Google Places API to create Recent search history
- Flutter Google Places Autocomplete only for Localities and Sub Localities
Related Questions in REACT-GOOGLE-PLACES-AUTOCOMPLETE
- React google places autocomplete returning only one place (Needing zip)
- GooglePlacesAutocomplete doesn't take tap on results
- How to remove google place autocomplete close icon?
- Auto complete address for search in reactjs
- How to make react-native-google-places-autocomplete currentLocation work in Expo app
- How to show currentLocation using GooglePlacesAutocomplete in expo project
- Restrict bounds in use-places-autocomplete
- How do i automatically focus on the select input in GooglePlacesAutoComplete
- react native searchbar overlapping mapview but cant zoom or pitch mapview
- React-google-places-autocomplete street_address component not working?
- How to simulate click on custom geojson layer with @react-google-maps/api?
- React Native Errors - VirtualizedLists should never be nested inside plain ScrollViews
- react-google-autocomplete component not updating when state updated
- Google Places API gives name of the state as city in the suggestion
- Google Places Auto Complete making input field go up
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 # Hahtags
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.