use crate::models::geo::prelude::*;
use crate::r#async::build_req_with_query;
use crate::{Client, Geo, LTAClient, LTAResult};
use async_trait::async_trait;
#[async_trait]
pub trait GeoRequests<C: Client> {
async fn get_geospatial_whole_island(
client: &C,
id: GeospatialLayerId,
) -> LTAResult<Vec<String>>;
}
#[async_trait]
impl GeoRequests<LTAClient> for Geo {
async fn get_geospatial_whole_island(
client: <AClient,
id: GeospatialLayerId,
) -> LTAResult<Vec<String>> {
build_req_with_query::<GeospatialWholeIslandRawResp, _, _, _>(
client,
api_url!("/GeospatialWholeIsland"),
|rb| rb.query(&[("ID", id)]),
)
.await
}
}