PlacesError
enum PlacesError
extension PlacesError : Equatable, Error, Hashable, Sendable
Places error types.
-
Something went wrong with the connection to the Places API server.
Declaration
Swift
case network(_ arg: String)
-
The Places API server returned a response that we couldn’t understand.
If you believe this error represents a bug, please file a report using the instructions on our community and support page.
Declaration
Swift
case server(_ arg: String)
-
An internal error occurred in the Places SDK library.
If you believe this error represents a bug, please file a report using the instructions on our community and support page.
Declaration
Swift
case `internal`(_ arg: String)
-
Operation failed due to an invalid (malformed or missing) API key.
See the developer’s guide for information on creating and using an API key.
Declaration
Swift
case keyInvalid(_ arg: String)
-
Operation failed due to an expired API key.
See the developer’s guide for information on creating and using an API key.
Declaration
Swift
case keyExpired(_ arg: String)
-
Operation failed due to exceeding the quota usage limit.
See the usage limits guide for information on usage limits and how to request a higher limit.
Declaration
Swift
case usageLimitExceeded(_ arg: String)
-
Operation failed due to exceeding the usage rate limit for the API key.
This status code shouldn’t be returned during normal usage of the API. It relates to usage of the API that far exceeds normal request levels. See the usage limits guide for more information.
Declaration
Swift
case rateLimitExceeded(_ arg: String)
-
Operation failed due to exceeding the per-device usage rate limit.
This status code shouldn’t be returned during normal usage of the API. It relates to usage of the API that far exceeds normal request levels. See the usage limits guide for more information.
Declaration
Swift
case deviceRateLimitExceeded(_ arg: String)
-
The Places API service for iOS is not enabled.
See the developer’s guide to learn how to set up the Places SDK for iOS or the migration guide if you are migrating from an earlier version.
Declaration
Swift
case accessNotConfigured(_ arg: String)
-
The application’s bundle identifier does not match one of the allowed iOS applications for the API key.
See the developer’s guide for how to configure bundle restrictions on API keys.
Declaration
Swift
case incorrectBundleIdentifier(_ arg: String)
-
The Places SDK could not find the user’s location. This may be because the user has not allowed the application to access location information.
Declaration
Swift
case location(_ arg: String)
-
The Places SDK could not process the invalid request.
If you believe this error represents a bug, please file a report using the instructions on our community and support page.
Declaration
Swift
case invalidRequest(_ arg: String)
-
Undocumented
Declaration
Swift
var localizedDescription: String { get }
-
Returns a Boolean value indicating whether two values are not equal.
Inequality is the inverse of equality. For any values
a
andb
,a != b
implies thata == b
isfalse
.This is the default implementation of the not-equal-to operator (
!=
) for any type that conforms toEquatable
.Declaration
Swift
static func != (lhs: Self, rhs: Self) -> Bool
Parameters
lhs
A value to compare.
rhs
Another value to compare.