ssroute_data_eurostat 0.1.0
ssroute_data_eurostat: ^0.1.0 copied to clipboard
Eurostat SeaRoute / MARNET maritime routing graph data (GeoJSON) for Dart (VM/CLI/server).
ssroute_data_eurostat #
Eurostat SeaRoute / MARNET maritime routing graph data (GeoJSON) for Dart (VM/CLI/server).
Usage #
import 'package:ssroute_data_eurostat/ssroute_data_eurostat.dart';
void main() async {
final nodes = await loadNodes();
final edges = await loadEdges();
final meta = await loadMeta();
print('Loaded ${nodes['features'].length} nodes');
print('Loaded ${edges['features'].length} edges');
}
API #
Future<Map<String, dynamic>> loadNodes()- Returns the nodes GeoJSON FeatureCollectionFuture<Map<String, dynamic>> loadEdges()- Returns the edges GeoJSON FeatureCollectionFuture<Map<String, dynamic>> loadMeta()- Returns the metadata JSON (schema, units, etc.)
Data #
- Nodes: Unique waypoints on the sea surface, each with
id,lon, andlat. - Edges: Directed connections between nodes, each with
from,to, andlength_nm(nautical miles). - Meta: Metadata describing schema, units, and the upstream source.
License #
EUPL-1.2 - See LICENSE for details.
Data derived from Eurostat SeaRoute / MARNET.