{
	"$schema":"http://json-schema.org/draft-04/schema#",
	"title":"SetPersistentLocation",
	"type":"object",
	"additionalProperties":false,
	"description":"Analytics-v3 .. Set Persistent Location object",
	"properties":{
		"log_context":{
			"$ref":"/resources/schema/analytics/client/v3/LogContext.json",
			"description":"Required Log Context Reference"
		},
		"event_name":{
			"type": "string",
			"enum": ["SET_PERSISTENT_LOCATION"]		
		},
		"schema_definition":{
			"type": "string",
			"enum": ["SetPersistentLocation"]
		},
		"action":{
			"$ref":"/resources/schema/analytics/client/v3/ClickActionType.json",
			"description":"Required .. Tap on Home or Work or Back"
		},
		"always_send_eta":{
			"$ref":"/resources/schema/analytics/client/v3/SettingType.json",
			"description":"Required .. Whether Always Send ETA option is set on or off"
		},
		"number_of_people":{
			"type":"number",
			"description":"Number of people to whom ETA will be sent if AlwaysSendEta option is set ON"
		},
		"caused_by":{
			"$ref":"/resources/schema/analytics/client/v3/PersistentLocationCausedBy.json",
			"description":"Gives extra context for persistent location"
		},
		"trigger":{
			"$ref":"/resources/schema/analytics/client/v3/ActivityTriggerType.json",
			"description":"Required .. Where the persistent location setting was clicked from"
		},
		"type":{
			"$ref":"/resources/schema/analytics/client/v3/PersistentLocationType.json",
			"description":"Required .. Type of persistent location"
		},
		"label":{
			"type": "string",
			"description":"Label of the location given by the user. Would be different from type if custom label."
		},
		"destination_id":{
			"type": "string",
			"description":"If it’s a server provided key destination then send associated destination id"
		},
		"impression_id":{
            "type": "string",
            "description":"If it’s a server provided key destination then unique id for each impression"
        },
        "address":{
            "type": "string",
            "description":"Address string of the persistant location"
        },
		"interaction_method": {
			"$ref": "/resources/schema/analytics/client/v3/InteractionMethodValues.json",
			"description": "for each user interaction log the interation method"
		}
	},
	"required":[
		"log_context",
		"event_name",
		"schema_definition",
		"action",
		"type",
		"destination_id",
		"impression_id",
		"address"
	]
}