code wiki / _hdl_build / nx_geo_geocode.nx
nx_geo_geocode.nx
buildroot/runtime/_hdl_build/nx_geo_geocode.nx
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
imports: nx_syscalls.nx
imported by: nx_geo_geocode_gate.nx
structs
| none |
consts
| none |
functions
| 8 | func gz_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 11 | func gz_signed(buf: *u8, s: i64, e: i64) -> i64 called by 1: geo_gaz_parse |
| 26 | func gz_lc(c: i64) -> i64 called by 1: gz_ci_eq |
| 32 | func gz_ci_eq(a: *u8, b: *u8, n: i64) -> i64 |
| 43 | func geo_gaz_parse(gaz: *u8, gn: i64, pts: *i64, noff: *i64, nlen: *i64, maxp: i64) -> i64 |
| 75 | func geocode_forward(gaz: *u8, noff: *i64, nlen: *i64, count: i64, query: *u8) -> i64 |