mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-14 03:54:47 +00:00
Generate clients (#206)
This commit is contained in:
15
examples/geocoding/reverse/node/reverseGeocodeLocation.js
Executable file
15
examples/geocoding/reverse/node/reverseGeocodeLocation.js
Executable file
@@ -0,0 +1,15 @@
|
||||
import * as geocoding from "m3o/geocoding";
|
||||
|
||||
// Reverse lookup an address from gps coordinates
|
||||
async function ReverseGeocodeLocation() {
|
||||
let geocodingService = new geocoding.GeocodingService(
|
||||
process.env.MICRO_API_TOKEN
|
||||
);
|
||||
let rsp = await geocodingService.reverse({
|
||||
latitude: 51.5123064,
|
||||
longitude: -0.1216235,
|
||||
});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
await ReverseGeocodeLocation();
|
||||
Reference in New Issue
Block a user