Questions tagged [google-maps-autocomplete]

Autocomplete is a feature of the Places library in the Google Maps JavaScript API. You can use autocomplete to give your applications the type-ahead-search behavior of the Google Maps search field. When a user starts typing an address, autocomplete will fill in the rest.

docs

https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete

demo

https://google-developers.appspot.com/maps/documentation/javascript/examples/full/places-autocomplete

screenshot

enter image description here

47 questions
1
vote
2 answers

Google maps api autocomplete - get location in one city (or few cities)

I already Googled that but I didn't find any answer. Is it possible to get in the Google Maps autoComplete results only locations in given cities? For example I want all the addresses in the city of Paris and New York, and exclude every other…
1
vote
1 answer

Prepopulate Google Maps autocomplete (iOS / Swift)

Is it technically possible to make Google Maps Autocomplete search suggestions when it's just opened using coordinates or a hard-coded search string? Typically it shows empty field and a view below – layout is empty excepting powered by Google…
1
vote
1 answer

Google Map Autocomplete Drop-Up List

I am using the google map Autocomplete. I have a div element where I have an input element to search the location. And I get a drop-down list of possible locations. How can I get the list to be on the top instead of showing below the search…
1
vote
0 answers

Google Autocomplete: Choose alternative place selected from map

Current Situation I've implemented a Google Autocomplete text box into a web page, so that users can select a Google Place, and store that place/address information against their account. Basically crossing Google's Place Autocomplete demo with…
1
vote
1 answer

Angular directive md-autocomplete with Google Maps autocompleteService

Thank you in advance for your help. I have been trying to get an autocomplete search box setup to interact with the google AutocompleteService API using angular. At the moment my Angular AutocompleteService is working well and retrieving an array…
0
votes
1 answer

Best approach to create a GoogleMapsHook for loading the Google Maps API script and accessing functionalities like autocomplete and map in React/Qwik?

I'm working on a Qwik project where I need to integrate Google Maps and its functionalities, such as autocomplete and map rendering, into my application. I want to create a reusable hook that loads the Google Maps API script once and provides…
0
votes
1 answer

Google map autocomplate in Angular

I am able to use google map autocomplete in HTML but when I tried to use it in ng-template it worked behind I see in the network but I cant see the dropdown result.
0
votes
1 answer

React/Material UI - Google Places autocomplete dropdown sometimes doesn't work

So this code is working, but sometimes on page load or refresh the google places dropdown autocomplete suggestions is not showing up, I can type anything in the searchbox but it just doesn't load the autocomplete box. What could cause this…
0
votes
1 answer

Suggest full address only on google address autocomplete

I am trying to implement the google address autocomplete feature through js. My implementation is shown below. Its working fine, the only problem is while searching the address, it suggests the generic address without postcodes as well. What my…
0
votes
0 answers

Location not changed if copy paste address in the search box in google map

I'm using google map which has a search field and as user types in that search field the location changes in the map, but also want if user Copy paste location in the search field then also the location should change, but right now it is not…
user3653474
  • 3,393
  • 6
  • 49
  • 135
0
votes
1 answer

get Lat, Lng, Country and State together from Google Maps Autocomplete js

I need from Google Place Autocomplete these values: alert( place.name + // Works place.geometry.location.lat() + // Works place.country + // Not works - what is correct value to get country value? place.state …
0
votes
0 answers

Administrative area names don't match with regions and addresses

I have a problem about matching the cities with the addresses' city components. For example, I have a form which returns the city names with types parameter set to (regions) and one another form having the types parameter set as addresses.…
0
votes
1 answer

Flutter can't running, after use google_maps_autocomplete

I copied this code from flutter_google_places_autocomplete, but my app can't starting more. How can i solve this problem? import 'package:flutter/material.dart'; import…
0
votes
2 answers

Google Map places autocomplete doesn't work

I wanted to implement AutocompleteFragment (google places) but when I click to search view in a fragment, the fragment disappears (fell down). Google Maps and Places API work and in console I see error: places.PlacesService.AutocompleteWidget: 100…
0
votes
0 answers

When exactly does google map autocomplete 'place_changed' get called?

In a text search field if I select a autocomplete option from google maps autocomplete, the maps autocomplete listener gets triggered and called. But it also gets called if I press return/enter on my forms text search field. I have a jquery on…
chuckd
  • 13,460
  • 29
  • 152
  • 331