AI-generated Key Takeaways
-
The
GMTSTerminalLocationobject represents information about a terminal location, including its point location, a human-readable label, and a longer description. -
Each terminal location can be identified by a
placeID, or, if not available, ageneratedID. -
An
accessPointIDcan also be associated with a terminal location if a trip exists for that terminal. -
A
GMTSTerminalLocationobject is created using the-initWithPoint:label:description:placeID:generatedID:accessPointID:method. -
The method
initis not available for this class, and the appropriate initializer should be used instead.
GMTSTerminalLocation
@interface GMTSTerminalLocation : GMTCImmutableDataObject representing information that identifies a terminal location.
-
The point location of the terminal.
Declaration
Swift
@NSCopying var point: GMTSLatLng? { get }Objective-C
@property (nonatomic, copy, readonly, nullable) GMTSLatLng *point; -
Human-readable name of the terminal location.
Declaration
Swift
var terminalLocationLabel: String? { get }Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *terminalLocationLabel; -
A longer description of the terminal location, which may include how to get to the location.
Declaration
Swift
var terminalLocationDescription: String? { get }Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *terminalLocationDescription; -
The Place ID of the terminal point. Refer to https://developers.google.com/places/web-service/place-id for more detail.
Declaration
Swift
var placeID: String? { get }Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *placeID; -
A generated ID if the place ID is not available. The ID is nil if there is already a valid place ID.
Declaration
Swift
var generatedID: String? { get }Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *generatedID; -
Indicates the access point ID of the current terminal location for the associated trip. If an associated trip does not exist, the value is nil. Requires an associated trip.
Declaration
Swift
var accessPointID: String? { get }Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *accessPointID; -
Initializes an instance of
GMTSTerminalLocation.Declaration
Swift
init(point: GMTSLatLng?, label terminalLocationLabel: String?, description terminalLocationDescription: String?, placeID: String?, generatedID: String?, accessPointID: String?)Objective-C
- (nonnull instancetype)initWithPoint:(nullable GMTSLatLng *)point label:(nullable NSString *)terminalLocationLabel description: (nullable NSString *)terminalLocationDescription placeID:(nullable NSString *)placeID generatedID:(nullable NSString *)generatedID accessPointID:(nullable NSString *)accessPointID;Parameters
pointThe point location of the terminal.
terminalLocationLabelHuman-readable name of the terminal location.
terminalLocationDescriptionA longer description of the terminal location, which may include how to get to the location.
placeIDThe Place ID of the terminal point.
generatedIDA generated ID if the place ID is not available.
accessPointIDAn access point ID of the current terminal location from the associated trip.
-
Unavailable
Declaration
Objective-C
- (nonnull instancetype)init;