[−][src]Struct reverse_geocoder::ReverseGeocoder
A reverse geocoder.
Implementations
impl<'a> ReverseGeocoder<'a>
[src]
pub fn new(loc: &'a Locations) -> ReverseGeocoder<'a>
[src]
Create a new reverse geocoder from a set of locations.
pub fn search(&self, loc: (f64, f64)) -> Option<SearchResult<'_>>
[src]
Search for the closest record to a given (latitude, longitude). Non-finite numbers will always return None.
Auto Trait Implementations
impl<'a> RefUnwindSafe for ReverseGeocoder<'a>
[src]
impl<'a> Send for ReverseGeocoder<'a>
[src]
impl<'a> Sync for ReverseGeocoder<'a>
[src]
impl<'a> Unpin for ReverseGeocoder<'a>
[src]
impl<'a> UnwindSafe for ReverseGeocoder<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,