Skip to content

Instantly share code, notes, and snippets.

@douglasgoodwin
Created December 2, 2014 18:27
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 douglasgoodwin/7029a792dd9e7447b227 to your computer and use it in GitHub Desktop.
Save douglasgoodwin/7029a792dd9e7447b227 to your computer and use it in GitHub Desktop.
Output from the script at http://www.metro.net/api/service/maps/ now includes order
{
version: 1408473258,
servicetypes: [
{
services: [
{
services: [
],
shortname: "Owl Service",
subtitle: "Owl",
order: 11
}
],
title: "24 Hour Service"
},
{
services: [
{
services: [
],
shortname: "400-499",
subtitle: "to/from Downtown Los Angeles",
order: 5
},
{
services: [
],
shortname: "500-599",
subtitle: "in other areas",
order: 6
}
],
title: "Express Service"
},
{
services: [
{
services: [
],
shortname: "300-399",
subtitle: null,
order: 4
}
],
title: "Limited Stop Service"
},
{
services: [
{
services: [
],
shortname: "1-99",
subtitle: "to/from Downtown Los Angeles",
order: 1
},
{
services: [
],
shortname: "100-199",
subtitle: "East/West routes in other areas",
order: 2
},
{
services: [
],
shortname: "200-299",
subtitle: "North/South routes in other areas",
order: 3
}
],
title: "Local Service"
},
{
services: [
{
services: [
],
shortname: "800-899",
subtitle: null,
order: 9
}
],
title: "Metro Rail Service"
},
{
services: [
{
services: [
],
shortname: "700-799",
subtitle: null,
order: 8
}
],
title: "Metro Rapid Service"
},
{
services: [
{
services: [
],
shortname: "600-699",
subtitle: null,
order: 7
}
],
title: "Shuttles & Circulators"
},
{
services: [
{
services: [
],
shortname: "Overview",
subtitle: null,
order: 13
}
],
title: "System Maps"
},
{
services: [
{
services: [
],
shortname: "900-999",
subtitle: null,
order: 10
}
],
title: "Transitways"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment