pub struct ReverseGeocodingApi { /* private fields */ }Expand description
Reverse Geocoding package — 3 endpoints.
Implementations§
Source§impl ReverseGeocodingApi
impl ReverseGeocodingApi
pub fn new(http: HttpClient) -> Self
Sourcepub fn reverse_geocode(
&self,
latitude: f64,
longitude: f64,
locality_language: &str,
) -> Result<ReverseGeocodeResponse>
pub fn reverse_geocode( &self, latitude: f64, longitude: f64, locality_language: &str, ) -> Result<ReverseGeocodeResponse>
Converts GPS coordinates to city, locality, subdivision, and country.
Sourcepub fn reverse_geocode_with_timezone(
&self,
latitude: f64,
longitude: f64,
locality_language: &str,
) -> Result<ReverseGeocodeWithTimezoneResponse>
pub fn reverse_geocode_with_timezone( &self, latitude: f64, longitude: f64, locality_language: &str, ) -> Result<ReverseGeocodeWithTimezoneResponse>
Converts GPS coordinates to locality and timezone in a single call.
Sourcepub fn get_timezone_by_location(
&self,
latitude: f64,
longitude: f64,
) -> Result<TimezoneResponse>
pub fn get_timezone_by_location( &self, latitude: f64, longitude: f64, ) -> Result<TimezoneResponse>
Returns timezone information for GPS coordinates.
Trait Implementations§
Source§impl Clone for ReverseGeocodingApi
impl Clone for ReverseGeocodingApi
Source§fn clone(&self) -> ReverseGeocodingApi
fn clone(&self) -> ReverseGeocodingApi
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReverseGeocodingApi
impl !RefUnwindSafe for ReverseGeocodingApi
impl Send for ReverseGeocodingApi
impl Sync for ReverseGeocodingApi
impl Unpin for ReverseGeocodingApi
impl UnsafeUnpin for ReverseGeocodingApi
impl !UnwindSafe for ReverseGeocodingApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more