Skip to main content

Crate geolith_search_builder

Crate geolith_search_builder 

Source
Expand description

geolith-search-builder: Overture and OSM data to a geocoding index.

run reads Overture places, addresses and divisions and, optionally, an OSM PBF; resolves each record’s admin hierarchy; and writes the records as a Postgres COPY file with its schema, Photon or Pelias bulk NDJSON, or a .glx file whose search part geolith servers read.

Re-exports§

pub use error::SearchError;
pub use pipeline::run;

Modules§

admin
Admin hierarchy resolution by point-in-polygon lookup.
areas
OSM areas that are relations: named venue multipolygons and named administrative boundaries.
dedup
OSM-against-Overture dedup with bounded memory.
division
Overture divisions/division points → geocoding records.
error
The error of the geocoding build.
importance
Place importance, as Nominatim computes it.
india
India’s legal boundary (Survey of India) in the admin index.
osm
OSM feature → GeocodingRecord builders, and dedup against Overture.
output
Geocoding output format serializers.
overture
Overture feature → GeocodingRecord builders.
pipeline
Geocoding pipeline orchestration.
place_importance
The importance of a settlement: its Wikipedia row, or a floor from what the inputs say it is.
record
Geocoding record type and search_text builder.
rings
Rings from the ways of an OSM multipolygon or boundary relation.
shape
Place outlines for the .glx file.
synonyms
Other words people search a place by: “collector office” for a Collectorate, “government” for “Govt.”, “cinema” for a talkies.

Structs§

SearchOptions
What one search build reads and writes.

Enums§

PgIndexFlavor
Text index to build over the geocoding search_text column.