{
	"$schema": "http://json-schema.org/draft-04/schema#",
	"title": "RouteOption",
	"type": "object",
	"additionalProperties": false,
	"description": "Analytics-v3 .. Route Option object",
	"properties": {
		"log_context": {
			"$ref": "/resources/schema/analytics/client/v3/LogContext.json",
			"description": "Required Log Context Reference"
		},
		"event_name": {
			"type": "string",
			"enum": ["ROUTE_OPTION"]
		},
		"schema_definition": {
			"type": "string",
			"enum": ["RouteOption"]
		},
		"action": {
			"$ref": "/resources/schema/analytics/client/v3/ClickActionType.json",
			"description": "Required .. Log  Click when user clicks on Route options. Log Back when user clics on back button."
		},
		"display_screen": {
			"$ref": "/resources/schema/analytics/client/v3/RouteOptionDisplayScreenType.json",
			"description": "Required .. Where the route option was selected from. Whether from profile settings or from route calc page, etc."
		},
		"mode": {
			"$ref": "/resources/schema/analytics/client/v3/RouteModeType.json",
			"description": "Whether mode chosen as Automobile, Pedestrian, Fastest, etc in Route options only if user changed it."
		},
		"route_id": {
			"type": "string",
			"description": "route id of the segment"
		},
		"parent_route_id": {
			"type": "string",
			"description": "route id of the whole route"
		},
		"trigger": {
			"$ref": "/resources/schema/analytics/client/v3/RouteOptionTriggerType.json",
			"description": "If user clicked on Avoid on route/Route type, log that as the trigger along with the action of select/back"
		},
		"auto_reroute": {
			"$ref": "/resources/schema/analytics/client/v3/SettingType.json",
			"description": "Auto-Reroute- on/off"
		},
		"avoid_highway": {
			"$ref": "/resources/schema/analytics/client/v3/SettingType.json",
			"description": "Route option setting for Highway only if user changed it."
		},
		"avoid_tolls": {
			"$ref": "/resources/schema/analytics/client/v3/SettingType.json",
			"description": "Route option setting for Tolls only if user changed it."
		},
		"avoid_ferries": {
			"$ref": "/resources/schema/analytics/client/v3/SettingType.json",
			"description": "Route option setting for Ferries only if user changed it."
		},
		"avoid_carpool_lanes": {
			"$ref": "/resources/schema/analytics/client/v3/SettingType.json",
			"description": "Route option setting for Carpool Lanes only if user changed it."
		},
		"avoid_country_borders": {
			"$ref": "/resources/schema/analytics/client/v3/SettingType.json",
			"description": "Route option setting for Country Boarders only if user changed it."
		},
		"avoid_tunnels": {
			"$ref": "/resources/schema/analytics/client/v3/SettingType.json",
			"description": "Route option setting for tunnels only if user changed it."
		},
		"avoid_unpaved_roads": {
			"$ref": "/resources/schema/analytics/client/v3/SettingType.json",
			"description": "Route option setting for unpaved roads only if user changed it."
		},
		"voice_directions": {
			"$ref": "/resources/schema/analytics/client/v3/SettingType.json",
			"description": "Route option setting for Voice Directions only if user changed it."
		},
		"voice_traffic": {
			"$ref": "/resources/schema/analytics/client/v3/SettingType.json",
			"description": "Route option setting for Voice Traffic only if user changed it."
		},
		"traffic_setting": {
			"$ref": "/resources/schema/analytics/client/v3/SettingType.json",
			"description": "Avoid Traffic option set on or off only if user changed it."
		},
		"avoid_permit_required_road": {
			"$ref": "/resources/schema/analytics/client/v3/SettingType.json",
			"description": "Avoid permit required roads. Log on or off only if user changed it."
		},
		"avoid_seasonal_restriction": {
			"$ref": "/resources/schema/analytics/client/v3/SettingType.json",
			"description": "Avoid seasonal restrictions. Log on or off only if user changed it."
		},
		"interaction_method": {
			"$ref": "/resources/schema/analytics/client/v3/InteractionMethodValues.json",
			"description": "for each user interaction log the interation method"
		}

	},
	"required": [
		"log_context",
		"event_name",
		"schema_definition",
		"action",
		"display_screen",
		"mode",
		"avoid_highway",
		"avoid_tolls",
		"avoid_ferries",
		"avoid_carpool_lanes",
		"avoid_country_borders",
		"avoid_tunnels",
		"avoid_unpaved_roads"
	]
}