pub fn geojson(
track: &[TrackPoint],
summary: &FlightSummary,
) -> Result<String, SimError>Expand description
The path and the landings as a GeoJSON FeatureCollection (RFC 7946): a LineString of
[longitude, latitude, height above the ellipsoid] whose properties.time_s lists each
point’s time, and a Point per landing of summary with its time, body, distance and descent
rate. A top-level tool object names the program that wrote it, as json()’s does: a
foreign member, which RFC 7946 section 6.1 allows and readers pass over.
§Errors
SimError::Unsupported for a track of fewer than two points (a LineString needs two);
SimError::Domain for a coordinate that isn’t finite.