Skip to content

Instantly share code, notes, and snippets.

@jwoschitz
Created December 3, 2011 14:48
Show Gist options
  • Select an option

  • Save jwoschitz/1427299 to your computer and use it in GitHub Desktop.

Select an option

Save jwoschitz/1427299 to your computer and use it in GitHub Desktop.
lifts json format
/api/stations/status
============
stations: [
{
"id": 1,
"name": "U Friedrichstr.",
"lifts_total": 4,
"lifts_working": 3
},
{
...
}
]
/api/events/
============
events: [
{
"id": 1,
"isworking": true,
"description": "",
"timestamp": 1322925062,
"lift": {
"id": 1,
"description": "Zwischen S-Bahnsteig (südöstliches Bahnsteigende) und Mecklenburgische Straße (südöstliches Zugangsbauwerk).",
"station": {
"id": 1,
"name": "S/U Friedrichstr.",
"location": {
"lat": 123.05,
"lon": 133.12
},
"osm_id": 1234,
"lines": [
{
"id": 1,
"name": "S9",
"operator": {
"id": 1,
"name": "S-Bahn"
}
},
{
"id": 2,
"name": "U7",
"operator": {
"id": 2,
"name": "BVG"
}
}
]
},
}
},
{
"id": 2,
"isworking": false,
"description": "",
"timestamp": 1322924050
}
]
/api/lifts/
============
lifts: [
{
"id": 1,
"description": "Zwischen S-Bahnsteig (südöstliches Bahnsteigende) und Mecklenburgische Straße (südöstliches Zugangsbauwerk).",
"station": {
"id": 1,
"name": "S/U Friedrichstr.",
"location": {
"lat": 123.05,
"lon": 133.12
},
"osm_id": 1234,
"lines": [
{
"id": 1,
"name": "S9",
"operator": {
"id": 1,
"name": "S-Bahn"
}
},
{
"id": 2,
"name": "U7",
"operator": {
"id": 2,
"name": "BVG"
}
}
]
},
"manufacturer": {
"id": 1,
"name": "OTIS"
}
"events": [
{
"id": 1,
"isworking": true,
"description": "",
"timestamp": 1322925062
},
{
"id": 2,
"isworking": false,
"description": "",
"timestamp": 1322924050
}
]
},
...
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment