{
    "$schema" : "http://json-schema.org/draft-04/schema#",
    "title" : "LegListItem",
    "type" : "object",
    "additionalProperties" : false,
    "description" : "TAnalytics-v3 .. List Item for legs in route_list in Routes object",
    "properties" : {
        "distance": {
            "type": "number",
            "description": "Calculated distance to end of the specific leg of the route in meters"
        },
        "duration": {
            "type": "number",
            "description": "Estimated time in seconds to arrive at the specific leg destination including traffic if available"
        },
        "duration_without_traffic": {
            "type": "number",
            "description": "Estimated time in seconds to arrive at the specific leg destination"
        },
        "number_of_traffic_lights": {    
            "type": "integer",
            "description": "The number of traffic lights on the specific leg"
        },
        "leg_index": {    
            "type": "integer",
            "description": "The order of the leg in the route based on the waypoint order including the final destination"
        },
        "route_characteristics": { 
            "type": "array",
            "items": {
                "$ref": "/resources/schema/analytics/client/v3/type/RouteCharacteristicTypes.json"
            },
            "description": "Log which route options were enabled in the generated route. This will deviate from request if few options could not be avoided."
        }
    },
    "required" : [
        "distance",
        "duration",
        "duration_without_traffic",
        "leg_index"
    ]
}