Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deven98/raw_gnss
https://github.com/deven98/raw_gnss
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/deven98/raw_gnss
- Owner: deven98
- License: bsd-2-clause
- Created: 2020-07-06T08:39:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-23T02:42:10.000Z (over 1 year ago)
- Last Synced: 2024-09-28T05:55:14.864Z (about 2 months ago)
- Language: Dart
- Size: 199 KB
- Stars: 13
- Watchers: 2
- Forks: 9
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
raw_gnss 📡
raw_gnss 📡 makes it easy to fetch raw GNSS data including GNSS Measurement Events, GNSS Navigation Messages, and GNSS Status Events.
## Get Raw GNSS Data On Android
Since Android 7.0, Android exposed the GNSS APIs required to get raw data points opening up the location black box earlier.
raw_gnss allows you to easily fetch the GNSSMeasurementEvents, GNSSNavigationMessages and GNSSStatus via inbuilt streams.
### Usage
*GNSS Measurements*
```dart
RawGnss().gnssMeasurementEvents.listen((e) {});
```*GNSS Navigation Messages*
```dart
RawGnss().gnssNavigationMessageEvents.listen((e) {});
```
*GNSS Status*```dart
RawGnss().gnssStatusEvents.listen((e) {});
```### Example: Fetch GNSSMeasurementModels
```dart
StreamBuilder(
builder: (context, snapshot) {
if (snapshot.data == null) {
return CircularProgressIndicator();
}return ListView.builder(
itemBuilder: (context, position) {
return ListTile(
title: Text(
"Satellite: ${snapshot.data!.measurements![position].svid}"),
);
},
itemCount: snapshot.data!.measurements?.length ?? 0,
);
},
stream: RawGnss().gnssMeasurementEvents,
),
```iOS does not yet expose raw location data, hence this plugin does not support iOS as of yet.