Skip to content

Instantly share code, notes, and snippets.

@pioh
Last active November 3, 2016 13:07
Show Gist options
  • Save pioh/e3ee6e3c82e457319b416be203423048 to your computer and use it in GitHub Desktop.
Save pioh/e3ee6e3c82e457319b416be203423048 to your computer and use it in GitHub Desktop.
MetroApi
// Get all info about world metro stations
// cityID, lineID, stationID - all unique IDs in the world, no stations with the same id in different cities
{
cityByID: {
2334 : {
text: 'Москва',
ID : 2334,
},
2335 : {
text: 'Питер',
ID: 2335,
},
},
lineByID: {
123: {
text: 'Сокольническая линия',
color: '#FFF',
cityID: 2334,
},
},
stationByID: {
23: {
text: 'Сокольники',
lineID: 123,
},
},
}
// Filter or object property:
{
stations: [23,24,25],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment