{
    "$schema" : "http://json-schema.org/draft-04/schema#",
    "title" : "RGC",
    "type" : "object",
    "additionalProperties" : false,
    "description" : "TAnalytics-v1 .. Log when a RGC api is invoked",
    "properties" : {
        "log_context" : {
            "$ref" : "/resources/schema/analytics/service/entity/v1/LogContext.json",
            "description" : "Required Log Context Reference"
        },
        "event_name" : {
            "type" : "string",
            "enum" : [
                "RGC"
            ]
        },
        "schema_definition" : {
            "type" : "string",
            "enum" : [
                "RGC"
            ]
        },
        "entity_id" : {
            "type" : "string",
            "description" : "Identifier of the Entity associated with the place"
        },
        "entity_lat" : {
            "type" : "number",
            "description" : "Required.. Latitude of the entity"
        },
        "entity_lon" : {
            "type" : "number",
            "description" : "Required.. Longitude of the entity."
        },
        "address" : {
            "type" : "string",
            "description" : "If entity is an address, then the formatted address"
        },
        "distance" : {
            "type" : "number",
            "description" : "Calculated distance displayed for the selected destination on the details page, in miles."
        },
        "transaction_id" : {
            "type" : "string",
            "description" : "Required .. Search transaction ID for the request"
        }
    },
    "required" : [
        "log_context",
        "event_name",
        "schema_definition",
        "entity_lat",
        "entity_lon",
        "transaction_id"
    ]
}