{
	"$schema": "http://json-schema.org/draft-04/schema#",
	"title": "PredictiveDestination",
	"description": "Predicted Destination for a user",
	"type": "object",
	"properties": {
		"score": {
			"type": "number",
			"description": "Score of this Predictive Destination which will be used for ordering"
		},
		"location": {
			"$ref": "/resources/schema/common/v1/LatLon.json",
			"description": "Current Lat Lon Location of User"
		},
		"id": {
			"type": "string",
			"description": "UUID assigned to the key destination which changes everytime a predicted destination call is made"
		},
		"destination_id": {
			"type": "string",
			"description": "Destination ID to support label renaming. Always same for a destination"
		},		
		"label": {
			"type": "string",
			"description": "Label For Destination . Home/Work etc"
		},
		"entity_details": {
			"$ref": "/resources/schema/dpalgo/v2/EntityDetails.json",
			"description": "Entity Service Mapping for the Destination"
		},
		"frequency": {
			"type": "integer",
			"description": "Total number of Start Stop events which are part of key destination"
		},
		"extra_attributes": {
			"type": "object",
			"additionalProperties": {
				"type": "string",
				"description": "Additional String Properties for Destination"
			}
		},
		"traversed_routes": {
			"type": "array",
			"items": {
				"$ref": "/resources/schema/dpalgo/v2/TraversedRoutes.json",
				"description": "Each element of the Array are the traversed routes with their frequency and rank"
			},
			"description": "Personalized Routes identified for this user"
		}

	},
	"required": [
		"score",
		"location",
		"id"
	]
}