Search OSM features by name
client.search.query(SearchQueryParams { q, cursor, limit } query, RequestOptionsoptions?): FeatureCollection { features, type }
GET/api/v1/search
Search OSM features by name
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.search.query({ q: 'q' });
console.log(featureCollection.features);