Fetch multiple features by type and ID
client.elements.batch(ElementBatchParams { elements } body, RequestOptionsoptions?): FeatureCollection { features, type }
POST/api/v1/features/batch
Fetch multiple features by type and ID
import Plaza from '@plazafyi/sdk';
const client = new Plaza({
apiKey: process.env['PLAZA_API_KEY'], // This is the default and can be omitted
});
const featureCollection = await client.elements.batch({ elements: [{ id: 0, type: 'node' }] });
console.log(featureCollection.features);