SendLocation is used to send a location to the navigation system for navigation
@since RPC 3.0
Create a SendLocation
request with an address object, without Lat/Long coordinates.
- (nonnull instancetype)initWithAddress:(nonnull SDLOasisAddress *)address
addressLines:
(nullable NSArray<NSString *> *)addressLines
locationName:(nullable NSString *)locationName
locationDescription:(nullable NSString *)locationDescription
phoneNumber:(nullable NSString *)phoneNumber
image:(nullable SDLImage *)image
deliveryMode:(nullable SDLDeliveryMode)deliveryMode
timeStamp:(nullable SDLDateTime *)timeStamp;
init(address: SDLOasisAddress, addressLines: [String]?, locationName: String?, locationDescription: String?, phoneNumber: String?, image: SDLImage?, deliveryMode: SDLDeliveryMode?, timeStamp: SDLDateTime?)
The address information to be passed to the nav system for determining the route
The user-facing address
The user-facing name of the location
The user-facing description of the location
The phone number for the location; the user could use this to call the location
A user-facing image for the location
How the location should be sent to the nav system
The estimated arrival time for the location (this will also likely be calculated by the nav system later, and may be different than your estimate). This is used to show the user approximately how long it would take to navigate here
A SendLocation
object
Create a SendLocation
request with Lat/Long coordinate, not an address object
- (nonnull instancetype)
initWithLongitude:(double)longitude
latitude:(double)latitude
locationName:(nullable NSString *)locationName
locationDescription:(nullable NSString *)locationDescription
address:(nullable NSArray<NSString *> *)address
phoneNumber:(nullable NSString *)phoneNumber
image:(nullable SDLImage *)image;
init(longitude: Double, latitude: Double, locationName: String?, locationDescription: String?, address: [String]?, phoneNumber: String?, image: SDLImage?)
The longitudinal coordinate of the location
The latitudinal coordinate of the location
The user-facing name of the location
The user-facing description of the location
The user-facing address
The phone number for the location; the user could use this to call the location
A user-facing image for the location
A SendLocation
object
Create a SendLocation
request with Lat/Long coordinate and an address object and let the nav system decide how to parse it
- (nonnull instancetype)
initWithLongitude:(double)longitude
latitude:(double)latitude
locationName:(nullable NSString *)locationName
locationDescription:(nullable NSString *)locationDescription
displayAddressLines:(nullable NSArray<NSString *> *)displayAddressLines
phoneNumber:(nullable NSString *)phoneNumber
image:(nullable SDLImage *)image
deliveryMode:(nullable SDLDeliveryMode)deliveryMode
timeStamp:(nullable SDLDateTime *)timeStamp
address:(nullable SDLOasisAddress *)address;
init(longitude: Double, latitude: Double, locationName: String?, locationDescription: String?, displayAddressLines: [String]?, phoneNumber: String?, image: SDLImage?, deliveryMode: SDLDeliveryMode?, timeStamp: SDLDateTime?, address: SDLOasisAddress?)
The longitudinal coordinate of the location
The latitudinal coordinate of the location
The user-facing name of the location
The user-facing description of the location
The user-facing address
The phone number for the location; the user could use this to call the location
A user-facing image for the location
How the location should be sent to the nav system
The estimated arrival time for the location (this will also likely be calculated by the nav system later, and may be different than your estimate). This is used to show the user approximately how long it would take to navigate here
The address information to be passed to the nav system for determining the route
A SendLocation
object
The longitudinal coordinate of the location. Either the latitude / longitude OR the address
must be provided.
Float, Optional, -180.0 - 180.0
@property (nonatomic, copy, nullable) NSNumber<SDLFloat> *longitudeDegrees;
@NSCopying var longitudeDegrees: (NSNumber & SDLFloat)? { get set }
The latitudinal coordinate of the location. Either the latitude / longitude OR the address
must be provided.
Float, Optional, -90.0 - 90.0
@property (nonatomic, copy, nullable) NSNumber<SDLFloat> *latitudeDegrees;
@NSCopying var latitudeDegrees: (NSNumber & SDLFloat)? { get set }
Name / title of intended location
Optional, Maxlength = 500 char
@property (nonatomic, copy, nullable) NSString *locationName;
var locationName: String? { get set }
Description of the intended location / establishment
Optional, MaxLength = 500 char
@property (nonatomic, copy, nullable) NSString *locationDescription;
var locationDescription: String? { get set }
Location address for display purposes only.
Contains String, Optional, Max Array Length = 4, Max String Length = 500
@property (nonatomic, copy, nullable) NSArray<NSString *> *addressLines;
var addressLines: [String]? { get set }
Phone number of intended location / establishment
Optional, Max Length = 500
@property (nonatomic, copy, nullable) NSString *phoneNumber;
var phoneNumber: String? { get set }
Image / icon of intended location
Optional
@property (nonatomic, strong, nullable) SDLImage *locationImage;
var locationImage: SDLImage? { get set }
Mode in which the sendLocation request is sent
Optional
@property (nonatomic, strong, nullable) SDLDeliveryMode deliveryMode;
var deliveryMode: SDLDeliveryMode? { get set }
Arrival time of Location. If multiple SendLocations are sent, this will be used for sorting as well.
Optional
@property (nonatomic, strong, nullable) SDLDateTime *timeStamp;
var timeStamp: SDLDateTime? { get set }
Address to be used for setting destination. Either the latitude / longitude OR the address
must be provided.
Optional
@property (nonatomic, strong, nullable) SDLOasisAddress *address;
var address: SDLOasisAddress? { get set }