Google places autocomplete - location and radius not working

前端 未结 3 1447
谎友^
谎友^ 2021-01-12 21:52

Im trying to set the google places autocomplete to sort the results from the nearest to a point. I have a code like this...

         


        
3条回答
  •  感动是毒
    2021-01-12 22:33

    to return places just in radius you need to set strictbounds to true.

    The main problem for me right now is that Autocomplete doesn't have rankBy. see here

提交回复
热议问题