Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
JavaSE Documentation
NavigationServiceData

Class NavigationServiceData

Hierarchy

java.lang.Object
     com.smartdevicelink.proxy.RPCStruct

Package
com.smartdevicelink.proxy.rpc

Overview

This data is related to what a navigation service would provide.

Fields

KEY_TIMESTAMP

public static final java.lang.String KEY_TIMESTAMP
Constant Value
"timeStamp"

KEY_ORIGIN

public static final java.lang.String KEY_ORIGIN
Constant Value
"origin"

KEY_DESTINATION

public static final java.lang.String KEY_DESTINATION
Constant Value
"destination"

KEY_DESTINATION_ETA

public static final java.lang.String KEY_DESTINATION_ETA
Constant Value
"destinationETA"

KEY_INSTRUCTIONS

public static final java.lang.String KEY_INSTRUCTIONS
Constant Value
"instructions"

KEY_NEXT_INSTRUCTION_ETA

public static final java.lang.String KEY_NEXT_INSTRUCTION_ETA
Constant Value
"nextInstructionETA"

KEY_NEXT_INSTRUCTION_DISTANCE

public static final java.lang.String KEY_NEXT_INSTRUCTION_DISTANCE
Constant Value
"nextInstructionDistance"

KEY_NEXT_INSTRUCTION_DISTANCE_SCALE

public static final java.lang.String KEY_NEXT_INSTRUCTION_DISTANCE_SCALE
Constant Value
"nextInstructionDistanceScale"

KEY_PROMPT

public static final java.lang.String KEY_PROMPT
Constant Value
"prompt"

Inherited Fields

From Class Fields
com.smartdevicelink.proxy.RPCStruct KEY_BULK_DATA, KEY_PROTECTED, store

Constructors

public NavigationServiceData()

public NavigationServiceData(java.util.Hashtable<java.lang.String, java.lang.Object> hash)

Constructor Parameters

hash

public NavigationServiceData(DateTime timeStamp)

Constructor Parameters

timeStamp

Methods

setTimeStamp( DateTime timeStamp )

This is the timeStamp of when the data was generated. This is to ensure any time or distance given in the data can accurately be adjusted if necessary.

public com.smartdevicelink.proxy.rpc.NavigationServiceData setTimeStamp(DateTime timeStamp)

Method Parameters

timeStamp
-

getTimeStamp()

This is the timeStamp of when the data was generated. This is to ensure any time or distance given in the data can accurately be adjusted if necessary.

public com.smartdevicelink.proxy.rpc.DateTime getTimeStamp()

setOrigin( LocationDetails origin )

public com.smartdevicelink.proxy.rpc.NavigationServiceData setOrigin(LocationDetails origin)

Method Parameters

origin
-

getOrigin()

public com.smartdevicelink.proxy.rpc.LocationDetails getOrigin()

setDestination( LocationDetails destination )

public com.smartdevicelink.proxy.rpc.NavigationServiceData setDestination(LocationDetails destination)

Method Parameters

destination
-

getDestination()

public com.smartdevicelink.proxy.rpc.LocationDetails getDestination()

setDestinationETA( DateTime destinationETA )

public com.smartdevicelink.proxy.rpc.NavigationServiceData setDestinationETA(DateTime destinationETA)

Method Parameters

destinationETA
-

getDestinationETA()

public com.smartdevicelink.proxy.rpc.DateTime getDestinationETA()

setInstructions( java.util.List<com.smartdevicelink.proxy.rpc.NavigationInstruction> instructions )

This array should be ordered with all remaining instructions. The start of this array should always contain the next instruction.

public com.smartdevicelink.proxy.rpc.NavigationServiceData setInstructions(java.util.List<com.smartdevicelink.proxy.rpc.NavigationInstruction> instructions)

Method Parameters

instructions
-

getInstructions()

This array should be ordered with all remaining instructions. The start of this array should always contain the next instruction.

public java.util.List getInstructions()

setNextInstructionETA( DateTime nextInstructionETA )

public com.smartdevicelink.proxy.rpc.NavigationServiceData setNextInstructionETA(DateTime nextInstructionETA)

Method Parameters

nextInstructionETA
-

getNextInstructionETA()

public com.smartdevicelink.proxy.rpc.DateTime getNextInstructionETA()

setNextInstructionDistance( Float nextInstructionDistance )

The distance to this instruction from current location. This should only be updated every .1 unit of distance. For more accuracy the consumer can use the GPS location of itself and the next instruction.

public com.smartdevicelink.proxy.rpc.NavigationServiceData setNextInstructionDistance(Float nextInstructionDistance)

Method Parameters

nextInstructionDistance
-

getNextInstructionDistance()

The distance to this instruction from current location. This should only be updated every .1 unit of distance. For more accuracy the consumer can use the GPS location of itself and the next instruction.

public java.lang.Float getNextInstructionDistance()

setNextInstructionDistanceScale( Float nextInstructionDistanceScale )

Distance till next maneuver (starting from) from previous maneuver.

public com.smartdevicelink.proxy.rpc.NavigationServiceData setNextInstructionDistanceScale(Float nextInstructionDistanceScale)

Method Parameters

nextInstructionDistanceScale
-

getNextInstructionDistanceScale()

Distance till next maneuver (starting from) from previous maneuver.

public java.lang.Float getNextInstructionDistanceScale()

setPrompt( String prompt )

This is a prompt message that should be conveyed to the user through either display or voice (TTS). This param will change often as it should represent the following: approaching instruction, post instruction, alerts that affect the current navigation session, etc.

public com.smartdevicelink.proxy.rpc.NavigationServiceData setPrompt(String prompt)

Method Parameters

prompt
-

getPrompt()

This is a prompt message that should be conveyed to the user through either display or voice (TTS). This param will change often as it should represent the following: approaching instruction, post instruction, alerts that affect the current navigation session, etc.

public java.lang.String getPrompt()

Inherited Methods

From Class Methods
com.smartdevicelink.proxy.RPCStruct getStoreValue, getStore, deserializeJSON, serializeJSON, serializeJSON, format, getBulkData, setBulkData, setPayloadProtected, isPayloadProtected, getMessageTypeName, hasKey, setValue, getValue, getObject, formatObject, getValueForString, getString, getInteger, getDouble, getFloat, getBoolean, getLong, clone, equals, hashCode
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section