#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

#145 in Science

Download history 28/week @ 2024-07-21 41/week @ 2024-07-28 64/week @ 2024-08-04 192/week @ 2024-08-11 36/week @ 2024-08-18 24/week @ 2024-08-25 54/week @ 2024-09-01 56/week @ 2024-09-08 35/week @ 2024-09-15 74/week @ 2024-09-22 59/week @ 2024-09-29 14/week @ 2024-10-06 40/week @ 2024-10-13 14/week @ 2024-10-20 24/week @ 2024-10-27 16/week @ 2024-11-03

96 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