Skip to content

Instantly share code, notes, and snippets.

{
"agency" :
{
"agency_id" : "ART",
"agency_name" : "Arlington Transit",
"agency_url": "http://www.arlingtontransit.com/",
"agency_timezone" : "America/New_York"
},
"routes" :
@kpwebb
kpwebb / gist:7155646
Created October 25, 2013 14:35
otp route summaries
response = [
{
summary: "routes ABC and DEF via 6",
times: {
min: 10,
avg: 15,
max: 20,
freq: 1.0 /* per hour */
},
rides: [
[{ "name": "Schools",
"attributes": [
{ "name": "Size",
"type": "numeric"},
{ "name": "Type"
"type": "category",
"values": ["Primary","Secondary","Graduate"]
}
]
{
"nodes":[
{"name": "Pass 2: Amy Farah Weiss" },
{"name": "Pass 2: Angela Alioto" },
{"name": "Pass 2: Ellen Lee Zhou" },
{"name": "Pass 2: Jane Kim" },
{"name": "Pass 2: London Breed" },
{"name": "Pass 2: Mark Leno" },
{"name": "Pass 2: Michelle Bravo" },
{"name": "Pass 2: Richie Greenberg" },
{
"nodes":[
{"name": "Pass 2: Amy Farah Weiss" },
{"name": "Pass 2: Angela Alioto" },
{"name": "Pass 2: Ellen Lee Zhou" },
{"name": "Pass 2: Jane Kim" },
{"name": "Pass 2: London Breed" },
{"name": "Pass 2: Mark Leno" },
{"name": "Pass 2: Michelle Bravo" },
{"name": "Pass 2: Richie Greenberg" },
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.