mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Prettify json (tests) (#68888)
This commit is contained in:
parent
bbcefd6fec
commit
496d90bf00
132
tests/fixtures/alpr_cloud.json
vendored
132
tests/fixtures/alpr_cloud.json
vendored
@ -1,103 +1,101 @@
|
||||
{
|
||||
"plate":{
|
||||
"data_type":"alpr_results",
|
||||
"epoch_time":1483953071942,
|
||||
"img_height":640,
|
||||
"img_width":480,
|
||||
"results":[
|
||||
"plate": {
|
||||
"data_type": "alpr_results",
|
||||
"epoch_time": 1483953071942,
|
||||
"img_height": 640,
|
||||
"img_width": 480,
|
||||
"results": [
|
||||
{
|
||||
"plate":"H786P0J",
|
||||
"confidence":90.436699,
|
||||
"region_confidence":0,
|
||||
"region":"",
|
||||
"plate_index":0,
|
||||
"processing_time_ms":16.495636,
|
||||
"candidates":[
|
||||
"plate": "H786P0J",
|
||||
"confidence": 90.436699,
|
||||
"region_confidence": 0,
|
||||
"region": "",
|
||||
"plate_index": 0,
|
||||
"processing_time_ms": 16.495636,
|
||||
"candidates": [
|
||||
{
|
||||
"matches_template":0,
|
||||
"plate":"H786P0J",
|
||||
"confidence":90.436699
|
||||
"matches_template": 0,
|
||||
"plate": "H786P0J",
|
||||
"confidence": 90.436699
|
||||
},
|
||||
{
|
||||
"matches_template":0,
|
||||
"plate":"H786POJ",
|
||||
"confidence":88.046814
|
||||
"matches_template": 0,
|
||||
"plate": "H786POJ",
|
||||
"confidence": 88.046814
|
||||
},
|
||||
{
|
||||
"matches_template":0,
|
||||
"plate":"H786PDJ",
|
||||
"confidence":85.58432
|
||||
"matches_template": 0,
|
||||
"plate": "H786PDJ",
|
||||
"confidence": 85.58432
|
||||
},
|
||||
{
|
||||
"matches_template":0,
|
||||
"plate":"H786PQJ",
|
||||
"confidence":85.472939
|
||||
"matches_template": 0,
|
||||
"plate": "H786PQJ",
|
||||
"confidence": 85.472939
|
||||
},
|
||||
{
|
||||
"matches_template":0,
|
||||
"plate":"HS786P0J",
|
||||
"confidence":75.455666
|
||||
"matches_template": 0,
|
||||
"plate": "HS786P0J",
|
||||
"confidence": 75.455666
|
||||
},
|
||||
{
|
||||
"matches_template":0,
|
||||
"plate":"H2786P0J",
|
||||
"confidence":75.256081
|
||||
"matches_template": 0,
|
||||
"plate": "H2786P0J",
|
||||
"confidence": 75.256081
|
||||
},
|
||||
{
|
||||
"matches_template":0,
|
||||
"plate":"H3786P0J",
|
||||
"confidence":65.228058
|
||||
"matches_template": 0,
|
||||
"plate": "H3786P0J",
|
||||
"confidence": 65.228058
|
||||
},
|
||||
{
|
||||
"matches_template":0,
|
||||
"plate":"H786PGJ",
|
||||
"confidence":63.303329
|
||||
"matches_template": 0,
|
||||
"plate": "H786PGJ",
|
||||
"confidence": 63.303329
|
||||
},
|
||||
{
|
||||
"matches_template":0,
|
||||
"plate":"HS786POJ",
|
||||
"confidence":83.065773
|
||||
"matches_template": 0,
|
||||
"plate": "HS786POJ",
|
||||
"confidence": 83.065773
|
||||
},
|
||||
{
|
||||
"matches_template":0,
|
||||
"plate":"H2786POJ",
|
||||
"confidence":52.866196
|
||||
"matches_template": 0,
|
||||
"plate": "H2786POJ",
|
||||
"confidence": 52.866196
|
||||
}
|
||||
],
|
||||
"coordinates":[
|
||||
"coordinates": [
|
||||
{
|
||||
"y":384,
|
||||
"x":156
|
||||
"y": 384,
|
||||
"x": 156
|
||||
},
|
||||
{
|
||||
"y":384,
|
||||
"x":289
|
||||
"y": 384,
|
||||
"x": 289
|
||||
},
|
||||
{
|
||||
"y":409,
|
||||
"x":289
|
||||
"y": 409,
|
||||
"x": 289
|
||||
},
|
||||
{
|
||||
"y":409,
|
||||
"x":156
|
||||
"y": 409,
|
||||
"x": 156
|
||||
}
|
||||
],
|
||||
"matches_template":0,
|
||||
"requested_topn":10
|
||||
"matches_template": 0,
|
||||
"requested_topn": 10
|
||||
}
|
||||
],
|
||||
"version":2,
|
||||
"processing_time_ms":115.687286,
|
||||
"regions_of_interest":[
|
||||
|
||||
]
|
||||
"version": 2,
|
||||
"processing_time_ms": 115.687286,
|
||||
"regions_of_interest": []
|
||||
},
|
||||
"image_bytes":"",
|
||||
"img_width":480,
|
||||
"credits_monthly_used":5791,
|
||||
"img_height":640,
|
||||
"total_processing_time":120.71599999762839,
|
||||
"credits_monthly_total":10000000000,
|
||||
"image_bytes_prefix":"data:image/jpeg;base64,",
|
||||
"credit_cost":1
|
||||
"image_bytes": "",
|
||||
"img_width": 480,
|
||||
"credits_monthly_used": 5791,
|
||||
"img_height": 640,
|
||||
"total_processing_time": 120.71599999762839,
|
||||
"credits_monthly_total": 10000000000,
|
||||
"image_bytes_prefix": "data:image/jpeg;base64,",
|
||||
"credit_cost": 1
|
||||
}
|
||||
|
10
tests/fixtures/darksky.json
vendored
10
tests/fixtures/darksky.json
vendored
@ -16,10 +16,7 @@
|
||||
},
|
||||
{
|
||||
"title": "Red Flag Warning",
|
||||
"regions": [
|
||||
"Guadalupe Mountains",
|
||||
"Southeast Plains"
|
||||
],
|
||||
"regions": ["Guadalupe Mountains", "Southeast Plains"],
|
||||
"severity": "warning",
|
||||
"time": 1554300000,
|
||||
"expires": 1554350400,
|
||||
@ -267,10 +264,7 @@
|
||||
"summary": "No precipitation throughout the week, with temperatures falling to 66°F on Thursday."
|
||||
},
|
||||
"flags": {
|
||||
"darksky-stations": [
|
||||
"KMUX",
|
||||
"KDAX"
|
||||
],
|
||||
"darksky-stations": ["KMUX", "KDAX"],
|
||||
"isd-stations": [
|
||||
"724943-99999",
|
||||
"745039-99999",
|
||||
|
549
tests/fixtures/homematicip_cloud.json
vendored
549
tests/fixtures/homematicip_cloud.json
vendored
File diff suppressed because it is too large
Load Diff
@ -1,3 +1,3 @@
|
||||
{
|
||||
"personId":"25985303-c537-4467-b41d-bdb45cd95ca1"
|
||||
"personId": "25985303-c537-4467-b41d-bdb45cd95ca1"
|
||||
}
|
||||
|
16
tests/fixtures/microsoft_face_identify.json
vendored
16
tests/fixtures/microsoft_face_identify.json
vendored
@ -1,19 +1,19 @@
|
||||
[
|
||||
{
|
||||
"faceId":"c5c24a82-6845-4031-9d5d-978df9175426",
|
||||
"candidates":[
|
||||
"faceId": "c5c24a82-6845-4031-9d5d-978df9175426",
|
||||
"candidates": [
|
||||
{
|
||||
"personId":"2ae4935b-9659-44c3-977f-61fac20d0538",
|
||||
"confidence":0.92
|
||||
"personId": "2ae4935b-9659-44c3-977f-61fac20d0538",
|
||||
"confidence": 0.92
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"faceId":"c5c24a82-6825-4031-9d5d-978df0175426",
|
||||
"candidates":[
|
||||
"faceId": "c5c24a82-6825-4031-9d5d-978df0175426",
|
||||
"candidates": [
|
||||
{
|
||||
"personId":"25985303-c537-4467-b41d-bdb45cd95ca1",
|
||||
"confidence":0.32
|
||||
"personId": "25985303-c537-4467-b41d-bdb45cd95ca1",
|
||||
"confidence": 0.32
|
||||
}
|
||||
]
|
||||
}
|
||||
|
12
tests/fixtures/microsoft_face_persongroups.json
vendored
12
tests/fixtures/microsoft_face_persongroups.json
vendored
@ -1,12 +1,12 @@
|
||||
[
|
||||
{
|
||||
"personGroupId":"test_group1",
|
||||
"name":"test group1",
|
||||
"userData":"test"
|
||||
"personGroupId": "test_group1",
|
||||
"name": "test group1",
|
||||
"userData": "test"
|
||||
},
|
||||
{
|
||||
"personGroupId":"test_group2",
|
||||
"name":"test group2",
|
||||
"userData":"test"
|
||||
"personGroupId": "test_group2",
|
||||
"name": "test group2",
|
||||
"userData": "test"
|
||||
}
|
||||
]
|
||||
|
16
tests/fixtures/microsoft_face_persons.json
vendored
16
tests/fixtures/microsoft_face_persons.json
vendored
@ -1,19 +1,19 @@
|
||||
[
|
||||
{
|
||||
"personId":"25985303-c537-4467-b41d-bdb45cd95ca1",
|
||||
"name":"Ryan",
|
||||
"userData":"User-provided data attached to the person",
|
||||
"persistedFaceIds":[
|
||||
"personId": "25985303-c537-4467-b41d-bdb45cd95ca1",
|
||||
"name": "Ryan",
|
||||
"userData": "User-provided data attached to the person",
|
||||
"persistedFaceIds": [
|
||||
"015839fb-fbd9-4f79-ace9-7675fc2f1dd9",
|
||||
"fce92aed-d578-4d2e-8114-068f8af4492e",
|
||||
"b64d5e15-8257-4af2-b20a-5a750f8940e7"
|
||||
]
|
||||
},
|
||||
{
|
||||
"personId":"2ae4935b-9659-44c3-977f-61fac20d0538",
|
||||
"name":"David",
|
||||
"userData":"User-provided data attached to the person",
|
||||
"persistedFaceIds":[
|
||||
"personId": "2ae4935b-9659-44c3-977f-61fac20d0538",
|
||||
"name": "David",
|
||||
"userData": "User-provided data attached to the person",
|
||||
"persistedFaceIds": [
|
||||
"30ea1073-cc9e-4652-b1e3-d08fb7b95315",
|
||||
"fbd2a038-dbff-452c-8e79-2ee81b1aa84e"
|
||||
]
|
||||
|
691
tests/fixtures/smhi.json
vendored
691
tests/fixtures/smhi.json
vendored
File diff suppressed because it is too large
Load Diff
6
tests/fixtures/uk_transport_bus.json
vendored
6
tests/fixtures/uk_transport_bus.json
vendored
@ -2,7 +2,8 @@
|
||||
"atcocode": "340000368SHE",
|
||||
"bearing": "",
|
||||
"departures": {
|
||||
"32A": [{
|
||||
"32A": [
|
||||
{
|
||||
"aimed_departure_time": "10:18",
|
||||
"best_departure_estimate": "10:18",
|
||||
"date": "2017-05-09",
|
||||
@ -51,7 +52,8 @@
|
||||
"source": "Traveline timetable (not a nextbuses live region)"
|
||||
}
|
||||
],
|
||||
"X32": [{
|
||||
"X32": [
|
||||
{
|
||||
"aimed_departure_time": "10:09",
|
||||
"best_departure_estimate": "10:09",
|
||||
"date": "2017-05-09",
|
||||
|
19
tests/fixtures/wsdot.json
vendored
19
tests/fixtures/wsdot.json
vendored
@ -1,20 +1,25 @@
|
||||
{"Description": "Downtown Seattle to Downtown Bellevue via I-90",
|
||||
{
|
||||
"Description": "Downtown Seattle to Downtown Bellevue via I-90",
|
||||
"TimeUpdated": "/Date(1485040200000-0800)/",
|
||||
"Distance": 10.6,
|
||||
"EndPoint": {"Direction": "N",
|
||||
"EndPoint": {
|
||||
"Direction": "N",
|
||||
"Description": "I-405 @ NE 8th St in Bellevue",
|
||||
"Longitude": -122.18797,
|
||||
"MilePost": 13.6,
|
||||
"Latitude": 47.61361,
|
||||
"RoadName": "I-405"},
|
||||
"StartPoint": {"Direction": "S",
|
||||
"RoadName": "I-405"
|
||||
},
|
||||
"StartPoint": {
|
||||
"Direction": "S",
|
||||
"Description": "I-5 @ University St in Seattle",
|
||||
"Longitude": -122.331759,
|
||||
"MilePost": 165.83,
|
||||
"Latitude": 47.609294,
|
||||
"RoadName": "I-5"},
|
||||
"RoadName": "I-5"
|
||||
},
|
||||
"CurrentTime": 11,
|
||||
"TravelTimeID": 96,
|
||||
"Name": "Seattle-Bellevue via I-90 (EB AM)",
|
||||
"AverageTime": 11}
|
||||
|
||||
"AverageTime": 11
|
||||
}
|
||||
|
2
tests/fixtures/yahoo_finance.json
vendored
2
tests/fixtures/yahoo_finance.json
vendored
@ -1,4 +1,4 @@
|
||||
{
|
||||
{
|
||||
"symbol": "YHOO",
|
||||
"Ask": "42.42",
|
||||
"AverageDailyVolume": "11397600",
|
||||
|
33
tests/fixtures/yahooweather.json
vendored
33
tests/fixtures/yahooweather.json
vendored
@ -56,77 +56,88 @@
|
||||
"temp": "18",
|
||||
"text": "Cloudy"
|
||||
},
|
||||
"forecast": [{
|
||||
"forecast": [
|
||||
{
|
||||
"code": "28",
|
||||
"date": "17 Nov 2017",
|
||||
"day": "Fri",
|
||||
"high": "23",
|
||||
"low": "16",
|
||||
"text": "Mostly Cloudy"
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"code": "30",
|
||||
"date": "18 Nov 2017",
|
||||
"day": "Sat",
|
||||
"high": "22",
|
||||
"low": "13",
|
||||
"text": "Partly Cloudy"
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"code": "30",
|
||||
"date": "19 Nov 2017",
|
||||
"day": "Sun",
|
||||
"high": "22",
|
||||
"low": "12",
|
||||
"text": "Partly Cloudy"
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"code": "28",
|
||||
"date": "20 Nov 2017",
|
||||
"day": "Mon",
|
||||
"high": "21",
|
||||
"low": "11",
|
||||
"text": "Mostly Cloudy"
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"code": "28",
|
||||
"date": "21 Nov 2017",
|
||||
"day": "Tue",
|
||||
"high": "24",
|
||||
"low": "14",
|
||||
"text": "Mostly Cloudy"
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"code": "30",
|
||||
"date": "22 Nov 2017",
|
||||
"day": "Wed",
|
||||
"high": "27",
|
||||
"low": "15",
|
||||
"text": "Partly Cloudy"
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"code": "34",
|
||||
"date": "23 Nov 2017",
|
||||
"day": "Thu",
|
||||
"high": "27",
|
||||
"low": "15",
|
||||
"text": "Mostly Sunny"
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"code": "30",
|
||||
"date": "24 Nov 2017",
|
||||
"day": "Fri",
|
||||
"high": "23",
|
||||
"low": "16",
|
||||
"text": "Partly Cloudy"
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"code": "30",
|
||||
"date": "25 Nov 2017",
|
||||
"day": "Sat",
|
||||
"high": "22",
|
||||
"low": "15",
|
||||
"text": "Partly Cloudy"
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"code": "28",
|
||||
"date": "26 Nov 2017",
|
||||
"day": "Sun",
|
||||
"high": "24",
|
||||
"low": "13",
|
||||
"text": "Mostly Cloudy"
|
||||
}],
|
||||
}
|
||||
],
|
||||
"description": "<![CDATA[<img src=\"http://l.yimg.com/a/i/us/we/52/26.gif\"/>\n<BR />\n<b>Current Conditions:</b>\n<BR />Cloudy\n<BR />\n<BR />\n<b>Forecast:</b>\n<BR /> Fri - Mostly Cloudy. High: 23Low: 16\n<BR /> Sat - Partly Cloudy. High: 22Low: 13\n<BR /> Sun - Partly Cloudy. High: 22Low: 12\n<BR /> Mon - Mostly Cloudy. High: 21Low: 11\n<BR /> Tue - Mostly Cloudy. High: 24Low: 14\n<BR />\n<BR />\n<a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-23511632/\">Full Forecast at Yahoo! Weather</a>\n<BR />\n<BR />\n<BR />\n]]>",
|
||||
"guid": {
|
||||
"isPermaLink": "false"
|
||||
|
251
tests/fixtures/yandex_transport_bus_reply.json
vendored
251
tests/fixtures/yandex_transport_bus_reply.json
vendored
@ -2,10 +2,7 @@
|
||||
"data": {
|
||||
"id": "stop__9639579",
|
||||
"name": "7-й автобусный парк",
|
||||
"coordinates": [
|
||||
37.565280044,
|
||||
55.851959656
|
||||
],
|
||||
"coordinates": [37.565280044, 55.851959656],
|
||||
"currentTime": 1583421546364,
|
||||
"tzOffset": 10800,
|
||||
"type": "urban",
|
||||
@ -52,14 +49,8 @@
|
||||
],
|
||||
"seoname": "moscow",
|
||||
"bounds": [
|
||||
[
|
||||
37.0402925,
|
||||
55.31141404514547
|
||||
],
|
||||
[
|
||||
38.2047155,
|
||||
56.190068045145466
|
||||
]
|
||||
[37.0402925, 55.31141404514547],
|
||||
[38.2047155, 56.190068045145466]
|
||||
],
|
||||
"names": {
|
||||
"ablative": "",
|
||||
@ -114,21 +105,11 @@
|
||||
21622
|
||||
],
|
||||
"is_eu": false,
|
||||
"services_names": [
|
||||
"bs",
|
||||
"yaca",
|
||||
"ad"
|
||||
],
|
||||
"services_names": ["bs", "yaca", "ad"],
|
||||
"seoname": "moscow-and-moscow-oblast",
|
||||
"bounds": [
|
||||
[
|
||||
34.8496565,
|
||||
54.439456064325434
|
||||
],
|
||||
[
|
||||
39.9104055,
|
||||
57.14511506432543
|
||||
]
|
||||
[34.8496565, 54.439456064325434],
|
||||
[39.9104055, 57.14511506432543]
|
||||
],
|
||||
"names": {
|
||||
"ablative": "",
|
||||
@ -168,36 +149,13 @@
|
||||
"tzname": "",
|
||||
"official_languages": "ru",
|
||||
"widespread_languages": "ru",
|
||||
"suggest_list": [
|
||||
213,
|
||||
2,
|
||||
65,
|
||||
54,
|
||||
47,
|
||||
43,
|
||||
66,
|
||||
51,
|
||||
56,
|
||||
172,
|
||||
39,
|
||||
62
|
||||
],
|
||||
"suggest_list": [213, 2, 65, 54, 47, 43, 66, 51, 56, 172, 39, 62],
|
||||
"is_eu": false,
|
||||
"services_names": [
|
||||
"bs",
|
||||
"yaca",
|
||||
"ad"
|
||||
],
|
||||
"services_names": ["bs", "yaca", "ad"],
|
||||
"seoname": "russia",
|
||||
"bounds": [
|
||||
[
|
||||
13.683785499999999,
|
||||
35.290400699917846
|
||||
],
|
||||
[
|
||||
-174.6729755,
|
||||
75.99052769991785
|
||||
]
|
||||
[13.683785499999999, 35.290400699917846],
|
||||
[-174.6729755, 75.99052769991785]
|
||||
],
|
||||
"names": {
|
||||
"ablative": "",
|
||||
@ -218,9 +176,7 @@
|
||||
{
|
||||
"lineId": "2036924633",
|
||||
"name": "215",
|
||||
"Types": [
|
||||
"bus"
|
||||
],
|
||||
"Types": ["bus"],
|
||||
"type": "bus",
|
||||
"threads": [
|
||||
{
|
||||
@ -261,9 +217,7 @@
|
||||
{
|
||||
"lineId": "2036924720",
|
||||
"name": "692",
|
||||
"Types": [
|
||||
"bus"
|
||||
],
|
||||
"Types": ["bus"],
|
||||
"type": "bus",
|
||||
"threads": [
|
||||
{
|
||||
@ -325,9 +279,7 @@
|
||||
{
|
||||
"lineId": "2036924957",
|
||||
"name": "т29",
|
||||
"Types": [
|
||||
"bus"
|
||||
],
|
||||
"Types": ["bus"],
|
||||
"type": "bus",
|
||||
"threads": [
|
||||
{
|
||||
@ -403,9 +355,7 @@
|
||||
{
|
||||
"lineId": "2036924959",
|
||||
"name": "т3",
|
||||
"Types": [
|
||||
"bus"
|
||||
],
|
||||
"Types": ["bus"],
|
||||
"type": "bus",
|
||||
"threads": [
|
||||
{
|
||||
@ -473,9 +423,7 @@
|
||||
{
|
||||
"lineId": "2036924968",
|
||||
"name": "82",
|
||||
"Types": [
|
||||
"bus"
|
||||
],
|
||||
"Types": ["bus"],
|
||||
"type": "bus",
|
||||
"threads": [
|
||||
{
|
||||
@ -531,9 +479,7 @@
|
||||
{
|
||||
"lineId": "2036925396",
|
||||
"name": "м10",
|
||||
"Types": [
|
||||
"bus"
|
||||
],
|
||||
"Types": ["bus"],
|
||||
"type": "bus",
|
||||
"threads": [
|
||||
{
|
||||
@ -617,9 +563,7 @@
|
||||
{
|
||||
"lineId": "2036925416",
|
||||
"name": "194",
|
||||
"Types": [
|
||||
"bus"
|
||||
],
|
||||
"Types": ["bus"],
|
||||
"type": "bus",
|
||||
"threads": [
|
||||
{
|
||||
@ -675,9 +619,7 @@
|
||||
{
|
||||
"lineId": "2036925728",
|
||||
"name": "282",
|
||||
"Types": [
|
||||
"bus"
|
||||
],
|
||||
"Types": ["bus"],
|
||||
"type": "bus",
|
||||
"threads": [
|
||||
{
|
||||
@ -751,9 +693,7 @@
|
||||
{
|
||||
"lineId": "2036926781",
|
||||
"name": "154",
|
||||
"Types": [
|
||||
"bus"
|
||||
],
|
||||
"Types": ["bus"],
|
||||
"type": "bus",
|
||||
"threads": [
|
||||
{
|
||||
@ -815,9 +755,7 @@
|
||||
{
|
||||
"lineId": "2036926818",
|
||||
"name": "994",
|
||||
"Types": [
|
||||
"bus"
|
||||
],
|
||||
"Types": ["bus"],
|
||||
"type": "bus",
|
||||
"threads": [
|
||||
{
|
||||
@ -867,9 +805,7 @@
|
||||
{
|
||||
"lineId": "2036926890",
|
||||
"name": "466",
|
||||
"Types": [
|
||||
"bus"
|
||||
],
|
||||
"Types": ["bus"],
|
||||
"type": "bus",
|
||||
"threads": [
|
||||
{
|
||||
@ -935,9 +871,7 @@
|
||||
{
|
||||
"lineId": "213_114_bus_mosgortrans",
|
||||
"name": "114",
|
||||
"Types": [
|
||||
"bus"
|
||||
],
|
||||
"Types": ["bus"],
|
||||
"type": "bus",
|
||||
"threads": [
|
||||
{
|
||||
@ -999,9 +933,7 @@
|
||||
{
|
||||
"lineId": "213_179_bus_mosgortrans",
|
||||
"name": "179",
|
||||
"Types": [
|
||||
"bus"
|
||||
],
|
||||
"Types": ["bus"],
|
||||
"type": "bus",
|
||||
"threads": [
|
||||
{
|
||||
@ -1069,9 +1001,7 @@
|
||||
{
|
||||
"lineId": "213_191m_minibus_default",
|
||||
"name": "591",
|
||||
"Types": [
|
||||
"bus"
|
||||
],
|
||||
"Types": ["bus"],
|
||||
"type": "bus",
|
||||
"threads": [
|
||||
{
|
||||
@ -1137,9 +1067,7 @@
|
||||
{
|
||||
"lineId": "213_36_trolleybus_mosgortrans",
|
||||
"name": "т36",
|
||||
"Types": [
|
||||
"bus"
|
||||
],
|
||||
"Types": ["bus"],
|
||||
"type": "bus",
|
||||
"threads": [
|
||||
{
|
||||
@ -1207,9 +1135,7 @@
|
||||
{
|
||||
"lineId": "213_47_trolleybus_mosgortrans",
|
||||
"name": "т47",
|
||||
"Types": [
|
||||
"bus"
|
||||
],
|
||||
"Types": ["bus"],
|
||||
"type": "bus",
|
||||
"threads": [
|
||||
{
|
||||
@ -1285,9 +1211,7 @@
|
||||
{
|
||||
"lineId": "213_56_trolleybus_mosgortrans",
|
||||
"name": "т56",
|
||||
"Types": [
|
||||
"bus"
|
||||
],
|
||||
"Types": ["bus"],
|
||||
"type": "bus",
|
||||
"threads": [
|
||||
{
|
||||
@ -1363,9 +1287,7 @@
|
||||
{
|
||||
"lineId": "213_677_bus_mosgortrans",
|
||||
"name": "677",
|
||||
"Types": [
|
||||
"bus"
|
||||
],
|
||||
"Types": ["bus"],
|
||||
"type": "bus",
|
||||
"threads": [
|
||||
{
|
||||
@ -1427,9 +1349,7 @@
|
||||
{
|
||||
"lineId": "213_78_trolleybus_mosgortrans",
|
||||
"name": "т78",
|
||||
"Types": [
|
||||
"bus"
|
||||
],
|
||||
"Types": ["bus"],
|
||||
"type": "bus",
|
||||
"threads": [
|
||||
{
|
||||
@ -1505,9 +1425,7 @@
|
||||
{
|
||||
"lineId": "677k_bus_default",
|
||||
"name": "677к",
|
||||
"Types": [
|
||||
"bus"
|
||||
],
|
||||
"Types": ["bus"],
|
||||
"type": "bus",
|
||||
"threads": [
|
||||
{
|
||||
@ -1592,10 +1510,7 @@
|
||||
"type": "region",
|
||||
"url": "https://yandex.ru/maps/213/moscow/",
|
||||
"region": {
|
||||
"center": [
|
||||
37.622504,
|
||||
55.753215
|
||||
],
|
||||
"center": [37.622504, 55.753215],
|
||||
"zoom": 10
|
||||
}
|
||||
},
|
||||
@ -1618,23 +1533,11 @@
|
||||
"title": "7-й автобусный парк",
|
||||
"description": "Россия, Москва, Дмитровское шоссе",
|
||||
"address": "Россия, Москва, Дмитровское шоссе",
|
||||
"coordinates": [
|
||||
37.56528,
|
||||
55.85196
|
||||
],
|
||||
"displayCoordinates": [
|
||||
37.56528,
|
||||
55.85196
|
||||
],
|
||||
"coordinates": [37.56528, 55.85196],
|
||||
"displayCoordinates": [37.56528, 55.85196],
|
||||
"bounds": [
|
||||
[
|
||||
37.543123,
|
||||
55.77889866
|
||||
],
|
||||
[
|
||||
37.587437,
|
||||
55.92488366
|
||||
]
|
||||
[37.543123, 55.77889866],
|
||||
[37.587437, 55.92488366]
|
||||
],
|
||||
"logId": "dHlwZT1iaXpmaW5kZXI7aWQ9MjM5MzY2OTUwNjU4",
|
||||
"uri": "ymapsbm1://transit/stop?id=stop__9639579",
|
||||
@ -1645,10 +1548,7 @@
|
||||
"name": "Верхние Лихоборы",
|
||||
"distance": "510 м",
|
||||
"distanceValue": 509.184,
|
||||
"coordinates": [
|
||||
37.56121218,
|
||||
55.854501501
|
||||
],
|
||||
"coordinates": [37.56121218, 55.854501501],
|
||||
"type": "metro",
|
||||
"color": "#99cc33"
|
||||
},
|
||||
@ -1657,10 +1557,7 @@
|
||||
"name": "Окружная",
|
||||
"distance": "640 м",
|
||||
"distanceValue": 641.333,
|
||||
"coordinates": [
|
||||
37.572849014,
|
||||
55.848814359
|
||||
],
|
||||
"coordinates": [37.572849014, 55.848814359],
|
||||
"type": "metro",
|
||||
"color": "#ffa8af"
|
||||
},
|
||||
@ -1669,10 +1566,7 @@
|
||||
"name": "Окружная",
|
||||
"distance": "1,3 км",
|
||||
"distanceValue": 1263.44,
|
||||
"coordinates": [
|
||||
37.575977155,
|
||||
55.844377845
|
||||
],
|
||||
"coordinates": [37.575977155, 55.844377845],
|
||||
"type": "metro",
|
||||
"color": "#99cc33"
|
||||
}
|
||||
@ -1683,10 +1577,7 @@
|
||||
"name": "7-й автобусный парк",
|
||||
"distance": "0 м",
|
||||
"distanceValue": 0.0383997,
|
||||
"coordinates": [
|
||||
37.565280044,
|
||||
55.851959656
|
||||
],
|
||||
"coordinates": [37.565280044, 55.851959656],
|
||||
"type": "common"
|
||||
},
|
||||
{
|
||||
@ -1694,10 +1585,7 @@
|
||||
"name": "Метро Верхние Лихоборы",
|
||||
"distance": "420 м",
|
||||
"distanceValue": 424.302,
|
||||
"coordinates": [
|
||||
37.563047501,
|
||||
55.853727589
|
||||
],
|
||||
"coordinates": [37.563047501, 55.853727589],
|
||||
"type": "common"
|
||||
},
|
||||
{
|
||||
@ -1705,10 +1593,7 @@
|
||||
"name": "Метро Верхние Лихоборы (северный вестибюль)",
|
||||
"distance": "630 м",
|
||||
"distanceValue": 629.689,
|
||||
"coordinates": [
|
||||
37.562346735,
|
||||
55.857147019
|
||||
],
|
||||
"coordinates": [37.562346735, 55.857147019],
|
||||
"type": "common"
|
||||
},
|
||||
{
|
||||
@ -1716,10 +1601,7 @@
|
||||
"name": "Окружная",
|
||||
"distance": "860 м",
|
||||
"distanceValue": 857.487,
|
||||
"coordinates": [
|
||||
37.574303,
|
||||
55.847684
|
||||
],
|
||||
"coordinates": [37.574303, 55.847684],
|
||||
"type": "common"
|
||||
},
|
||||
{
|
||||
@ -1727,25 +1609,16 @@
|
||||
"name": "Станция Окружная",
|
||||
"distance": "930 м",
|
||||
"distanceValue": 926.144,
|
||||
"coordinates": [
|
||||
37.576123886,
|
||||
55.847913668
|
||||
],
|
||||
"coordinates": [37.576123886, 55.847913668],
|
||||
"type": "common"
|
||||
}
|
||||
],
|
||||
"panorama": {
|
||||
"id": "1297826777_672185801_23_1574243990",
|
||||
"direction": [
|
||||
32,
|
||||
10
|
||||
],
|
||||
"direction": [32, 10],
|
||||
"point": {
|
||||
"type": "Point",
|
||||
"coordinates": [
|
||||
37.565167718,
|
||||
55.8518591059
|
||||
]
|
||||
"coordinates": [37.565167718, 55.8518591059]
|
||||
},
|
||||
"preview": "https://avatars.mds.yandex.net/get-altay/1908863/2a00000169e52b1c1475fd4b51bae1f09966/%s",
|
||||
"staticPreview": "https://static-pano.maps.yandex.ru/v1/?panoid=1297826777_672185801_23_1574243990&size=500,240&azimuth=32&tilt=10&signature=fiN27DzM02pZ3x3eVIodfiQQ8tFX2_KGNZocjzsdfnA="
|
||||
@ -1778,12 +1651,8 @@
|
||||
"has_verified_owner": false,
|
||||
"geoproduct_poi_color": "#ABAEB3",
|
||||
"snippet_show_photo": "single_photo",
|
||||
"snippet_show_subline": [
|
||||
"no_subline"
|
||||
],
|
||||
"unusual_hours": [
|
||||
"2020-03-08"
|
||||
]
|
||||
"snippet_show_subline": ["no_subline"],
|
||||
"unusual_hours": ["2020-03-08"]
|
||||
},
|
||||
"seoname": "7_y_avtobusny_park",
|
||||
"geoId": 117015,
|
||||
@ -1795,21 +1664,11 @@
|
||||
],
|
||||
"region": {
|
||||
"id": 213,
|
||||
"hierarchy": [
|
||||
225,
|
||||
1,
|
||||
213
|
||||
],
|
||||
"hierarchy": [225, 1, 213],
|
||||
"seoname": "moscow",
|
||||
"bounds": [
|
||||
[
|
||||
37.0402925,
|
||||
55.31141404514547
|
||||
],
|
||||
[
|
||||
38.2047155,
|
||||
56.190068045145466
|
||||
]
|
||||
[37.0402925, 55.31141404514547],
|
||||
[38.2047155, 56.190068045145466]
|
||||
],
|
||||
"names": {
|
||||
"ablative": "",
|
||||
@ -1838,10 +1697,7 @@
|
||||
"type": "region",
|
||||
"url": "https://yandex.ru/maps/213/moscow/",
|
||||
"region": {
|
||||
"center": [
|
||||
37.622504,
|
||||
55.753215
|
||||
],
|
||||
"center": [37.622504, 55.753215],
|
||||
"zoom": 10
|
||||
}
|
||||
},
|
||||
@ -1867,10 +1723,7 @@
|
||||
"id": "10049405",
|
||||
"seoname": "dmitrovskoye_shosse",
|
||||
"kind": "street",
|
||||
"coordinates": [
|
||||
37.547719,
|
||||
55.87593
|
||||
],
|
||||
"coordinates": [37.547719, 55.87593],
|
||||
"encodedCoordinates": "Z04YcwNnTkQOQFtvfXR2dHVgZA=="
|
||||
}
|
||||
}
|
||||
|
143
tests/fixtures/yandex_transport_suburban_reply.json
vendored
143
tests/fixtures/yandex_transport_suburban_reply.json
vendored
@ -2,31 +2,18 @@
|
||||
"data": {
|
||||
"id": "station__lh_9876336",
|
||||
"name": "Славянский Бульвар",
|
||||
"coordinates": [
|
||||
37.47243,
|
||||
55.730359
|
||||
],
|
||||
"coordinates": [37.47243, 55.730359],
|
||||
"currentTime": 1634984296770,
|
||||
"tzOffset": 10800,
|
||||
"type": "railway",
|
||||
"region": {
|
||||
"id": 213,
|
||||
"capitalId": 0,
|
||||
"hierarchy": [
|
||||
225,
|
||||
1,
|
||||
213
|
||||
],
|
||||
"hierarchy": [225, 1, 213],
|
||||
"seoname": "moscow",
|
||||
"bounds": [
|
||||
[
|
||||
37.0402925,
|
||||
55.31141404514547
|
||||
],
|
||||
[
|
||||
38.2047155,
|
||||
56.190068045145466
|
||||
]
|
||||
[37.0402925, 55.31141404514547],
|
||||
[38.2047155, 56.190068045145466]
|
||||
],
|
||||
"longitude": 37.622504,
|
||||
"latitude": 55.753215,
|
||||
@ -48,10 +35,7 @@
|
||||
{
|
||||
"lineId": "lh_6031x7531_9600213_g21_4",
|
||||
"name": "6031/7531",
|
||||
"Types": [
|
||||
"suburban",
|
||||
"railway"
|
||||
],
|
||||
"Types": ["suburban", "railway"],
|
||||
"type": "suburban",
|
||||
"threads": [
|
||||
{
|
||||
@ -88,10 +72,7 @@
|
||||
{
|
||||
"lineId": "lh_6183_9600781_g21_4",
|
||||
"name": "6183",
|
||||
"Types": [
|
||||
"suburban",
|
||||
"railway"
|
||||
],
|
||||
"Types": ["suburban", "railway"],
|
||||
"type": "suburban",
|
||||
"threads": [
|
||||
{
|
||||
@ -128,10 +109,7 @@
|
||||
{
|
||||
"lineId": "lh_7268_9600721_g21_4",
|
||||
"name": "7268",
|
||||
"Types": [
|
||||
"suburban",
|
||||
"railway"
|
||||
],
|
||||
"Types": ["suburban", "railway"],
|
||||
"type": "suburban",
|
||||
"threads": [
|
||||
{
|
||||
@ -183,10 +161,7 @@
|
||||
"type": "region",
|
||||
"url": "https://yandex.ru/maps/213/moscow/",
|
||||
"region": {
|
||||
"center": [
|
||||
37.622504,
|
||||
55.753215
|
||||
],
|
||||
"center": [37.622504, 55.753215],
|
||||
"zoom": 10
|
||||
}
|
||||
},
|
||||
@ -209,23 +184,11 @@
|
||||
"title": "Станция метро Славянский бульвар",
|
||||
"description": "Россия, Москва, Западный административный округ, район Фили-Давыдково",
|
||||
"address": "Россия, Москва, Западный административный округ, район Фили-Давыдково",
|
||||
"coordinates": [
|
||||
37.47049,
|
||||
55.729442
|
||||
],
|
||||
"displayCoordinates": [
|
||||
37.47049,
|
||||
55.729442
|
||||
],
|
||||
"coordinates": [37.47049, 55.729442],
|
||||
"displayCoordinates": [37.47049, 55.729442],
|
||||
"bounds": [
|
||||
[
|
||||
37.464149,
|
||||
55.725767
|
||||
],
|
||||
[
|
||||
37.480606,
|
||||
55.735054
|
||||
]
|
||||
[37.464149, 55.725767],
|
||||
[37.480606, 55.735054]
|
||||
],
|
||||
"uri": "ymapsbm1://transit/stop?id=station__lh_9876336",
|
||||
"logId": "dHlwZT1iaXpmaW5kZXI7aWQ9MjM2OTE0NjU0Nzcx",
|
||||
@ -236,10 +199,7 @@
|
||||
"name": "Славянский бульвар",
|
||||
"distance": "130 м",
|
||||
"distanceValue": 131.128,
|
||||
"coordinates": [
|
||||
37.46880848,
|
||||
55.729018063
|
||||
],
|
||||
"coordinates": [37.46880848, 55.729018063],
|
||||
"type": "metro",
|
||||
"color": "#003399"
|
||||
},
|
||||
@ -248,10 +208,7 @@
|
||||
"name": "Пионерская",
|
||||
"distance": "1,1 км",
|
||||
"distanceValue": 1145.75,
|
||||
"coordinates": [
|
||||
37.467484245,
|
||||
55.736075908
|
||||
],
|
||||
"coordinates": [37.467484245, 55.736075908],
|
||||
"type": "metro",
|
||||
"color": "#0099cc"
|
||||
},
|
||||
@ -260,10 +217,7 @@
|
||||
"name": "Филёвский парк",
|
||||
"distance": "1,9 км",
|
||||
"distanceValue": 1940.38,
|
||||
"coordinates": [
|
||||
37.48289444,
|
||||
55.739425767
|
||||
],
|
||||
"coordinates": [37.48289444, 55.739425767],
|
||||
"type": "metro",
|
||||
"color": "#0099cc"
|
||||
}
|
||||
@ -274,10 +228,7 @@
|
||||
"name": "Метро Славянский бульвар",
|
||||
"distance": "300 м",
|
||||
"distanceValue": 295.068,
|
||||
"coordinates": [
|
||||
37.473066913,
|
||||
55.728642545
|
||||
],
|
||||
"coordinates": [37.473066913, 55.728642545],
|
||||
"type": "common"
|
||||
},
|
||||
{
|
||||
@ -285,10 +236,7 @@
|
||||
"name": "Давыдково",
|
||||
"distance": "680 м",
|
||||
"distanceValue": 675.354,
|
||||
"coordinates": [
|
||||
37.469965263,
|
||||
55.727241055
|
||||
],
|
||||
"coordinates": [37.469965263, 55.727241055],
|
||||
"type": "common"
|
||||
},
|
||||
{
|
||||
@ -296,10 +244,7 @@
|
||||
"name": "Давыдковская улица",
|
||||
"distance": "770 м",
|
||||
"distanceValue": 774.503,
|
||||
"coordinates": [
|
||||
37.478631492,
|
||||
55.726709525
|
||||
],
|
||||
"coordinates": [37.478631492, 55.726709525],
|
||||
"type": "common"
|
||||
},
|
||||
{
|
||||
@ -307,10 +252,7 @@
|
||||
"name": "Метро Пионерская",
|
||||
"distance": "790 м",
|
||||
"distanceValue": 789.69,
|
||||
"coordinates": [
|
||||
37.470052901,
|
||||
55.733765425
|
||||
],
|
||||
"coordinates": [37.470052901, 55.733765425],
|
||||
"type": "common"
|
||||
}
|
||||
],
|
||||
@ -418,21 +360,11 @@
|
||||
"region": {
|
||||
"id": 213,
|
||||
"capitalId": 0,
|
||||
"hierarchy": [
|
||||
225,
|
||||
1,
|
||||
213
|
||||
],
|
||||
"hierarchy": [225, 1, 213],
|
||||
"seoname": "moscow",
|
||||
"bounds": [
|
||||
[
|
||||
37.0402925,
|
||||
55.31141404514547
|
||||
],
|
||||
[
|
||||
38.2047155,
|
||||
56.190068045145466
|
||||
]
|
||||
[37.0402925, 55.31141404514547],
|
||||
[38.2047155, 56.190068045145466]
|
||||
],
|
||||
"longitude": 37.622504,
|
||||
"latitude": 55.753215,
|
||||
@ -462,10 +394,7 @@
|
||||
"type": "region",
|
||||
"url": "https://yandex.ru/maps/213/moscow/",
|
||||
"region": {
|
||||
"center": [
|
||||
37.622504,
|
||||
55.753215
|
||||
],
|
||||
"center": [37.622504, 55.753215],
|
||||
"zoom": 10
|
||||
}
|
||||
},
|
||||
@ -476,21 +405,11 @@
|
||||
"region": {
|
||||
"id": 213,
|
||||
"capitalId": 0,
|
||||
"hierarchy": [
|
||||
225,
|
||||
1,
|
||||
213
|
||||
],
|
||||
"hierarchy": [225, 1, 213],
|
||||
"seoname": "moscow",
|
||||
"bounds": [
|
||||
[
|
||||
37.0402925,
|
||||
55.31141404514547
|
||||
],
|
||||
[
|
||||
38.2047155,
|
||||
56.190068045145466
|
||||
]
|
||||
[37.0402925, 55.31141404514547],
|
||||
[38.2047155, 56.190068045145466]
|
||||
],
|
||||
"longitude": 37.622504,
|
||||
"latitude": 55.753215,
|
||||
@ -532,14 +451,8 @@
|
||||
"id": "53211697",
|
||||
"seoname": "rayon_fili_davydkovo",
|
||||
"kind": "district",
|
||||
"coordinates": [
|
||||
37.469359,
|
||||
55.727136
|
||||
],
|
||||
"displayCoordinates": [
|
||||
37.469359,
|
||||
55.727136
|
||||
],
|
||||
"coordinates": [37.469359, 55.727136],
|
||||
"displayCoordinates": [37.469359, 55.727136],
|
||||
"encodedCoordinates": "Z04YcgFpSkAOQFtvfXtzdn1gYg=="
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user