Whether a curve is a hairpin: a bend of the road turning 140° or more on a radius of 40 m or less, as the numbered bends of a mountain pass do.
hairpinCount
const hairpins = route.properties.sections.curve?.filter(isHairpin) ?? []; Copy
const hairpins = route.properties.sections.curve?.filter(isHairpin) ?? [];
Whether a curve is a hairpin: a bend of the road turning 140° or more on a radius of 40 m or less, as the numbered bends of a mountain pass do.