Skip to main content

parse

Function parse 

Source
pub fn parse(text: &str) -> Result<GeoJson, GeolithError>
Expand description

The GeoJSON document text, every coordinate the correctly rounded f64 of its decimal text.

§Errors

GeolithError::Json when text is not GeoJSON; GeolithError::GeoJson when a coordinates array holds anything but numbers that match its geometry.