Skip to main content

write_gpx

Function write_gpx 

Source
pub(crate) fn write_gpx(path: &Path, waypoints: &[Waypoint]) -> Result<()>
Expand description

Writes a route as a GPX 1.1 <rte> – the format both GPS units and chart plotters read a planned route back from, so a route this crate found can be opened somewhere other than this CLI’s own text output.

The full xsi:schemaLocation header, not just the bare namespace: left out, the file is still well-formed XML, but stricter GPX readers (several marine navigation apps among them) validate against the schema declaration itself and refuse anything that doesn’t carry one.