Misha Akopov
Misha Akopov

Reputation: 13057

Google Maps Places Autocomplete search any position

When I use google places autocomplete api and as search places with keyword

&input=MyWord

result is places that start with MyWord. e.g. MyWord1 , MyWord2, MyWordblalba I want to get results that contain MyWord in middle or at any position of result. e.g. blablaMyWordbla

Is it possible ? I can't find any parameter or wildcard in documentation

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

Upvotes: 2

Views: 10235

Answers (2)

user4859015
user4859015

Reputation:

As far as I know there is not such functionality to search locations by wildcards, you can only search by beginning of the word

Upvotes: 1

plexer
plexer

Reputation: 4622

I suggest using the Search functionality of the API, rather than Autocomplete. Autocomplete is designed to complete place names typed by an end-user and therefore focuses on generating suggestions for suffixes.

Upvotes: 0

Related Questions