Build a race course page
A course page runners can read at a glance: the route on a map, its elevation profile, and a table of aid stations with their services and cut-off times.

You set the course up with the Map Studio API, then draw it with the TypeScript SDK. You need:
- a publishable key with the
studio-embedded,publishingandtilesscopes, and your secret key; - the id of a member of your organization, who the writes act as;
- for the page, a Vite and React app. To start one:
Map Studio and the Tile API come with an agreement.
1
Writes act as one of your members, so your server mints a session token that names them.
2
Import the route and its aid stations in one call. Already have your course in Mountaya? Skip this step and use its id.
The route is routed through the three points you sent, so distance and ascent are the real trail figures.
3
Give the Chamonix aid station its services and the time runners must leave it by.
cutoff_at is an absolute instant, so the page decides which time zone to print it in.
4
Runners read the published version, so publish once the course is ready.
5
The page needs only the publishable key and the course id. The map, the profile and the table share one provider, so hovering one moves the others.
It replaces the src/main.tsx Vite wrote. Start it with your key and the course id:
Pick a service above the table to keep only the aid stations that offer it.