{
	"$schema" : "http://json-schema.org/draft-04/schema#",
	"title" : "EntityUsage",
	"type" : "object",
	"additionalProperties" : false,
	"description" : "EntityUserInsight .. entity_usage object",
	"properties" : {
		"weight" : {
			"type" : "number",
			"description" : "weight associated with the entity"
		},

		"entity_name" : {
			"type" : "string",
			"description" : "entity name"
		},
		
		"entity_names" : {
          	"type" : "array",
          	"items" : {
           		"$ref" : "/resources/schema/data/entity/user/insight/v1/NameAndLanguage.json"
         	 },
         	 "description" : "multiple official names"
        },
        
		"record_type" : {
			"type" : "string",
			"description" : "type of record"
		},

		"categories" : {
			"type" : "array",
            "items" : {
				"$ref" : "/resources/schema/data/entity/user/insight/v1/Categories.json"
			},
			"description" : "array of categories"
		},

		"entity_type" : {
			"type" : "string",
			"description" : "entity type, poi or address"
		},

		"entity_id" : {
			"type" : "string",
			"description" : "entity id"
		},
		
        "location" : {
        	"type" : "string",
         	"description" : "entity location (latitude, longitude)"
        },
        
        "address": {
        	"$ref" : "/resources/schema/data/entity/user/insight/v1/Address.json",
			"description" : "Address information."
        },
        
		"actions" : {
			"type" : "array",
            "items" : {
				"$ref" : "/resources/schema/data/entity/user/insight/v1/Actions.json"
			},
			"description" : "array of associated actions"
		},

		"markers" : {
			"type" : "array",
            "items" : {
				"$ref" : "/resources/schema/data/entity/user/insight/v1/Markers.json"
			},
			"description" : "array of associated markers"
		}
	},

	"required" : 
	[
		"weight",
		"entity_name",
		"entity_id",
		"categories",
		"actions"
	]
}