简体   繁体   中英

where did GMSPlacesClient.lookUpPhotosForPlaceID go?

I'm currently experimenting with the google places API on swift, following the official doc : https://developers.google.com/places/ios-api/photos .

My app is already using successfully the google maps api (so no installation problem), now I'm trying to fetch photos of a given place, using the provided sample code. However, it would seem that the lookUpPhotosForPlaceID simply does not exist anymore... XCode shows the following error :

Value of type 'GMSPlacesClient' has no member 'lookUpPhotosForPlaceID'

on the line

  GMSPlacesClient.sharedClient().lookUpPhotosForPlaceID(placeID) { (photos, error) -> Void in

Same for the loadPlacePhoto function called afterwards!

If anyone has any idea has for why this thing doesn't work, I would greatly appreciate it !

Thanks !

I'm an engineer on the Places API for iOS team.

Sorry about this. We released a version (1.12.0) of the SDK with this feature, but noticed some problems and rolled it back in version 1.12.1. We now have a new release out which fixes the issue and adds lookUpPhotosForPlaceID. If you upgrade to version 1.12.2, you should see it again.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM