mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 11:15:12 +00:00
14 lines
377 B
JavaScript
Executable File
14 lines
377 B
JavaScript
Executable File
const { GeocodingService } = require("m3o/geocoding");
|
|
|
|
// Reverse lookup an address from gps coordinates
|
|
async function reverseGeocodeLocation() {
|
|
let geocodingService = new GeocodingService(process.env.MICRO_API_TOKEN);
|
|
let rsp = await geocodingService.reverse({
|
|
latitude: 51.5123064,
|
|
longitude: -0.1216235,
|
|
});
|
|
console.log(rsp);
|
|
}
|
|
|
|
reverseGeocodeLocation();
|