PlacesService
public class PlacesService : BaseService
Service call for Places API The places service can be used to retrieve the list of supported places. The ids for the places are then used in the other services to indicate the location to be queried.
-
Public function get Places
Note
This class needs to be initialized with the accessKey and SecretKeyvar placesService = PlacesService(accessKey: "[YOUR_ACCESS_KEY]", secretKey:"[YOUR_SECRET_KEY]") var placeRequest = PlacesRequest() placesService.getPLacesInfo(request:placeRequest) { (result, error) in }
Declaration
Swift
public func getPlaces(request: PlacesRequest, completionHandler: @escaping (_ result: PlacesResponse?, _ error: ServiceErrors?) -> Void)
Parameters
request
PlacesRequest object
Return Value
- PlacesResponse
- Service Errors