{
    "$schema": "http://json-schema.org/draft-04/schema",
    "title": "Station",
    "description": "Describes information about stations",
    "type": "object",
    "properties": {
        "id": {
            "description": "unique identifier for this station",
            "type": "string"
        },
        "city": {
            "description": "viewable city name where the station is located",
            "type": "string"
        },
        "cityid": {
            "description": "unique identifier of the city where this station is located",
            "type": "string"
        },
        "lat": {
            "description": "latitude of station location",
            "type": "number"
        },
        "lon": {
            "description": "longitude of station location",
            "type": "number"
        },
        "tanks": {
            "description": "tanks located at this station",
            "type": "object",
            "properties": {
                "regular": {
                    "description": "tankid value of the regular fuel tank located at this station",
                    "type": "string"
                },
                "premium": {
                    "description": "tankid value of the premium fuel tank located at this station",
                    "type": "string"
                },
                "diesel": {
                    "description": "tankid value of the diesel fuel tank located at this station",
                    "type": "string"
                }
            },
            "required": [
                "regular",
                "premium"
            ]
        },
        "pumps": {
            "description": "list of pumps located at this station",
            "type": "array",
            "items": {
                "description": "pumpId values for pump located at this station",
                "type": "string"
            }
        }
    },
    "required": [
        "id",
        "city",
        "cityid",
        "lat",
        "lon",
        "tanks",
        "pumps"
    ]
}