Additional charges for contact/atmosphere
Hi, isit possible to add filtering for the fields retrieved? Cause i noticed u queried for the contact number which will incur additional charges. But I would only want general information like the address and place name only.
https://woolpert-googlecloud.github.io/maps-platform-best-practices/docs/place-details-fields.html
Hi @appleshine , Can you elaborate a little more. I'm not fully able to understand what exactly you want. Thanks!
I want to be able to filter for only the fields that I need eg. formatted_address
https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJlQ-ho9OEQIgRLQeLM-VMRMc&fields=name,formatted_address,address_component,geometry&key=YOUR_API_KEY
or
let fields: GMSPlaceField = GMSPlaceField(rawValue: UInt(GMSPlaceField.name.rawValue) | UInt(GMSPlaceField.addressComponents.rawValue) | UInt(GMSPlaceField.formattedAddress.rawValue) | UInt(GMSPlaceField.coordinate.rawValue))!
autocompleteController.placeFields = fields
Right now we don't have support for this, but you can refer to this #2 and add the required key from here https://woolpert-googlecloud.github.io/maps-platform-best-practices/docs/place-details-fields.html to filter data you need.
ohh okay will try that.. thanks!
one more question! does the library support the session token handling?