Find features near a geographic point
client.elements.nearby(ElementNearbyParams { lat, lng, limit, radius } query, RequestOptionsoptions?): FeatureCollection { features, type }
GET/api/v1/features/nearby
Find features near a geographic point
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.nearby({ lat: 0, lng: 0 });
console.log(featureCollection.features);