Skip to main content

pio_geo_parse

Function pio_geo_parse 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pio_geo_parse( text: *const c_char, name_hint: *const c_char, errbuf: *mut c_char, errlen: usize, ) -> *mut c_char
Expand description

Normalize a tolerant geographic sidecar (headerless buscoords CSV, aliased CSV/JSON records, GeoJSON Point/LineString) to the canonical GeoJSON form. name_hint (a file name, nullable) picks CSV against JSON when given; otherwise the content is sniffed. The tolerant reader’s notes are not returned here; parse through the Rust or Python surface to see them. Free the returned string with pio_string_free. Returns NULL on input that carries no usable coordinates and writes the message into errbuf.