public class GPSData extends RPCStruct
Parameter List
| Name | Type | Description | SmartDeviceLink Ver. Available |
|---|---|---|---|
| longitudeDegrees | Double | Minvalue: - 180 Maxvalue: 180 | SmartDeviceLink 2.0 |
| latitudeDegrees | Double | Minvalue: - 90Maxvalue: 90 | SmartDeviceLink 2.0 |
| utcYear | Integer | Minvalue: 2010Maxvalue: 2100 | SmartDeviceLink 2.0 |
| utcMonth | Integer | Minvalue: 1Maxvalue: 12 | SmartDeviceLink 2.0 |
| utcDay | Integer | Minvalue: 1Maxvalue: 31 | SmartDeviceLink 2.0 |
| utcHours | Integer | Minvalue: 0Maxvalue: 23 | SmartDeviceLink 2.0 |
| utcMinutes | Integer | Minvalue: 0Maxvalue: 59 | SmartDeviceLink 2.0 |
| utcSeconds | Integer | Minvalue: 0Maxvalue: 59 | SmartDeviceLink 2.0 |
| pdop | Integer | Positional Dilution of Precision. If undefined or unavailable, then value shall be set to 0.Minvalue: 0Maxvalue: 1000 | SmartDeviceLink 2.0 |
| hdop | Integer | Horizontal Dilution of Precision. If value is unknown, value shall be set to 0.Minvalue: 0Maxvalue: 1000 | SmartDeviceLink 2.0 |
| vdop | Integer | Vertical Dilution of Precision. If value is unknown, value shall be set to 0.Minvalue: 0Maxvalue: 1000 | SmartDeviceLink 2.0 |
| actual | Boolean | True, if coordinates are based on satellites. False, if based on dead reckoning | SmartDeviceLink 2.0 |
| satellites | Integer | Number of satellites in view Minvalue: 0 Maxvalue: 31 | SmartDeviceLink 2.0 |
| altitude | Integer | Altitude in meters Minvalue: -10000 Maxvalue: 10000 Note: SYNC uses Mean Sea Level for calculating GPS. | SmartDeviceLink 2.0 |
| heading | Double | The heading. North is 0, East is 90, etc. Minvalue: 0 Maxvalue: 359.99 Resolution is 0.01 | SmartDeviceLink 2.0 |
| speed | Integer | The speed in KPH Minvalue: 0 Maxvalue: 500 | SmartDeviceLink 2.0 |
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_ACTUAL |
static String |
KEY_ALTITUDE |
static String |
KEY_COMPASS_DIRECTION |
static String |
KEY_DIMENSION |
static String |
KEY_HDOP |
static String |
KEY_HEADING |
static String |
KEY_LATITUDE_DEGREES |
static String |
KEY_LONGITUDE_DEGREES |
static String |
KEY_PDOP |
static String |
KEY_SATELLITES |
static String |
KEY_SHIFTED |
static String |
KEY_SPEED |
static String |
KEY_UTC_DAY |
static String |
KEY_UTC_HOURS |
static String |
KEY_UTC_MINUTES |
static String |
KEY_UTC_MONTH |
static String |
KEY_UTC_SECONDS |
static String |
KEY_UTC_YEAR |
static String |
KEY_VDOP |
KEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
GPSData()
Constructs a newly allocated GPSData object
|
GPSData(Double longitudeDegrees,
Double latitudeDegrees)
Constructs a newly allocated GPSData object
|
GPSData(Hashtable<String,Object> hash)
Constructs a newly allocated GPSData object indicated by the Hashtable parameter
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getActual()
get what coordinates based on
|
Double |
getAltitude()
get altitude in meters
|
CompassDirection |
getCompassDirection() |
Dimension |
getDimension() |
Double |
getHdop()
get the horizontal dilution of precision
|
Double |
getHeading()
get the heading
|
Double |
getLatitudeDegrees()
get latitude degrees
|
Double |
getLongitudeDegrees()
get longitude degrees
|
Double |
getPdop()
get the positional dilution of precision
|
Integer |
getSatellites()
get the number of satellites in view
|
Boolean |
getShifted()
Gets the shifted param for GPSData.
|
Double |
getSpeed()
get the speed in KPH
|
Integer |
getUtcDay()
get utc day
|
Integer |
getUtcHours()
get utc hours
|
Integer |
getUtcMinutes()
get utc minutes
|
Integer |
getUtcMonth()
get utc month
|
Integer |
getUtcSeconds()
get utc seconds
|
Integer |
getUtcYear()
get utc year
|
Double |
getVdop()
get the vertical dilution of precision
|
GPSData |
setActual(Boolean actual)
set what coordinates based on
|
GPSData |
setAltitude(Double altitude)
set altitude in meters
|
GPSData |
setCompassDirection(CompassDirection compassDirection) |
GPSData |
setDimension(Dimension dimension) |
GPSData |
setHdop(Double hdop)
set the horizontal dilution of precision
|
GPSData |
setHeading(Double heading)
set the heading.North is 0, East is 90, etc.
|
GPSData |
setLatitudeDegrees(Double latitudeDegrees)
set latitude degrees
|
GPSData |
setLongitudeDegrees(Double longitudeDegrees)
set longitude degrees
|
GPSData |
setPdop(Double pdop)
set the positional dilution of precision
|
GPSData |
setSatellites(Integer satellites)
set the number of satellites in view
|
GPSData |
setShifted(Boolean shifted)
Sets the shifted param for GPSData.
|
GPSData |
setSpeed(Double speed)
set speed in KPH
|
GPSData |
setUtcDay(Integer utcDay)
set utc day
|
GPSData |
setUtcHours(Integer utcHours)
set utc hours
|
GPSData |
setUtcMinutes(Integer utcMinutes)
set utc minutes
|
GPSData |
setUtcMonth(Integer utcMonth)
set utc month
|
GPSData |
setUtcSeconds(Integer utcSeconds)
set utc seconds
|
GPSData |
setUtcYear(Integer utcYear)
set utc year
|
GPSData |
setVdop(Double vdop)
set the vertical dilution of precision
|
clone, deserializeJSON, equals, format, formatObject, getBoolean, getBulkData, getDouble, getFloat, getInteger, getLong, getMessageTypeName, getObject, getStore, getStoreValue, getString, getValue, getValueForString, hashCode, hasKey, isPayloadProtected, serializeJSON, serializeJSON, setBulkData, setPayloadProtected, setValuepublic static final String KEY_LONGITUDE_DEGREES
public static final String KEY_LATITUDE_DEGREES
public static final String KEY_UTC_YEAR
public static final String KEY_UTC_MONTH
public static final String KEY_UTC_DAY
public static final String KEY_UTC_HOURS
public static final String KEY_UTC_MINUTES
public static final String KEY_UTC_SECONDS
public static final String KEY_COMPASS_DIRECTION
public static final String KEY_PDOP
public static final String KEY_VDOP
public static final String KEY_HDOP
public static final String KEY_ACTUAL
public static final String KEY_SATELLITES
public static final String KEY_DIMENSION
public static final String KEY_ALTITUDE
public static final String KEY_HEADING
public static final String KEY_SPEED
public static final String KEY_SHIFTED
public GPSData()
public GPSData(Hashtable<String,Object> hash)
hash - The Hashtable to usepublic GPSData setLongitudeDegrees(@NonNull Double longitudeDegrees)
longitudeDegrees - degrees of the longitudinal positionpublic Double getLongitudeDegrees()
public GPSData setLatitudeDegrees(@NonNull Double latitudeDegrees)
latitudeDegrees - degrees of the latitudinal positionpublic Double getLatitudeDegrees()
public Integer getUtcYear()
public GPSData setUtcMonth(Integer utcMonth)
utcMonth - utc monthpublic Integer getUtcMonth()
public Integer getUtcDay()
public GPSData setUtcHours(Integer utcHours)
utcHours - utc hourspublic Integer getUtcHours()
public GPSData setUtcMinutes(Integer utcMinutes)
utcMinutes - utc minutespublic Integer getUtcMinutes()
public GPSData setUtcSeconds(Integer utcSeconds)
utcSeconds - utc secondspublic Integer getUtcSeconds()
public GPSData setCompassDirection(CompassDirection compassDirection)
public CompassDirection getCompassDirection()
public GPSData setPdop(Double pdop)
pdop - the positional dilution of precisionpublic Double getPdop()
public GPSData setHdop(Double hdop)
hdop - the horizontal dilution of precisionpublic Double getHdop()
public GPSData setVdop(Double vdop)
vdop - the vertical dilution of precisionpublic Double getVdop()
public GPSData setActual(Boolean actual)
actual - True, if coordinates are based on satellites.False, if based on dead reckoningpublic Boolean getActual()
public GPSData setSatellites(Integer satellites)
satellites - the number of satellites in viewpublic Integer getSatellites()
public Dimension getDimension()
public GPSData setAltitude(Double altitude)
altitude - altitude in meterspublic Double getAltitude()
public GPSData setHeading(Double heading)
heading - the heading.public Double getHeading()
public Double getSpeed()
public GPSData setShifted(Boolean shifted)
shifted - True, if GPS lat/long, time, and altitude have been purposefully shifted (requires a proprietary algorithm to unshift).
False, if the GPS data is raw and un-shifted.
If not provided, then value is assumed False.public Boolean getShifted()