{
	"$schema":"http://json-schema.org/draft-04/schema#",
	"title":"MapListToggle",
	"type":"object",
	"additionalProperties":false,
	"description":"Analytics-v2 .. Map List Toggle object",
	"properties":{
		"log_context":{
			"$ref":"/resources/schema/analytics/client/v2/LogContext.json",
			"description":"Required Log Context Reference"
		},
		"event_name":{
			"type": "string",
			"enum": ["MAP_LIST_TOGGLE"]		
		},
		"schema_definition":{
			"type": "string",
			"enum": ["MapListToggle"]
		},
		"action":{
			"$ref":"/resources/schema/analytics/client/v2/ClickActionType.json",
			"description":"Required .. Log Click when user clicks on the list or map icon to switch to map or list view of search results."
		},
        	"display" : {
            		"$ref" : "/resources/schema/analytics/client/v2/DisplayType.json",
            		"description" : "Required .. Display mode"
        	},
		"entity_id":{
			"type":"string",
			"description":"If map selected, then the entity_id of the place shown as impression at the bottom of the screen."
		},
        	"merchant_id" : {
            		"type" : "string",
            		"description" : "identifier of the merchant offering the coupon"
        	},
        	"business_name" : {
            		"type" : "string",
            		"description" : "The name of the business offering the coupon"
        	},
		"dest_lat":{
	    		"type":"number",
            		"description":"Latitude of destination."
		},
		"dest_lon":{
            		"type":"number",
            		"description":"Longitude of destination."
		},
        	"iid" : {
            		"type" : "string",
            		"description" : "Impression id shown if Map display chosen."
        	},
        	"distance" : {
            		"type" : "number",
            		"description" : "Calculated distance displayed for the selected destination on the details page, in miles."
        	},
        	"is_sponsored" : {
            		"type" : "boolean",
            		"description" : "Whether advertised or organic if resulted from a search"
        	},
        	"search_id" : {
            		"type" : "string",
            		"description" : "The LogID of the Search from which this result was selected to view details"
        	}		
	},
	"required":[
		"log_context",
		"event_name",
		"schema_definition",
		"action",
		"display",
		"is_sponsored"
	]
}