15 releases
0.6.4 | Sep 20, 2024 |
---|---|
0.6.3 | Jun 15, 2024 |
0.6.2 | Mar 23, 2024 |
0.5.3 | Dec 27, 2023 |
0.5.1 | Sep 28, 2023 |
#403 in HTTP server
862 downloads per month
Used in qsv
71KB
1.5K
SLoC
geosuggest-utils
Usage example
use tokio;
use anyhow::Result;
use geosuggest_utils::{IndexUpdater, IndexUpdaterSettings};
#[tokio::main]
async fn main() -> Result<()> {
println!("Build index...");
let updater = IndexUpdater::new(IndexUpdaterSettings {
names: None, // no multilang support
..Default::default()
})?;
let engine = updater.build().await?;
println!(
"Suggest result: {:#?}",
engine.suggest::<&str>("Beverley", 1, None, Some(&["us"]))
);
println!(
"Reverse result: {:#?}",
engine.reverse::<&str>((11.138298, 57.510973), 1, None, None)
);
Ok(())
}
Dependencies
~18–49MB
~784K SLoC