{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "PredictiveDestination",
    "type": "object",
    "additionalProperties": false,
    "description": "v1 of predictive destination data object",
    "properties": {
        "day_of_week": {
            "type": "string",
            "description": "Day of the week associated with the origin-destination combination"
        },
        "time_bucket": {
            "$ref": "/resources/schema/data/user/insight/v1/TimeBucket.json",
            "description": "Time bucket/time-frame associated with the Predicted Origin-Destination combination."
        },
        "origin_lat": {
            "type": "number",
            "description": "Centroid Latitude for the origin"
        },
        "origin_lon": {
            "type": "number",
            "description": "Centroid Longitude for the origin"
        },
	"origin_entity": {
	  "$ref": "/resources/schema/entity/v4/Entity.json",
	  "description": "nearest entity that origin lat/long may belong to." 
	},
        "destination_lat": {
            "type": "number",
            "description": "Centroid Latitude for the destination"
        },
        "destination_lon": {
            "type": "number",
            "description": "Centroid Longitude for the destination"
        },
	"destination_entity": {
          "$ref": "/resources/schema/entity/v4/Entity.json",
          "description": "nearest entity that destination lat/long may belong to."
        },
        "probability": {
            "type": "number",
            "description": "Probability that the user is headed to a certain dest from an origin."
        }
    },
    "required": [
        "day_of_week",
        "time_bucket",
        "origin_lat",
        "origin_lon",
        "destination_lat",
        "destination_lon",
        "probability"
    ]
}
