GoogleMaps Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSGeocoderErrorCode
enum GMSGeocoderErrorCode : NSInteger {}
GMSGeocoder
error codes, embedded in NSError.
-
Declaration
Swift
case invalidCoordinate = 1
Objective-C
kGMSGeocoderErrorInvalidCoordinate = 1
-
Declaration
Swift
case `internal` = 2
Objective-C
kGMSGeocoderErrorInternal
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSGeocoderErrorCode\u003c/code\u003e is an enumeration that defines error codes for the \u003ccode\u003eGMSGeocoder\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThese error codes are embedded within \u003ccode\u003eNSError\u003c/code\u003e objects and provide information about issues encountered during geocoding operations.\u003c/p\u003e\n"],["\u003cp\u003eThe two defined error codes are \u003ccode\u003ekGMSGeocoderErrorInvalidCoordinate\u003c/code\u003e, indicating an invalid coordinate provided, and \u003ccode\u003ekGMSGeocoderErrorInternal\u003c/code\u003e, representing an internal error within the geocoder.\u003c/p\u003e\n"]]],["The content defines error codes for the `GMSGeocoder` class, which are embedded in `NSError`. There are two specific error codes: `kGMSGeocoderErrorInvalidCoordinate` (value 1), indicating an invalid coordinate, and `kGMSGeocoderErrorInternal` (value 2), denoting an internal error. Both codes have equivalent declarations in Swift (using `case`) and Objective-C (using `kGMSGeocoderError`).\n"],null,["# GoogleMaps Framework Reference\n\nGMSGeocoderErrorCode\n====================\n\n enum GMSGeocoderErrorCode : NSInteger {}\n\n[GMSGeocoder](../Classes/GMSGeocoder.html) error codes, embedded in NSError.\n- `\n ``\n ``\n `\n\n ### [kGMSGeocoderErrorInvalidCoordinate](#/c:@E@GMSGeocoderErrorCode@kGMSGeocoderErrorInvalidCoordinate)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case invalidCoordinate = 1\n\n Objective-C \n\n kGMSGeocoderErrorInvalidCoordinate = 1\n\n- `\n ``\n ``\n `\n\n ### [kGMSGeocoderErrorInternal](#/c:@E@GMSGeocoderErrorCode@kGMSGeocoderErrorInternal)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case `internal` = 2\n\n Objective-C \n\n kGMSGeocoderErrorInternal"]]