opencage-api-client
    Preparing search index...

    Information about roads at or near the location

    interface RoadInfo {
        drive_on: "left" | "right";
        lanes?: number;
        maxheight?: string;
        maxspeed?: string;
        maxweight?: number;
        maxwidth?: number;
        oneway?: 0 | 1;
        road?: string;
        road_reference?: string;
        road_reference_intl?: string;
        road_type?: string;
        speed_in: "km/h" | "mph";
        surface?: number;
        toll?: string;
        width?: number;
    }
    Index

    Properties

    drive_on: "left" | "right"

    Which side of the road traffic drives on

    lanes?: number

    Number of lanes

    maxheight?: string

    Maximum height restriction

    maxspeed?: string

    Maximum speed limit

    maxweight?: number

    Maximum weight restriction

    maxwidth?: number

    Maximum width restriction

    oneway?: 0 | 1

    Whether the road is one-way (1) or two-way (0)

    road?: string

    Road name or identifier

    road_reference?: string

    Road reference identifier

    road_reference_intl?: string

    International road reference identifier

    road_type?: string

    Type of road

    speed_in: "km/h" | "mph"

    Units used for speed limits

    surface?: number

    Surface type

    toll?: string

    Toll information

    width?: number

    Width of the road