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
0
votes
1 answer

Google API Autocomplete, Only one region type

I am currently using the google apis API to autocomplete locations. I can set it to only return the regions type with "autocomplete.setTypes(['regions'])" . Looking at the documentation I can see that regions type will return all results containing…
0
votes
1 answer

Cannot load DOM element in child component

I have found a problem with Angular 4.4.6 when accessing an DOM element by ID from a different component. In my component, I want to draw a Google Maps for certain uses. As indicated in the examples provided in the API, I do this by including the…
Daniel Ortiz
  • 21
  • 1
  • 2
0
votes
2 answers

Combining Google and Factual APIs?

I am using the Factual API along with the Google Maps API to get data for Restaurants in a certain city. As the name suggests, Factual deals with Factual data and does not include Restaurant images as apart of their API. Does anybody know if it is…
Trenton Tyler
  • 534
  • 1
  • 7
  • 20
0
votes
1 answer

How to place marker for given place

I created html page with the help of google maps api. But I can't place the marker for given place. My requirement is when I enter place in autocomplete box, Place the marker for given place after click search button. Please anyone help me! My code…
0
votes
1 answer

Google maps autocomplete on clone elements

I have got this code to clone my input field when someone click on the add more button. javascript $(".multipleunitaddress").each(function(){ var multipleunitaddressinput = $(this).get(0); autocomplete2 = new…
0
votes
0 answers

Google Maps Autocomplete autoselect Firstoption

I'm using Google Maps Places V3 autocomplete. I would like to have a functionality where if a user starts typing an word into the searchfield and press enter , the first item from the autocomplete drop down is should be selected. like on…
0
votes
1 answer

getbounds with Google maps autocomplete ? Not working

I'm using google maps autocomplete for user to input the place. after that I do call getPlace(), from autocomplete object. It shows the following error. Uncaught TypeError: Object ((13.0284176, 80.23215529999993), (13.0501581, …
0
votes
2 answers

Google Maps Autocomplete List

I wonder whether someone may be able to help me please. I'm using the code below to perform an Google Maps Autocomplete action upon a user entering address details: // JavaScript Document var geocoder; var map; var marker; function initialize(){ …
IRHM
  • 1,326
  • 11
  • 77
  • 130
-1
votes
1 answer

Formik with Google Places API is triggering form submit

I am currently trying to create a form using Formik that includes a location and I would like to use Google Places Autocomplete. I have been able to successful get the Google Places data that I want, but it's triggering a form submit. I create a…
-1
votes
1 answer

How can I refresh Google Map Marker and Map with existing Data when page is reloaded?

I need a way to refresh and reload my Google Map and Marker with data that was previously saved. Essentially, I want to be able for a user to Autocomplete an address, store the information's lat, long, and place_id from the query, and then if they…
-1
votes
2 answers

Google Places Autocomplete Not Searching Address

I'm using google autocomplete in my application for address search. I'm typing my address but results are not found for it mitskevichi 14. But if I go to google maps website and type same address there, result is found. I've tried, mitskevichi 14…
-1
votes
1 answer

Google maps api Auto Complete for country

I want to get address only in specific country if it was choosen. My code is: var country=""; $("select[name='country_id']").change(function () { co=$("select[name='country_id']").val(); }); function initialize() { var…
-1
votes
2 answers

Google Maps autocomplete full address

I have a web application using Google Maps autocomplete in an input field like in the examples page: https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform However, they use the autocomplete to divide…
Flame_Phoenix
  • 16,489
  • 37
  • 131
  • 266
-2
votes
0 answers

Google maps api limit

I am using google maps api and want to search nearby place. But on free trial it's limited to 1000 request per day where I also request for autocomplete search query and also finding nearby places which completes much faster. Is there any…
-2
votes
1 answer

Google Places Autocomplete error: This page didn't load Google Maps correctly

I know there are plenty of example around and multiple questions on stackoverflow but none of them helped me to find the issue. The goal was to have an autocomplete with just the regions (they available types are here:…
Diego
  • 1,610
  • 1
  • 14
  • 26