Class: IWNMEAFormatter

IWNMEAFormatter


new IWNMEAFormatter()

A class used to create NMEA logs, especially from geolocation events. This class is part of the module navigation.

Methods


format(event)

Formats an object containing a coordinate and an accuracy to a NMEA log line. This object can be an onpositionchange event from IWGeoLocationUtils or a object with this properties:
Property Type Description
coordinate IWCoordinate the coordinate of the event
accuracy number the accuracy of the coordinate in meters
time Date time of the event (optional, defaults to the current time)
Parameters:
Name Type Description
event
Returns:
Type
String

formatComment(comment)

Returns a proprietary line with a comment, starting with $PIWGCOMMENT
Parameters:
Name Type Description
comment String the comment
Returns:
the formatted comment
Type
String