#geocoding #reverse #location #kdtree

reverse_geocoder

Offline reverse geocoder library

8 stable releases (3 major)

4.1.1 Mar 5, 2024
4.0.0 Nov 26, 2023
3.0.1 Jul 12, 2022
3.0.0 Mar 2, 2022
1.0.1 Mar 29, 2020

#150 in Science

Download history 192/week @ 2024-08-12 34/week @ 2024-08-19 24/week @ 2024-08-26 53/week @ 2024-09-02 57/week @ 2024-09-09 35/week @ 2024-09-16 72/week @ 2024-09-23 62/week @ 2024-09-30 12/week @ 2024-10-07 40/week @ 2024-10-14 13/week @ 2024-10-21 26/week @ 2024-10-28 27/week @ 2024-11-04 30/week @ 2024-11-11 25/week @ 2024-11-18 22/week @ 2024-11-25

107 downloads per month
Used in geo2city

MIT/Apache

2MB
130 lines

reverse_geocoder

A fast, offline reverse geocoder.


lib.rs:

A library for fast, offline reverse geocoding. The location data are from GeoNames.

Usage

use reverse_geocoder::{ReverseGeocoder, SearchResult};

fn main() {
    let geocoder = ReverseGeocoder::new();
    let coords = (40.7831, -73.9712);
    let search_result = geocoder.search(coords);
    println!("Distance {}", search_result.distance);
    println!("Record {}", search_result.record);
}

Dependencies

~5–29MB
~431K SLoC