sampleTransectPositions()
function sampleTransectPositions(
start,
end,
samples): QueryPosition[];
Builds evenly spaced WGS84 samples along the shortest longitude path.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
start | QueryPosition | undefined | Start [longitude, latitude] in degrees. |
end | QueryPosition | undefined | End [longitude, latitude] in degrees. |
samples | number | 64 | Number of positions to return; values below two are clamped to two. |