use arcgis_rust::tasks::geoprocessing::GeoprocessingTask;
use arcgis_rust::tasks::locator::LocatorTask;
use geo::point;
#[tokio::test]
async fn test_geoprocessing_task_execution() {
let url = "https://httpbin.org/post";
let geoprocessing_task = GeoprocessingTask { url: url.to_string() };
let result = geoprocessing_task.execute("parameters").await;
assert!(result.is_ok());
}
#[tokio::test]
async fn test_locator_task_geocode() {
let url = "https://nominatim.openstreetmap.org/search";
let locator_task = LocatorTask { url: url.to_string() };
let result = locator_task.geocode("1600 Amphitheatre Parkway, Mountain View, CA").await;
assert!(result.is_ok());
let location = result.unwrap();
assert_eq!(location, point!(x: 0.0, y: 0.0));
}