GMSNavigationWaypoint
@interface GMSNavigationWaypoint : NSObject <NSCopying, NSMutableCopying>An immutable waypoint class, used to specify navigation destinations. It may be initialized from
a CLLocationCoordinate2D or a Google Place ID.
- 
                  
                  DeclarationSwift var title: String { get }Objective-C @property(nonatomic, readonly) NSString *title
- 
                  
                  The coordinates of the waypoint. This is kCLLocationCoordinate2DInvalidif this waypoint was initialized from a Place ID.DeclarationSwift var coordinate: CLLocationCoordinate2D { get }Objective-C @property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
- 
                  
                  The Place ID of this waypoint. This is nil if this waypoint was initialized from coordinates. DeclarationSwift var placeID: String? { get }Objective-C @property (nonatomic, copy, readonly, nullable) NSString *placeID;
- 
                  
                  Whether it is preferred to route the driver to the same side of the road. The route will arrive on the preferred side of the road unless there is a significant delay caused by a road closure or slow-moving traffic. Default to NO. DeclarationSwift var preferSameSideOfRoad: Bool { get }Objective-C @property (nonatomic, readonly) BOOL preferSameSideOfRoad;
- 
                  
                  An angle used to express the direction of traffic on the side of the road that the vehicle should arrive on. Consequently, it is not useful for one-way streets. Units expressed in degrees [0, 360], where 0 means North and angles increase clockwise. Default and unset value is -1. DeclarationSwift var preferredHeading: Int32 { get }Objective-C @property (nonatomic, readonly) int32_t preferredHeading;
- 
                  
                  Indicates that the waypoint is meant for vehicles to stop at, where the intention is to either pickup or drop-off. When you set this value, waypoints on roads that are unsuitable for pickup and drop-off may be adjusted to a more suitable location. This option works only for DRIVE and TWO_WHEELER travel modes. Default to NO. Note: In certain cases, particularly in metro areas, waypoints can not be set within tunnels even if vehicleStopover is set to NO. DeclarationSwift var vehicleStopover: Bool { get }Objective-C @property (nonatomic, readonly) BOOL vehicleStopover;
- 
                  
                  Initializes this GMSNavigationWaypointto represent a location specified by 2D coordinates.DeclarationSwift init?(location: CLLocationCoordinate2D, title: String)Objective-C - (nullable instancetype)initWithLocation:(CLLocationCoordinate2D)location title:(nonnull NSString *)title;ParameterslocationThe location of this waypoint. titleA string representing the name of the waypoint. Return ValueAn instance of GMSNavigationWaypoint,or nil if the location is not valid.
- 
                  
                  Initializes this GMSNavigationWaypointto represent a location specified by a Place ID.DeclarationSwift init?(placeID: String, title: String)Objective-C - (nullable instancetype)initWithPlaceID:(nonnull NSString *)placeID title:(nonnull NSString *)title;ParametersplaceIDThe Google Place ID for this waypoint. titleA string representing the name of the waypoint. Return ValueAn instance of GMSNavigationWaypoint,or nil if the Place ID string is nil or empty.
- 
                  
                  Initializes GMSNavigationWaypointto represent a location specified by 2D coordinates and side of road preferences.DeclarationSwift convenience init?(location: CLLocationCoordinate2D, title: String, preferSameSideOfRoad: Bool)Objective-C - (nullable instancetype)initWithLocation:(CLLocationCoordinate2D)location title:(nonnull NSString *)title preferSameSideOfRoad:(BOOL)preferSameSideOfRoad;ParameterslocationThe latitude and longitude of the waypoint. titleA string representing the name of the waypoint. preferSameSideOfRoadWhether it is preferred to route the driver to the same side of the road. The route will arrive on the preferred side of the road unless there is a significant delay caused by a road closure or slow-moving traffic. Return ValueAn instance of GMSNavigationWaypoint,or nil if the location is not valid.
- 
                  
                  Initializes GMSNavigationWaypointto represent a location specified by 2D coordinates and side of road preferences.DeclarationSwift convenience init?(location: CLLocationCoordinate2D, title: String, preferredSegmentHeading: Int32)Objective-C - (nullable instancetype)initWithLocation:(CLLocationCoordinate2D)location title:(nonnull NSString *)title preferredSegmentHeading:(int32_t)preferredSegmentHeading;ParameterslocationThe latitude and longitude of the waypoint. titleA string representing the name of the waypoint. preferredSegmentHeadingAn angle used to express the direction of traffic on the side of the road that the vehicle should arrive on. Consequently, it is not useful for one-way streets. Units expressed in degrees [0, 360], where 0 means North. Return ValueAn instance of GMSNavigationWaypoint,or nil if the location or the preferredSegmentHeading is not valid.
- 
                  
                  Unavailable DeclarationObjective-C - (null_unspecified instancetype)init NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE;
- 
                  
                  DeclarationSwift func copy() -> GMSNavigationWaypointObjective-C - (GMSNavigationWaypoint *)copy;
- 
                  
                  DeclarationSwift func mutableCopy() -> GMSNavigationMutableWaypointObjective-C - (GMSNavigationMutableWaypoint *)mutableCopy;