reverse_geocode

Function reverse_geocode 

Source
pub fn reverse_geocode(latitude: f64, longitude: f64) -> GeocodeBuilder
Expand description

Begins building a reverse-geocode search with the given coordinate.

ยงExamples

use egg_mode::place::{self, PlaceType};
let result = place::reverse_geocode(51.507222, -0.1275)
    .granularity(PlaceType::City)
    .call(&token)
    .await
    .unwrap();

assert!(result.results.iter().any(|pl| pl.full_name == "London, England"));