Reverse geocode a coordinate
client.geocode.reverse(GeocodeReverseParams { lat, lng, lang, 3 more } query, RequestOptionsoptions?): ReverseGeocodeResult { features, type }
GET/api/v1/geocode/reverse
Reverse geocode a coordinate
import Plaza from '@plazafyi/sdk';
const client = new Plaza({
apiKey: process.env['PLAZA_API_KEY'], // This is the default and can be omitted
});
const reverseGeocodeResult = await client.geocode.reverse({ lat: 0, lng: 0 });
console.log(reverseGeocodeResult.features);