use crate::Client;
use concat_string::concat_string;
use lta_models::geo::prelude::{GeospatialLayerId, GeospatialWholeIslandRawResp};
use crate::r#async::ClientExt;
use crate::{reqwest_async::ReqwestAsync, Geo, GeoRequests, LTAClient, LTAResult};
impl GeoRequests<LTAClient<ReqwestAsync>> for Geo {
async fn get_geospatial_whole_island(
client: <AClient<ReqwestAsync>,
id: GeospatialLayerId,
) -> LTAResult<Vec<String>> {
client
.build_req_with_query::<GeospatialWholeIslandRawResp, _, _>(
&concat_string!(client.base_url(), "/GeospatialWholeIsland"),
|rb| rb.query(&[("ID", id)]),
)
.await
}
}