pub struct LocatorTask {
pub url: String,
}
Expand description
Represents a locator task for geocoding and reverse geocoding.
§Examples
use arcgis_rust::tasks::locator::LocatorTask;
use tokio;
#[tokio::main]
async fn main() {
let locator_task = LocatorTask {
url: "https://nominatim.openstreetmap.org/search".to_string(),
};
match locator_task.geocode("1600 Amphitheatre Parkway, Mountain View, CA").await {
Ok(location) => println!("Location: {:?}", location),
Err(e) => println!("Error: {}", e),
}
}
Fields§
§url: String
Implementations§
Auto Trait Implementations§
impl Freeze for LocatorTask
impl RefUnwindSafe for LocatorTask
impl Send for LocatorTask
impl Sync for LocatorTask
impl Unpin for LocatorTask
impl UnwindSafe for LocatorTask
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