{
	"$schema": "http://json-schema.org/draft-04/schema#",
	"title": "CalculatePredictiveAreaByTraceRequest",
	"type": "object",
	"description": "API Path: /predict/v1/area/byTrace, get predictive area by trace",
	"properties": {
		"user_id": {
			"type": "string",
			"description": "user id"
		},
		"device_id": {
			"type": "string",
			"description": "device id"
		},
		"location": {
			"$ref": "/resources/schema/common/v1/LatLon.json",
			"description": "current location of user"
		},
		"area_type": {
			"$ref": "/resources/schema/predict/v1/AreaType.json",
			"description": "Area Type, e.g. HOME_AREA"
		},
		"trace_locations": {
			"type": "array",
			"items": {
				"$ref": "/resources/schema/predict/v1/TraceLocation.json",
				"description": "trace locations used in area generation"
			}
		},
		"locale": {
			"type": "string",
			"description": "locale"
		},
		"constraint" : {
			"$ref": "/resources/schema/predict/v1/Constraint.json",
			"description": "constraint related with area result"
		},
		"limit": {
			"type": "integer",
			"description": "maximum number of area in the result"
		}
	},
	"required": [
		"location",
		"area_type",
		"trace_locations"
	]
}