Prepopulate Google Maps autocomplete (iOS / Swift)

327 Views Asked by At

Is it technically possible to make Google Maps Autocomplete search suggestions when it's just opened using coordinates or a hard-coded search string? Typically it shows empty field and a view below – layout is empty excepting powered by Google element:

enter image description here

1

There are 1 best solutions below

1
On

Use the below url to send the request suggestion, you will get json response with the list of suggestions.Use that to display the suggestion in a tableview.I used this approach to in replacement or substitute of auto completion provided by google. let url = "https://maps.googleapis.com/maps/api/place/autocomplete/json?input=&types=geocode&key="

hope it helps you, Happy coding