GooglePlaces Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSPlusCode
@interface GMSPlusCode : NSObject
A class containing the Plus codes representation for a location. See https://plus.codes/ for more
details.
-
Geo plus code, e.g. “8FVC9G8F+5W”
Declaration
Swift
var globalCode: String { get }
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull globalCode;
-
Compound plus code, e.g. “9G8F+5W Zurich, Switzerland”
Declaration
Swift
var compoundCode: String? { get }
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *compoundCode;
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\u003eGMSPlusCode provides a representation of location using Plus Codes, allowing for precise identification worldwide.\u003c/p\u003e\n"],["\u003cp\u003eIt includes a global code, a short code like "8FVC9G8F+5W", for universal location pinpointing.\u003c/p\u003e\n"],["\u003cp\u003eIt may also contain a compound code, such as "9G8F+5W Zurich, Switzerland", which combines a short code with a human-readable location.\u003c/p\u003e\n"]]],[],null,["# GooglePlaces Framework Reference\n\nGMSPlusCode\n===========\n\n @interface GMSPlusCode : NSObject\n\nA class containing the Plus codes representation for a location. See \u003chttps://plus.codes/\u003e for more\ndetails.\n- `\n ``\n ``\n `\n\n ### [globalCode](#/c:objc(cs)GMSPlusCode(py)globalCode)\n\n `\n ` \n Geo plus code, e.g. \"8FVC9G8F+5W\" \n\n #### Declaration\n\n Swift \n\n var globalCode: String { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly) NSString *_Nonnull globalCode;\n\n- `\n ``\n ``\n `\n\n ### [compoundCode](#/c:objc(cs)GMSPlusCode(py)compoundCode)\n\n `\n ` \n Compound plus code, e.g. \"9G8F+5W Zurich, Switzerland\" \n\n #### Declaration\n\n Swift \n\n var compoundCode: String? { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly, nullable) NSString *compoundCode;"]]