Class: LatLonAlt

OSH.DataReceiver.LatLonAlt

This datasource provides parsing to Lat,Lon,Alt location.
Data: ISODATE,LAT,LON,ALT

Constructor

new LatLonAlt()

Source:

Methods

parseData($super, data) → {Object}

Extract data from the message. The data are got such as:

  • lat: tokens[1]
  • lon: tokens [2]
  • alt: tokens[3]

.

Parameters:
Name Type Description
$super function

the parseData super method

data Object

the data to parse

Source:
Returns:

the parsed data

Type
Object
Example
<p>{<br>  lat:43.61758626,<br>  lon: 1.42376557,<br>  alt:100<br>}</p>

parseTimeStamp($super, data) → {number}

Extracts timestamp from the message. The timestamp is the first token got from split(',')

Parameters:
Name Type Description
$super function

the parseTimeStamp super method

data string

the data to parse

Source:
Returns:

the extracted timestamp

Type
number