GMSPlaceLandmark
@interface GMSPlaceLandmark : NSObjectBasic landmark information and the landmark’s relationship with the target location.
Landmarks are prominent places that can be used to describe a location.
-
The landmark’s resource name.
Declaration
Swift
var resourceName: String? { get }Objective-C
@property (nonatomic, readonly, nullable) NSString *resourceName; -
The landmark’s place ID.
Declaration
Swift
var placeID: String? { get }Objective-C
@property (nonatomic, readonly, nullable) NSString *placeID; -
The landmark’s display name.
Declaration
Swift
var displayName: String? { get }Objective-C
@property (nonatomic, readonly, nullable) NSString *displayName; -
The landmark’s display name language code.
Declaration
Swift
var displayNameLanguageCode: String? { get }Objective-C
@property (nonatomic, readonly, nullable) NSString *displayNameLanguageCode; -
A set of type tags for this landmark. For a complete list of possible values, see https://developers.google.com/maps/documentation/places/web-service/place-types.
Declaration
Swift
var types: [String]? { get }Objective-C
@property (nonatomic, readonly, nullable) NSArray<NSString *> *types; -
Defines the spatial relationship between the target location and the landmark.
Declaration
Swift
var spatialRelationship: GMSPlaceLandmarkSpatialRelationship { get }Objective-C
@property (nonatomic, readonly) GMSPlaceLandmarkSpatialRelationship spatialRelationship; -
The straight line distance, in meters, between the center point of the target and the center point of the landmark.
In some situations, this value can be longer than
travelDistanceMeters.Declaration
Swift
var straightLineDistanceMeters: NSNumber? { get }Objective-C
@property (nonatomic, readonly, nullable) NSNumber *straightLineDistanceMeters; -
The travel distance, in meters, along the road network from the target to the landmark, if known.
This value does not take into account the mode of transportation, such as walking, driving, or biking.
Declaration
Swift
var travelDistanceMeters: NSNumber? { get }Objective-C
@property (nonatomic, readonly, nullable) NSNumber *travelDistanceMeters; -
Unavailable
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE;