Questions tagged [google-places-autocomplete]

The Place Autocomplete service is a web service that returns place predictions in response to an HTTP request. The request specifies a textual search string and optional geographic bounds. The service can be used to provide autocomplete functionality for text-based geographic searches, by returning places such as businesses, addresses and points of interest as a user types.

424 questions
0
votes
2 answers

Why does PlaceAutocompleteFragment crashes with NoSuchMethodError?

I am trying to find place from Google map in my android my code is PlaceAutocompleteFragment autocompleteFragment = (PlaceAutocompleteFragment) getFragmentManager().findFragmentById(R.id.place_autocomplete_fragment); …
0
votes
0 answers

How to use google places autocomplete in vue

I have my google places autocomplete in my vue app.vue however I get the error Uncaught TypeError: Cannot read property 'setBounds' of undefined at eval This is my code https://hastebin.com/ebogewehir.vue From the console.logs it appears that…
0
votes
1 answer

Sort Google places autocomplete results by distance using iOS SDK

I'm using Google places autocomplete iOS API (as instructed here) I need to sort the results to show the nearest places first. Can I do this using the iOS API? if yes, please point me to a reference or something. Thanks
nouf
  • 273
  • 4
  • 14
-1
votes
0 answers

Swift function updating variable but not returning it

Good evening, after spending weeks trying to figure this out, I am looking for some guidance. I am trying to get a coordinate object to return and then go into a compact map. The function is working, because when I do a print, I can see it, but…
-1
votes
1 answer

gettting autocomplete input to display zip code

I have an input that uses basic google places api to get address however I cannot figure out how to get it to display the zip code between state and country. Im assuming i need to add something within this block but even if I remove it still works,…
asdfgedddd
  • 11
  • 2
-1
votes
1 answer

Storing Google Autocomplete data as customers address

I'm looking for a possible solution to store the autocomplete address returned by Google Autocomplete as the address of the customer account on an website. Technically, this isn't allowed by the Google Maps Platform Terms of Service, but there are…
-1
votes
1 answer

Google Autocomplete Places API sessiontoken parameter

I am lost with the session token parameter in the webservice api. Is it: sessionToken or sessiontoken? I can't find the truth. If I see documentation it's sessionToken but in the postman api it's sessiontoken. Then which one is the correct…
dalton5
  • 915
  • 2
  • 14
  • 28
-1
votes
1 answer

Google Places Autocomplete/SearchBox with bounds and text search

When I'm searching within the SearchBox component https://developers.google.com/maps/documentation/javascript/examples/places-searchbox the official demo example (link above) doesn't work for me. The map shows Sydney I type in "mcdonalds" as an…
-1
votes
1 answer

Google Place Autocomplete - geometry bounds properties

I cannot find this answer in the Google docs so I am posting my question here. As per the Google Places Autocomplete response docs, bounds is one of the returned fields. However, when console logging bounds in the browser, the object has strangely…
-1
votes
1 answer

alternate for google places autocomplete for react native projects?

are there any alternatives for google places autocomplete for react native, because to access google places autocomplete i need USD currency billing enabled for that, i don't have USD currency account See it only has USD no other currency, i have…
-1
votes
1 answer

Prevent Google place autocomplete from closing pick list (pac-container) when clicking outside pick list

I want the Google place autocomplete pick list not to hide when I click outside the pick list so that the results remain visible. Example image pick list Example video Example video in which the pick list closes unwanted with a click outside the…
-1
votes
1 answer

Autocomplete location and Google Maps Nearby Places in Android studio, Do I need a billing account?

I understand that for using the API that allows to provide autocomplete addresses and to show the nearby places in a maps, I need to have a billing account. It is just a universitary project, so I would not like to have a subscription. However, I…
-1
votes
1 answer

Load Google places api into component library (no index.html file)

Currently in my code "places" is undefined. This is in a component library that is consumed by other applications so it it's self does not have access to an Index.html file. .ts code import { MapsAPILoader } from '@agm/core'; import { Component,…
-1
votes
1 answer

How to create a Google Address Autocomplete search box with additional hidden fields (longitude, latitude)?

Hoping someone can help. I'm currently building a website that stores some venues (locations) information for use within the application. What i want to achieve is, an input in a modal window where a User supplies 2 things: Venue name (can be named…
-1
votes
1 answer

Autocomple form finds city but cannot access it

Google place autocomplete address form doesn't return locality even tough it show it in the autocomplete? Using their original example as well as trying to change locality for postal_town I cannot acces city name. It is quite perplexed situation…