{
	"$schema":"http://json-schema.org/draft-04/schema#",
	"title":"NavEnd",
	"type":"object",
	"additionalProperties":false,
	"description":"Analytics-v3 .. Navigation End object",
	"properties":{
		"log_context":{
			"$ref":"/resources/schema/analytics/client/v3/LogContext.json",
			"description":"Required Log Context Reference"
		},
		"event_name":{
			"type": "string",
			"enum": ["NAV_END"]		
		},
		"schema_definition":{
			"type": "string",
			"enum": ["NavEnd"]
		},
		"caused_by":{
			"$ref":"/resources/schema/analytics/client/v3/NavEndType.json",
			"description":"Required .. The reason why navigation was ended."
		},
		"distance_travelled":{
			"type":"number",
			"description":"Distance for route journey in miles (Actual distance)"
		},
		"distance_remaining":{
			"type":"number",
			"description":"Distance for route journey in miles (remaining distance)"
		},
		"distance":{
			"type":"number",
			"description":"Required .. Actual distance for route journey in miles. If value is 0 derive from route_id."
		},
		"duration":{
			"type":"number",
			"description":"Required .. Actual time for route journey in minutes. If value is 0 derive from route_id."
		},
		"navigation_session_id": {
			"type": "string",
			"description": "A unique identifier for current navigation session"
		},
		"route_id":{
			"type":"string",
			"description":"Required .. Corresponding LogID of the route chosen or the unique identifier of the chosen route"
		},
		"parent_route_id":{
			"type":"string",
			"description":"Required .. RouteID of the original trip. If this is the original trip, then make it same as route_id of trip. Log '-' if navigation_session_id is implemented for this product"
		},
		"nav_id":{
			"type":"string",
			"description":"LogID of corresponding NavStart event. Log '-' if navigation_session_id is implemented for this product."
		},
		"interaction_method": {
			"$ref": "/resources/schema/analytics/client/v3/InteractionMethodValues.json",
			"description": "for each user interaction log the interation method"
		},
		"first_time": {
			"type":"string",
			"enum": ["YES", "NO", "NONE"],
			"description": "Marks the first time this combination of values for the properties event_label, event_environment and page_title is fired for a user"
		},
		"event_environment":{
			"$ref":"/resources/schema/analytics/client/v3/EventEnvironmentValues.json",
			"description":"To identify if event happened on the mobile app or when connected to Car Play or if the app is on a memory stick or directly on a head unit."
		},
		"page_title":{
			"type":"string",
			"description":"The identify the screen where the event occured. This is the URL for the screen/page"
		}
	},
	"required":[
		"log_context",
		"event_name",
		"schema_definition",
		"caused_by",
		"distance",
		"duration",
		"route_id",
		"parent_route_id",
		"nav_id",
		"distance_remaining"
	]
}