Closed jamescrowley closed 2 years ago
Using the latest version in a NodeJS context,
const convertTo3wa = ConvertTo3waClient.init('XYZ'); const what3wordsResponse = await convertTo3wa.run({ coordinates: { lat: 34, lng: 0.22 } });
what3wordsResponse is in fact a string of JSON, and not the type suggested by TypeScript (LocationGeoJsonResponse | LocationJsonResponse).
I'm guessing perhaps one transport mechanism automatically decodes and the other doesn't?
Using the latest version in a NodeJS context,
what3wordsResponse is in fact a string of JSON, and not the type suggested by TypeScript (LocationGeoJsonResponse | LocationJsonResponse).
I'm guessing perhaps one transport mechanism automatically decodes and the other doesn't?