Nmea Location Data Source
An NMEA location data source object. This object will parse specific NMEA messages pushed into it. Valid GGA, GSA, GST, GSV, RMC, VTG messages are parsed and, depending upon the message type and contents, a LocationDataSourceLocationChangedEvent or NmeaLocationDataSourceSatellitesChangedEvent may be raised. The LocationDataSourceLocationChangedEvent will return a NmeaLocation object. The NmeaLocationDataSourceSatellitesChangedEvent will return an array of NmeaSatelliteInfo objects. This data source is based on NMEA version 4.11 (November 2018).
Since
200.1.0
Constructors
Creates an NMEA data source object.
Properties
A SharedFlow that emits location changes.
The com.arcgismaps.geometry.DatumTransformation to be used in the project operation. If set, this property will be used as the com.arcgismaps.geometry.DatumTransformation in the call to com.arcgismaps.geometry.GeometryEngine.projectOrNull. For this property to be used the NmeaLocationDataSource.outputSpatialReference also has to be set.
If set calls the com.arcgismaps.geometry.GeometryEngine.projectOrNull method to generate the output spatial reference. The projected point will be stored in NmeaLocation.position. If this property is null the NmeaLocation.position will be contain the original incoming x,y,z values from the NMEA data sentence and the NmeaLocationDataSource.receiverSpatialReference.
The com.arcgismaps.geometry.SpatialReference to be assigned to the output NmeaLocation, the default is WGS84 By default this will be WGS84 for its horizontal (WKID=4326) and vertical reference systems (WKID=115700), this can be set to a different com.arcgismaps.geometry.SpatialReference if a receiver returns locations in a different reference system.
A SharedFlow that emits satellite info changes.
Inherited properties
An error that describes a problem encountered while starting or running the LocationDataSource. This property is used to notify the user about errors that occur in LocationDataSource. Such errors are critical for LocationDataSource and will cause it stop. If LocationDataSource cannot be started, or it stopped after a successful start, this property will store information related to what caused LocationDataSource to stop.
A SharedFlow that emits heading changes.
The current status of the location data source. The status indicates if the location data source is starting, started, stopping, stopped, and has failed to start.
Functions
Reads the input NMEA data creating a NmeaLocation. The NMEA location data source needs to be started before calling this method. When pushing data: