Node quickstart
One script: mint a session token, list your itineraries, and route a hike from Chamonix to Argentière.
The packages are not on npm yet
1
Install
Node 22.18 or later runs TypeScript files as they are, with no build step.
2
Set your keys
Create both keys under Organization → API keys in the Mountaya app. The publishable key needs the publishing and data scopes.
3
Write the script
main.ts
4
Run it
Output
Dates arrive as Date objects, distances in meters and durations in seconds. The full program is the examples/client-node directory of the SDK repository.