geosuggest-core
Library to suggest and to find nearest by coordinates cities
[Live demo](https://geosuggest.etatarkin.ru/) with [sources](https://github.com/estin/geosuggest/tree/master/geosuggest-demo)
[HTTP service](https://github.com/estin/geosuggest)
[Examples](https://github.com/estin/geosuggest/tree/master/examples/src)
Usage example
```rust
use tokio;
use anyhow::Result;
use geosuggest_core::{Engine, storage::{self, IndexStorage}};
use geosuggest_utils::{IndexUpdater, IndexUpdaterSettings};
#[tokio::main]
async fn main() -> Result<()> {
println!("Build index...");
let engine = load_engine().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(())
}
async fn load_engine() -> Result