code wiki / _hdl_build / nx_geo_geocode.nx

nx_geo_geocode.nx

buildroot/runtime/_hdl_build/nx_geo_geocode.nx

3105 B85 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind librarytopic geo
docsdependenciesstructsconstsfunctions

about

nx_geo_geocode.nx -- LIB: GEO-006 geocoding (address/place <-> coordinate). Sovereign: the place gazetteer is DATA in the store (open data / OSM as last-mile DATA, never substrate); FORWARD = name -> coords (case-insensitive match), REVERSE = coords -> nearest place (REUSES GEO-009 geo_nearest -- no new geometry). Pure-integer microdegree coords -> deterministic. The seeded gazetteer is small + extensible; swap in a larger open-data set without code change. ORIGINAL

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_geo_geocode.nx nx_geo_geocode_gate.nx

imports: nx_syscalls.nx

imported by: nx_geo_geocode_gate.nx

structs

none

consts

none

functions

8func gz_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: geocode_forwardmain
11func gz_signed(buf: *u8, s: i64, e: i64) -> i64
called by 1: geo_gaz_parse
26func gz_lc(c: i64) -> i64
called by 1: gz_ci_eq
32func gz_ci_eq(a: *u8, b: *u8, n: i64) -> i64
called by 1: geocode_forward calls 1: gz_lc
43func geo_gaz_parse(gaz: *u8, gn: i64, pts: *i64, noff: *i64, nlen: *i64, maxp: i64) -> i64
called by 1: main calls 1: gz_signed
75func geocode_forward(gaz: *u8, noff: *i64, nlen: *i64, count: i64, query: *u8) -> i64
called by 1: main calls 2: gz_lengz_ci_eq