Fetch multiple features by type and ID
FeatureCollection elements().batch(ElementBatchParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
POST/api/v1/features/batch
Fetch multiple features by type and ID
package com.plazafyi.example;
import com.plazafyi.client.PlazaClient;
import com.plazafyi.client.okhttp.PlazaOkHttpClient;
import com.plazafyi.models.FeatureCollection;
import com.plazafyi.models.elements.BatchRequest;
import com.plazafyi.models.elements.ElementBatchParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
PlazaClient client = PlazaOkHttpClient.fromEnv();
BatchRequest params = BatchRequest.builder()
.addElement(BatchRequest.Element.builder()
.id(0L)
.type(BatchRequest.Element.Type.NODE)
.build())
.build();
FeatureCollection featureCollection = client.elements().batch(params);
}
}