GoogleMaps Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSLengthKind
enum GMSLengthKind : NSUInteger {}
GMSLengthKind
indicates the type of a length value, which can be geodesic (in meters), rhumb
length (in meters) and projected length (in GMSMapPoint
units).
-
Declaration
Objective-C
kGMSLengthGeodesic
-
Declaration
Objective-C
kGMSLengthRhumb
-
Declaration
Objective-C
kGMSLengthProjected
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\u003eGMSLengthKind\u003c/code\u003e is an enumeration used to specify the type of a length measurement.\u003c/p\u003e\n"],["\u003cp\u003eIt includes three types: geodesic (in meters), rhumb (in meters), and projected (in \u003ccode\u003eGMSMapPoint\u003c/code\u003e units).\u003c/p\u003e\n"],["\u003cp\u003eThese types are represented by the constants \u003ccode\u003ekGMSLengthGeodesic\u003c/code\u003e, \u003ccode\u003ekGMSLengthRhumb\u003c/code\u003e, and \u003ccode\u003ekGMSLengthProjected\u003c/code\u003e, respectively.\u003c/p\u003e\n"]]],["`GMSLengthKind` defines the type of a length value. It includes three options: `geodesic` (meters), representing the shortest distance between two points on the Earth's surface; `rhumb` (meters), indicating a length measured along a constant bearing; and `projected`, representing length in `GMSMapPoint` units. The enum uses `NSUInteger` for its values. Geodesic is represented by 0, Rhumb by 1 and Projected by 2.\n"],null,["# GoogleMaps Framework Reference\n\nGMSLengthKind\n=============\n\n enum GMSLengthKind : NSUInteger {}\n\n`GMSLengthKind` indicates the type of a length value, which can be geodesic (in meters), rhumb\nlength (in meters) and projected length (in [GMSMapPoint](../Structs/GMSMapPoint.html) units).\n- `\n ``\n ``\n `\n\n ### [kGMSLengthGeodesic](#/c:@E@GMSLengthKind@kGMSLengthGeodesic)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case geodesic = 0\n\n Objective-C \n\n kGMSLengthGeodesic\n\n- `\n ``\n ``\n `\n\n ### [kGMSLengthRhumb](#/c:@E@GMSLengthKind@kGMSLengthRhumb)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case rhumb = 1\n\n Objective-C \n\n kGMSLengthRhumb\n\n- `\n ``\n ``\n `\n\n ### [kGMSLengthProjected](#/c:@E@GMSLengthKind@kGMSLengthProjected)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case projected = 2\n\n Objective-C \n\n kGMSLengthProjected"]]