zwift-data
    Preparing search index...

    Interface Segment

    interface Segment {
        avgIncline?: number;
        climbType?: "HC" | "4" | "3" | "2" | "1";
        distance: number;
        elevation?: number;
        name: string;
        slug: string;
        stravaSegmentId?: number;
        stravaSegmentUrl?: string;
        type: SegmentType;
        whatsOnZwiftUrl?: string;
        world: WorldSlug;
        zwifterBikesUrl?: string;
    }
    Index

    Properties

    avgIncline?: number

    Average include of the segment. 0 if the segment is a lap.

    climbType?: "HC" | "4" | "3" | "2" | "1"

    Rating of a climb segment. Only available if type=climb.

    distance: number

    Distance of the segment

    elevation?: number

    Total elevation gain of the segment

    name: string

    Name of the segment

    slug: string

    Unique url-safe string to reference the segment

    stravaSegmentId?: number

    Id of the corresponding strava segment

    stravaSegmentUrl?: string

    Url of the corresponding strava segment

    Type of the segment

    whatsOnZwiftUrl?: string

    Url of the route on What's on Zwift

    world: WorldSlug

    World the segment is in

    zwifterBikesUrl?: string

    Url of the route on Zwifter Bikes