{
    "$schema" : "http://json-schema.org/draft-04/schema#",
    "title" : "PlaceDetails",
    "type" : "object",
    "additionalProperties" : false,
    "description" : "TAnalytics-v2 .. Log when a click on a destination renders the Details page for the Address or POI",
    "properties" : {
        "log_context" : {
            "$ref" : "/resources/schema/analytics/client/v2/LogContext.json",
            "description" : "Required Log Context Reference"
        },
        "event_name" : {
            "type" : "string",
            "enum" : [
                "PLACE_DETAILS"
            ]
        },
        "schema_definition" : {
            "type" : "string",
            "enum" : [
                "PlaceDetails"
            ]
        },
        "trigger" : {
            "$ref" : "/resources/schema/analytics/client/v2/SearchTriggerType.json",
            "description" : "Reqired Starting Point of the Search in the app"
        },
        "entity_id" : {
            "type" : "string",
            "description" : "Required Identifier of the Entity associated with the place"
        },
        "iid" : {
            "type" : "string",
            "description" : "The Identifier of the Impression associated with the place"
        },
        "distance" : {
            "type" : "number",
            "description" : "Required .. Calculated distance displayed for the selected destination on the details page, in miles."
        },
        "category_id" : {
            "type" : "string",
            "description" : "POI category ID for the place"
        },
        "category" : {
            "type" : "string",
            "description" : "POI category like Coffee, Gas, ATM, etc"
        },
        "is_sponsored" : {
            "type" : "boolean",
            "description" : "Whether advertised or organic result"
        },
        "coupon_flag" : {
            "type" : "boolean",
            "description" : "Whether a coupon is associated with the POI or not"
        },
        "is_active" : {
            "type" : "boolean",
            "description" : "Whether a coupon is active/redeemable or not. If grayed out due to maxed out redeems, status should reflect inactive."
        },
        "search_id" : {
            "type" : "string",
            "description" : "The LogID of the Search from which this result was selected to view details"
        },
        "interaction_method": {
            "$ref": "/resources/schema/analytics/client/v2/InteractionMethodValues.json",
            "description": "for each user interaction log the interation method"
        }
    },
    "required" : [
        "log_context",
        "event_name",
        "schema_definition",
        "entity_id",
        "is_sponsored"
    ]
}