Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Google's Query and Place Autocomplete?

Whats the difference between these two services: Google Place Autocomplete https://developers.google.com/places/web-service/autocomplete and Google Query autocomplete https://developers.google.com/places/web-service/query Except theirs descriptions, which are not clear enough.

like image 503
Molfar Avatar asked May 31 '20 19:05

Molfar


People also ask

Does Google autocomplete this query?

Autocomplete predictions reflect real searches that have been done on Google. To determine what predictions to show, our systems look for common queries that match what someone starts to enter into the search box but also consider: The language of the query. The location a query is coming from.

What is place 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.

Is Google places autocomplete free?

The autocomplete request is available at no charge, and the subsequent Place Details call gets charged based on regular Place Details pricing. A Place Details request generates Data SKUs (Basic, Contact, and/or Atmosphere) – depending on the fields that are specified in the request.


1 Answers

The difference between these web services is the following:

  • The Place autocomplete service will return as suggestions only places from Google database. These place predictions have a place ID, so you can resolve them to position on the map.

  • The Query autocomplete service will return as suggestions both places from Google database and geographic query predictions. The geographic query predictions are not places entities, they don't have place ID, they are search texts like "pizza near Sydney, New South Wales, Australia" that you probably need to pass further to search engine of your app.

I hope my answer resolves your doubt.

like image 159
xomena Avatar answered Dec 13 '22 14:12

xomena