Match GPS coordinates to the road network
client.mapMatch.match(MapMatchMatchParams { trace, radiuses } body, RequestOptionsoptions?): MapMatchResult { geometry, properties, type, legs }
POST/api/v1/map-match
Match GPS coordinates to the road network
import Plaza from '@plazafyi/sdk';
const client = new Plaza({
apiKey: process.env['PLAZA_API_KEY'], // This is the default and can be omitted
});
const mapMatchResult = await client.mapMatch.match({ trace: { coordinates: [0], type: 'Point' } });
console.log(mapMatchResult.geometry);