Skip to main content

Position

Type Alias Position 

Source
pub type Position = Vec<f64>;
Expand description

A GeoJSON position (RFC 7946 §3.1.1): longitude, latitude, and an optional third element (elevation). Modeled as Vec<f64> to match @types/geojson’s Position = number[] (a fixed [f64; N] would export to a TS tuple, which is not mutually assignable with number[]).

Aliased Type§

pub struct Position { /* private fields */ }