Geo without a map
Four entries of @mountaya/elements do the maths a map does, with no map: ./geo, ./profile, ./units and ./i18n. They load no renderer and make no request, so they run on a server, in a worker, or in a test.
Positions are [longitude, latitude], as GeoJSON writes them. Formatting follows the reader's language and units.
buildElevationSeries reads the third coordinate of each position into a profile:
It takes a Feature, a FeatureCollection or a bare geometry, and ignores anything that is not a line.
From the heights around a point, slopeAspectFromNeighbours answers how steep the ground is and which way it faces:
From elevation tiles you have decoded, terrainFromElevationTiles answers the elevation, slope and aspect at a point in one call.
Every unit id is the one Intl.NumberFormat takes. English is built in, and each other language is an entry of its own.