When I use google places autocomplete api and as search places with keyword
&input=MyWord
result is places that start with MyWord. eg MyWord1 , MyWord2, MyWordblalba I want to get results that contain MyWord in middle or at any position of result. eg blabla MyWord bla
Is it possible ? I can't find any parameter or wildcard in documentation
https://developers.google.com/maps/documentation/javascript/places-autocomplete
据我所知,没有通过通配符搜索位置的功能,您只能按单词开头
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.