Skip to main content

parse_geojson

Function parse_geojson 

Source
pub fn parse_geojson(value: &Value) -> Option<Geometry<f64>>
Expand description

Parse a GeoJSON value into a geo::Geometry<f64>.

Supports all standard GeoJSON types plus Elasticsearch’s envelope extension. Coordinates use GeoJSON order: [longitude, latitude].