condition_aggregator_jma 0.1.3
condition_aggregator_jma: ^0.1.3 copied to clipboard
JMA (気象庁) adapter for the condition_aggregator interface. Maps JMA disaster-info XML feeds to source-neutral Advisory typed events. Pure Dart.
example/main.dart
// Minimal example for condition_aggregator_jma.
//
// Demonstrates constructing the JMA AdvisoryProvider. The provider
// fetches the JMA disaster-info atom 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 (NWS / OWM Road Risk / etc).
import 'package:condition_aggregator/condition_aggregator.dart';
import 'package:condition_aggregator_jma/condition_aggregator_jma.dart';
void main() {
final provider = JmaAdvisoryProvider();
print('Source: ${provider.source.name}');
print('Attribution: ${provider.source.attributionString}');
}