Skip to content

Instantly share code, notes, and snippets.

@Tasssadar
Last active Oct 24, 2015
Embed
What would you like to do?

Hledání spojení:

{
    "carrier": "IDSJMK",
    "from": "Hlavní nádraží",
    "to": "Životského",
    "via": [ "foo", "bar" ],
    "time": {
        "type": "departure",
        "stamp": 1234578,
    },
    "maxResults": 3,
}
{
    "results": [
        {
            "departure": 123456,
            "arrival": 123456,
            "trains": [
                {
                    "name": "8",
                    "type": "tram",
                    "from": "Hlavní nádraží",
                    "to": "Životského",
                    "departure": 123456,
                    "arrival": 123456,
                    "delay": { 
                        "minutes": 2,
                        "query": "cd7"
                    }
                }
            ]
        },
        {
            "departure": 123456,
            "arrival": 123456,
            "trains": [
                {
                    "name": "2",
                    "type": "tram",
                    "from": "Hlavní nádraží",
                    "to": "Vlhká",
                    "departure": 123456,
                    "arrival": 123456
                },
                {
                    "name": "3",
                    "type": "bus",
                    "from": "Vlhká",
                    "to": "Živostkého",
                    "departure": 123456,
                    "arrival": 123456
                }
            ]
        }
    ]
}

Zpoždění:

{
    "query": "cd7"
}
{
    "delay": {
        "minutes": 3,
        "query": "cd7"
    }
}
  • Seznam dopravců a zastávek.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment