{
	"$schema": "http://json-schema.org/draft-04/schema#",
	"title": "KeyDestination",
	"description": "Key Destination for a user",
	"type": "object",
	"properties": {
		"location": {
			"$ref": "/resources/schema/common/v1/LatLon.json",
			"description": "Current Lat Lon Location of User"
		},
		"impression_id": {
			"type": "string",
			"description": "UUID assigned to the key destination"
		},
		"destination_id": {
			"type": "string",
			"description": "Constant id associated with destination. Currently md5 of string of address"
		},
		"label": {
			"type": "string",
			"description": "Label For Destination . Home/Work etc"
		},
		"frequency": {
			"type": "integer",
			"description": "Total number of Start Stop events which are part of key destination"
		},
		"rank": {
			"type": "integer",
			"description": "Rank of Key Destination based on Frequency"
		},
		"extra_attributes": {
			"type": "object",
			"additionalProperties": {
				"type": "string",
				"description": "Additional String Properties for Destination"
			}
		}

	},
	"required": [
		"location",
		"impression_id",
		"rank"
	]
}