Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save simgislab/aa89fdb2fa0d218cce7c to your computer and use it in GitHub Desktop.
Save simgislab/aa89fdb2fa0d218cce7c to your computer and use it in GitHub Desktop.
Example output from Metro4all query with portals info
http://metro4all.org/ajax/ru/msk/routes/search?station_from=34&portal_from=17360&station_to=120&portal_to=15190
{
"result": [
{
"portals": {
"portal_to": {
"barriers": {
"lift_minus_step": "0",
"min_step_ramp": 0,
"escalator": 1,
"min_step": 0,
"max_width": 73,
"min_rail_width": null,
"lift": false,
"max_rail_width": null,
"max_angle": null
}
},
"portal_from": {
"barriers": {
"lift_minus_step": "0",
"min_step_ramp": 1,
"escalator": 2,
"min_step": 37,
"max_width": 75,
"min_rail_width": 41,
"lift": false,
"max_rail_width": 88,
"max_angle": 20
}
}
},
"route": [
{
"station_type": "regular",
"barriers": null,
"station_name": "Маяковская",
"schema": "45.png",
"station_line": {
"color": "#44b85c",
"name": "Замоскворецкая",
"id": 2
},
"coordinates": [
55.7701163251,
37.595785151
],
"id": 34
},
{
"station_type": "interchange",
"barriers": {
"lift_minus_step": "0",
"min_step_ramp": 21,
"escalator": 1,
"min_step": 21,
"max_width": 95,
"min_rail_width": null,
"lift": false,
"max_rail_width": null,
"max_angle": null
},
"station_name": "Тверская",
"schema": "46.png",
"station_line": {
"color": "#44b85c",
"name": "Замоскворецкая",
"id": 2
},
"coordinates": [
55.7656713784,
37.60521346
],
"id": 33
},
{
"station_type": "regular",
"barriers": null,
"station_name": "Пушкинская",
"schema": "46.png",
"station_line": {
"color": "#8e479c",
"name": "Таганско-Краснопресненская",
"id": 7
},
"coordinates": [
55.7652916483,
37.6060433855
],
"id": 119
},
{
"station_type": "regular",
"barriers": null,
"station_name": "Баррикадная",
"schema": "94.png",
"station_line": {
"color": "#8e479c",
"name": "Таганско-Краснопресненская",
"id": 7
},
"coordinates": [
55.7610218544,
37.5799150461
],
"id": 120
}
]
},
{
"portals": {
"portal_to": {
"barriers": {
"lift_minus_step": "0",
"min_step_ramp": 0,
"escalator": 1,
"min_step": 0,
"max_width": 73,
"min_rail_width": null,
"lift": false,
"max_rail_width": null,
"max_angle": null
}
},
"portal_from": {
"barriers": {
"lift_minus_step": "0",
"min_step_ramp": 1,
"escalator": 2,
"min_step": 37,
"max_width": 75,
"min_rail_width": 41,
"lift": false,
"max_rail_width": 88,
"max_angle": 20
}
}
},
"route": [
{
"station_type": "regular",
"barriers": null,
"station_name": "Маяковская",
"schema": "45.png",
"station_line": {
"color": "#44b85c",
"name": "Замоскворецкая",
"id": 2
},
"coordinates": [
55.7701163251,
37.595785151
],
"id": 34
},
{
"station_type": "interchange",
"barriers": {
"lift_minus_step": "0",
"min_step_ramp": 0,
"escalator": 2,
"min_step": 0,
"max_width": 95,
"min_rail_width": null,
"lift": false,
"max_rail_width": null,
"max_angle": null
},
"station_name": "Тверская",
"schema": "46.png",
"station_line": {
"color": "#44b85c",
"name": "Замоскворецкая",
"id": 2
},
"coordinates": [
55.7656713784,
37.60521346
],
"id": 33
},
{
"station_type": "interchange",
"barriers": {
"lift_minus_step": "0",
"min_step_ramp": 42,
"escalator": 1,
"min_step": 42,
"max_width": 95,
"min_rail_width": null,
"lift": false,
"max_rail_width": null,
"max_angle": null
},
"station_name": "Чеховская",
"schema": "46.png",
"station_line": {
"color": "#a1a2a3",
"name": "Серпуховско-Тимирязевская",
"id": 9
},
"coordinates": [
55.7649658845,
37.609706096
],
"id": 139
},
{
"station_type": "regular",
"barriers": null,
"station_name": "Пушкинская",
"schema": "46.png",
"station_line": {
"color": "#8e479c",
"name": "Таганско-Краснопресненская",
"id": 7
},
"coordinates": [
55.7652916483,
37.6060433855
],
"id": 119
},
{
"station_type": "regular",
"barriers": null,
"station_name": "Баррикадная",
"schema": "94.png",
"station_line": {
"color": "#8e479c",
"name": "Таганско-Краснопресненская",
"id": 7
},
"coordinates": [
55.7610218544,
37.5799150461
],
"id": 120
}
]
},
{
"portals": {
"portal_to": {
"barriers": {
"lift_minus_step": "0",
"min_step_ramp": 0,
"escalator": 1,
"min_step": 0,
"max_width": 73,
"min_rail_width": null,
"lift": false,
"max_rail_width": null,
"max_angle": null
}
},
"portal_from": {
"barriers": {
"lift_minus_step": "0",
"min_step_ramp": 1,
"escalator": 2,
"min_step": 37,
"max_width": 75,
"min_rail_width": 41,
"lift": false,
"max_rail_width": 88,
"max_angle": 20
}
}
},
"route": [
{
"station_type": "regular",
"barriers": null,
"station_name": "Маяковская",
"schema": "45.png",
"station_line": {
"color": "#44b85c",
"name": "Замоскворецкая",
"id": 2
},
"coordinates": [
55.7701163251,
37.595785151
],
"id": 34
},
{
"station_type": "interchange",
"barriers": {
"lift_minus_step": "0",
"min_step_ramp": 45,
"escalator": 1,
"min_step": 45,
"max_width": 95,
"min_rail_width": null,
"lift": false,
"max_rail_width": null,
"max_angle": null
},
"station_name": "Белорусская",
"schema": "44.png",
"station_line": {
"color": "#44b85c",
"name": "Замоскворецкая",
"id": 2
},
"coordinates": [
55.7766719254,
37.5838819568
],
"id": 35
},
{
"station_type": "regular",
"barriers": null,
"station_name": "Белорусская",
"schema": "44.png",
"station_line": {
"color": "#894e35",
"name": "Кольцевая",
"id": 5
},
"coordinates": [
55.7761564428,
37.5840275048
],
"id": 67
},
{
"station_type": "interchange",
"barriers": {
"lift_minus_step": "0",
"min_step_ramp": 28,
"escalator": 1,
"min_step": 28,
"max_width": 100,
"min_rail_width": null,
"lift": false,
"max_rail_width": null,
"max_angle": null
},
"station_name": "Краснопресненская",
"schema": "94.png",
"station_line": {
"color": "#894e35",
"name": "Кольцевая",
"id": 5
},
"coordinates": [
55.7608548473,
37.5772655311
],
"id": 78
},
{
"station_type": "regular",
"barriers": null,
"station_name": "Баррикадная",
"schema": "94.png",
"station_line": {
"color": "#8e479c",
"name": "Таганско-Краснопресненская",
"id": 7
},
"coordinates": [
55.7610218544,
37.5799150461
],
"id": 120
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment