Skip to content

Instantly share code, notes, and snippets.

@Tasssadar
Last active October 24, 2015 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tasssadar/49c1261351239eb299fa to your computer and use it in GitHub Desktop.
Save Tasssadar/49c1261351239eb299fa to your computer and use it in GitHub Desktop.

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