Get feature by type and ID
client.elements.retrieve(numberid, ElementRetrieveParams { type } params, RequestOptionsoptions?): GeoJsonFeature { geometry, properties, type, 2 more }
GET/api/v1/features/{type}/{id}
Get feature 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 geoJsonFeature = await client.elements.retrieve(0, { type: 'type' });
console.log(geoJsonFeature.id);