Get feature by type and ID
GeoJsonFeature elements().retrieve(ElementRetrieveParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
GET/api/v1/features/{type}/{id}
Get feature by type and ID
package com.plazafyi.example;
import com.plazafyi.client.PlazaClient;
import com.plazafyi.client.okhttp.PlazaOkHttpClient;
import com.plazafyi.models.GeoJsonFeature;
import com.plazafyi.models.elements.ElementRetrieveParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
PlazaClient client = PlazaOkHttpClient.fromEnv();
ElementRetrieveParams params = ElementRetrieveParams.builder()
.type("type")
.id(0L)
.build();
GeoJsonFeature geoJsonFeature = client.elements().retrieve(params);
}
}