Skip to main content

geocoder

Function geocoder 

Source
pub fn geocoder() -> &'static ReverseGeocoder
Expand description

Returns the process-wide reverse geocoder, building it on first access. Callers doing many lookups in a loop (e.g. videre watch’s location stage) should call this once and reuse the reference rather than calling location_name per coordinate, since location_name itself goes through this same cached instance but still incurs a function-call/lookup pattern per site, using geocoder() directly makes the “build once” intent explicit at bulk call sites.