condition_aggregator_nws 0.0.7 copy "condition_aggregator_nws: ^0.0.7" to clipboard
condition_aggregator_nws: ^0.0.7 copied to clipboard

NOAA NWS adapter for the condition_aggregator interface. Maps WinterAlert records to source-neutral Advisory events. Pure Dart.

example/main.dart

// Minimal example for condition_aggregator_nws.
//
// Demonstrates constructing the NWS AdvisoryProvider. The provider
// fetches the NOAA NWS `/alerts/active` GeoJSON feed at runtime — for
// an offline example we just construct + show identity. Wire this
// provider into an `AdvisoryAggregator` from `condition_aggregator`
// to compose with sibling adapters (JMA / OWM Road Risk / etc).

import 'package:condition_aggregator/condition_aggregator.dart';
import 'package:condition_aggregator_nws/condition_aggregator_nws.dart';

void main() {
  final provider = NwsAdvisoryProvider(
    userAgent: '(myapp.example.com, contact@example.com)',
  );
  print('Source: ${provider.source.name}');
  print('Attribution: ${provider.source.attributionString}');
}
0
likes
160
points
210
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

NOAA NWS adapter for the condition_aggregator interface. Maps WinterAlert records to source-neutral Advisory events. Pure Dart.

Repository (GitHub)
View/report issues
Contributing

Topics

#aggregator #advisory #noaa #nws #winter-driving

License

BSD-3-Clause (license)

Dependencies

condition_aggregator, noaa_nws_adapter

More

Packages that depend on condition_aggregator_nws