{
	"$schema" : "http://json-schema.org/draft-04/schema#",
	"title" : "KeyDestination",
	"type" : "object",
	"additionalProperties" : false,
	"description" : "V2: Key Destination as inferred by the analytics engine",
	"properties" : {
		"lat" : {
			"type":"number",
			"description" : "Latitude for the destination"
		},

		"lon" : {
			"type":"number",
			"description" : "Longitude for the destination"
		},

		"rank" : {
			"type":"number",
			"description" : "Ranks the key destination from the scale defined in the Rank"
		},

		"time_bucket" : {
			"$ref" : "/resources/schema/data/user/insight/v2/TimeBucket.json",
			"description" : "Optional time bucket/time-frame associated with the Key Destination."
		},

		"key_destination_id" : {
			"type" : "string",
			"description" : "Unique id for each Key destination, it should be same for one location across all days. Client will send this along with Key destination related events"
		}
	},

	"required" : 
	[
		"lat",
		"lon",
		"rank",
		"key_destination_id"
	]
}