Sethmr
Sethmr

Reputation: 3084

findAutocompletePredictionsFromQuery doesn't seem to work in the pod version 3.5 of Google Places

This problem is occurring while trying to use the Google Places iOS SDK on the latest version.

Add pod 'GooglePlaces', '3.5.0' to your pod file.

Install the pod and try to compile a project that had google places autocomplete prior.

It will remove the previous GMSPlacesClient autocompleteQuery function from usability, but then when searching for the replacement found here, the findAutocompletePredictionsFromQuery is also not usable.

enter image description here

I am using Cocoapods version 1.8.4 on Catalina. I don't believe this is an environment issue though. If anyone has any idea how to update to GooglePlaces 3.5, let me know.

Upvotes: 3

Views: 1364

Answers (1)

Ihor
Ihor

Reputation: 132

It seems they haven't updated the documentation yet. That func has been renamed again.

You need to do 2 things:

1) import GoogleMapsBase

2) use findAutocompletePredictions(fromQuery: ... ) instead

Upvotes: 4

Related Questions