1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! Import and export of narratives in various formats.
//!
//! This module provides converters for reading and writing
//! narratives in standard geographic data formats.
//!
//! # Supported Formats
//!
//! - [`GeoJsonFormat`] - Standard geographic data format
//! - [`CsvFormat`] - Tabular data with configurable columns
//! - [`JsonFormat`] - Custom JSON format optimized for narratives
//! - GPX - GPS exchange format (optional feature, TODO)
//!
//! # Example
//!
//! ```rust
//! use spatial_narrative::io::{GeoJsonFormat, CsvFormat, JsonFormat, Format};
//! use spatial_narrative::prelude::*;
//!
//! let narrative = Narrative::builder()
//! .title("My Story")
//! .event(Event::builder()
//! .location(Location::new(40.7128, -74.006))
//! .timestamp(Timestamp::now())
//! .text("Something happened")
//! .build())
//! .build();
//!
//! // Export to GeoJSON
//! let geojson_format = GeoJsonFormat::new();
//! let geojson = geojson_format.export_str(&narrative).unwrap();
//!
//! // Export to CSV
//! let csv_format = CsvFormat::new();
//! let csv = csv_format.export_str(&narrative).unwrap();
//!
//! // Export to custom JSON
//! let json_format = JsonFormat::pretty();
//! let json = json_format.export_str(&narrative).unwrap();
//! ```
pub use ;
pub use Format;
pub use ;
pub use JsonFormat;