Prettify json (tests) (#68888)
This commit is contained in:
parent
bbcefd6fec
commit
496d90bf00
21 changed files with 13802 additions and 14618 deletions
200
tests/fixtures/alpr_cloud.json
vendored
200
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":"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":"H786POJ",
|
||||
"confidence":88.046814
|
||||
},
|
||||
{
|
||||
"matches_template":0,
|
||||
"plate":"H786PDJ",
|
||||
"confidence":85.58432
|
||||
},
|
||||
{
|
||||
"matches_template":0,
|
||||
"plate":"H786PQJ",
|
||||
"confidence":85.472939
|
||||
},
|
||||
{
|
||||
"matches_template":0,
|
||||
"plate":"HS786P0J",
|
||||
"confidence":75.455666
|
||||
},
|
||||
{
|
||||
"matches_template":0,
|
||||
"plate":"H2786P0J",
|
||||
"confidence":75.256081
|
||||
},
|
||||
{
|
||||
"matches_template":0,
|
||||
"plate":"H3786P0J",
|
||||
"confidence":65.228058
|
||||
},
|
||||
{
|
||||
"matches_template":0,
|
||||
"plate":"H786PGJ",
|
||||
"confidence":63.303329
|
||||
},
|
||||
{
|
||||
"matches_template":0,
|
||||
"plate":"HS786POJ",
|
||||
"confidence":83.065773
|
||||
},
|
||||
{
|
||||
"matches_template":0,
|
||||
"plate":"H2786POJ",
|
||||
"confidence":52.866196
|
||||
}
|
||||
],
|
||||
"coordinates":[
|
||||
{
|
||||
"y":384,
|
||||
"x":156
|
||||
},
|
||||
{
|
||||
"y":384,
|
||||
"x":289
|
||||
},
|
||||
{
|
||||
"y":409,
|
||||
"x":289
|
||||
},
|
||||
{
|
||||
"y":409,
|
||||
"x":156
|
||||
}
|
||||
],
|
||||
"matches_template":0,
|
||||
"requested_topn":10
|
||||
}
|
||||
],
|
||||
"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
|
||||
"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": [
|
||||
{
|
||||
"matches_template": 0,
|
||||
"plate": "H786P0J",
|
||||
"confidence": 90.436699
|
||||
},
|
||||
{
|
||||
"matches_template": 0,
|
||||
"plate": "H786POJ",
|
||||
"confidence": 88.046814
|
||||
},
|
||||
{
|
||||
"matches_template": 0,
|
||||
"plate": "H786PDJ",
|
||||
"confidence": 85.58432
|
||||
},
|
||||
{
|
||||
"matches_template": 0,
|
||||
"plate": "H786PQJ",
|
||||
"confidence": 85.472939
|
||||
},
|
||||
{
|
||||
"matches_template": 0,
|
||||
"plate": "HS786P0J",
|
||||
"confidence": 75.455666
|
||||
},
|
||||
{
|
||||
"matches_template": 0,
|
||||
"plate": "H2786P0J",
|
||||
"confidence": 75.256081
|
||||
},
|
||||
{
|
||||
"matches_template": 0,
|
||||
"plate": "H3786P0J",
|
||||
"confidence": 65.228058
|
||||
},
|
||||
{
|
||||
"matches_template": 0,
|
||||
"plate": "H786PGJ",
|
||||
"confidence": 63.303329
|
||||
},
|
||||
{
|
||||
"matches_template": 0,
|
||||
"plate": "HS786POJ",
|
||||
"confidence": 83.065773
|
||||
},
|
||||
{
|
||||
"matches_template": 0,
|
||||
"plate": "H2786POJ",
|
||||
"confidence": 52.866196
|
||||
}
|
||||
],
|
||||
"coordinates": [
|
||||
{
|
||||
"y": 384,
|
||||
"x": 156
|
||||
},
|
||||
{
|
||||
"y": 384,
|
||||
"x": 289
|
||||
},
|
||||
{
|
||||
"y": 409,
|
||||
"x": 289
|
||||
},
|
||||
{
|
||||
"y": 409,
|
||||
"x": 156
|
||||
}
|
||||
],
|
||||
"matches_template": 0,
|
||||
"requested_topn": 10
|
||||
}
|
||||
],
|
||||
"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
|
||||
}
|
||||
|
|
68
tests/fixtures/coinmarketcap.json
vendored
68
tests/fixtures/coinmarketcap.json
vendored
|
@ -1,36 +1,36 @@
|
|||
{
|
||||
"cached": false,
|
||||
"data": {
|
||||
"id": 1027,
|
||||
"name": "Ethereum",
|
||||
"symbol": "ETH",
|
||||
"website_slug": "ethereum",
|
||||
"rank": 2,
|
||||
"circulating_supply": 99619842.0,
|
||||
"total_supply": 99619842.0,
|
||||
"max_supply": null,
|
||||
"quotes": {
|
||||
"USD": {
|
||||
"price": 577.019,
|
||||
"volume_24h": 2839960000.0,
|
||||
"market_cap": 57482541899.0,
|
||||
"percent_change_1h": -2.28,
|
||||
"percent_change_24h": -14.88,
|
||||
"percent_change_7d": -17.51
|
||||
},
|
||||
"EUR": {
|
||||
"price": 493.454724572,
|
||||
"volume_24h": 2428699712.48,
|
||||
"market_cap": 49158380042.0,
|
||||
"percent_change_1h": -2.28,
|
||||
"percent_change_24h": -14.88,
|
||||
"percent_change_7d": -17.51
|
||||
}
|
||||
},
|
||||
"last_updated": 1527098658
|
||||
"cached": false,
|
||||
"data": {
|
||||
"id": 1027,
|
||||
"name": "Ethereum",
|
||||
"symbol": "ETH",
|
||||
"website_slug": "ethereum",
|
||||
"rank": 2,
|
||||
"circulating_supply": 99619842.0,
|
||||
"total_supply": 99619842.0,
|
||||
"max_supply": null,
|
||||
"quotes": {
|
||||
"USD": {
|
||||
"price": 577.019,
|
||||
"volume_24h": 2839960000.0,
|
||||
"market_cap": 57482541899.0,
|
||||
"percent_change_1h": -2.28,
|
||||
"percent_change_24h": -14.88,
|
||||
"percent_change_7d": -17.51
|
||||
},
|
||||
"EUR": {
|
||||
"price": 493.454724572,
|
||||
"volume_24h": 2428699712.48,
|
||||
"market_cap": 49158380042.0,
|
||||
"percent_change_1h": -2.28,
|
||||
"percent_change_24h": -14.88,
|
||||
"percent_change_7d": -17.51
|
||||
}
|
||||
},
|
||||
"metadata": {
|
||||
"timestamp": 1527098716,
|
||||
"error": null
|
||||
}
|
||||
}
|
||||
"last_updated": 1527098658
|
||||
},
|
||||
"metadata": {
|
||||
"timestamp": 1527098716,
|
||||
"error": null
|
||||
}
|
||||
}
|
||||
|
|
2940
tests/fixtures/darksky.json
vendored
2940
tests/fixtures/darksky.json
vendored
File diff suppressed because it is too large
Load diff
16651
tests/fixtures/homematicip_cloud.json
vendored
16651
tests/fixtures/homematicip_cloud.json
vendored
File diff suppressed because it is too large
Load diff
3472
tests/fixtures/metoffice.json
vendored
3472
tests/fixtures/metoffice.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"
|
||||
}
|
||||
|
|
48
tests/fixtures/microsoft_face_detect.json
vendored
48
tests/fixtures/microsoft_face_detect.json
vendored
|
@ -1,27 +1,27 @@
|
|||
[
|
||||
{
|
||||
"faceId": "c5c24a82-6845-4031-9d5d-978df9175426",
|
||||
"faceRectangle": {
|
||||
"width": 78,
|
||||
"height": 78,
|
||||
"left": 394,
|
||||
"top": 54
|
||||
},
|
||||
"faceAttributes": {
|
||||
"age": 71.0,
|
||||
"gender": "male",
|
||||
"smile": 0.88,
|
||||
"facialHair": {
|
||||
"mustache": 0.8,
|
||||
"beard": 0.1,
|
||||
"sideburns": 0.02
|
||||
},
|
||||
"glasses": "sunglasses",
|
||||
"headPose": {
|
||||
"roll": 2.1,
|
||||
"yaw": 3,
|
||||
"pitch": 0
|
||||
}
|
||||
}
|
||||
{
|
||||
"faceId": "c5c24a82-6845-4031-9d5d-978df9175426",
|
||||
"faceRectangle": {
|
||||
"width": 78,
|
||||
"height": 78,
|
||||
"left": 394,
|
||||
"top": 54
|
||||
},
|
||||
"faceAttributes": {
|
||||
"age": 71.0,
|
||||
"gender": "male",
|
||||
"smile": 0.88,
|
||||
"facialHair": {
|
||||
"mustache": 0.8,
|
||||
"beard": 0.1,
|
||||
"sideburns": 0.02
|
||||
},
|
||||
"glasses": "sunglasses",
|
||||
"headPose": {
|
||||
"roll": 2.1,
|
||||
"yaw": 3,
|
||||
"pitch": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
36
tests/fixtures/microsoft_face_identify.json
vendored
36
tests/fixtures/microsoft_face_identify.json
vendored
|
@ -1,20 +1,20 @@
|
|||
[
|
||||
{
|
||||
"faceId":"c5c24a82-6845-4031-9d5d-978df9175426",
|
||||
"candidates":[
|
||||
{
|
||||
"personId":"2ae4935b-9659-44c3-977f-61fac20d0538",
|
||||
"confidence":0.92
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"faceId":"c5c24a82-6825-4031-9d5d-978df0175426",
|
||||
"candidates":[
|
||||
{
|
||||
"personId":"25985303-c537-4467-b41d-bdb45cd95ca1",
|
||||
"confidence":0.32
|
||||
}
|
||||
]
|
||||
}
|
||||
{
|
||||
"faceId": "c5c24a82-6845-4031-9d5d-978df9175426",
|
||||
"candidates": [
|
||||
{
|
||||
"personId": "2ae4935b-9659-44c3-977f-61fac20d0538",
|
||||
"confidence": 0.92
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"faceId": "c5c24a82-6825-4031-9d5d-978df0175426",
|
||||
"candidates": [
|
||||
{
|
||||
"personId": "25985303-c537-4467-b41d-bdb45cd95ca1",
|
||||
"confidence": 0.32
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
20
tests/fixtures/microsoft_face_persongroups.json
vendored
20
tests/fixtures/microsoft_face_persongroups.json
vendored
|
@ -1,12 +1,12 @@
|
|||
[
|
||||
{
|
||||
"personGroupId":"test_group1",
|
||||
"name":"test group1",
|
||||
"userData":"test"
|
||||
},
|
||||
{
|
||||
"personGroupId":"test_group2",
|
||||
"name":"test group2",
|
||||
"userData":"test"
|
||||
}
|
||||
{
|
||||
"personGroupId": "test_group1",
|
||||
"name": "test group1",
|
||||
"userData": "test"
|
||||
},
|
||||
{
|
||||
"personGroupId": "test_group2",
|
||||
"name": "test group2",
|
||||
"userData": "test"
|
||||
}
|
||||
]
|
||||
|
|
38
tests/fixtures/microsoft_face_persons.json
vendored
38
tests/fixtures/microsoft_face_persons.json
vendored
|
@ -1,21 +1,21 @@
|
|||
[
|
||||
{
|
||||
"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":[
|
||||
"30ea1073-cc9e-4652-b1e3-d08fb7b95315",
|
||||
"fbd2a038-dbff-452c-8e79-2ee81b1aa84e"
|
||||
]
|
||||
}
|
||||
{
|
||||
"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": [
|
||||
"30ea1073-cc9e-4652-b1e3-d08fb7b95315",
|
||||
"fbd2a038-dbff-452c-8e79-2ee81b1aa84e"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
1116
tests/fixtures/openhardwaremonitor.json
vendored
1116
tests/fixtures/openhardwaremonitor.json
vendored
File diff suppressed because it is too large
Load diff
2813
tests/fixtures/smhi.json
vendored
2813
tests/fixtures/smhi.json
vendored
File diff suppressed because it is too large
Load diff
218
tests/fixtures/uk_transport_bus.json
vendored
218
tests/fixtures/uk_transport_bus.json
vendored
|
@ -1,110 +1,112 @@
|
|||
{
|
||||
"atcocode": "340000368SHE",
|
||||
"bearing": "",
|
||||
"departures": {
|
||||
"32A": [{
|
||||
"aimed_departure_time": "10:18",
|
||||
"best_departure_estimate": "10:18",
|
||||
"date": "2017-05-09",
|
||||
"dir": "outbound",
|
||||
"direction": "Market Place (Wantage)",
|
||||
"expected_departure_date": null,
|
||||
"expected_departure_time": null,
|
||||
"id": "https://transportapi.com/v3/uk/bus/route/THTR/32A/outbound/340000368SHE/2017-05-09/10:18/timetable.json?app_id=e99&app_key=058",
|
||||
"line": "32A",
|
||||
"line_name": "32A",
|
||||
"mode": "bus",
|
||||
"operator": "THTR",
|
||||
"operator_name": "Thames Travel",
|
||||
"source": "Traveline timetable (not a nextbuses live region)"
|
||||
},
|
||||
{
|
||||
"aimed_departure_time": "11:00",
|
||||
"best_departure_estimate": "11:00",
|
||||
"date": "2017-05-09",
|
||||
"dir": "outbound",
|
||||
"direction": "Stratton Way (Abingdon Town Centre)",
|
||||
"expected_departure_date": null,
|
||||
"expected_departure_time": null,
|
||||
"id": "https://transportapi.com/v3/uk/bus/route/THTR/32A/outbound/340000368SHE/2017-05-09/11:00/timetable.json?app_id=e99&app_key=058",
|
||||
"line": "32A",
|
||||
"line_name": "32A",
|
||||
"mode": "bus",
|
||||
"operator": "THTR",
|
||||
"operator_name": "Thames Travel",
|
||||
"source": "Traveline timetable (not a nextbuses live region)"
|
||||
},
|
||||
{
|
||||
"aimed_departure_time": "11:18",
|
||||
"best_departure_estimate": "11:18",
|
||||
"date": "2017-05-09",
|
||||
"dir": "outbound",
|
||||
"direction": "Market Place (Wantage)",
|
||||
"expected_departure_date": null,
|
||||
"expected_departure_time": null,
|
||||
"id": "https://transportapi.com/v3/uk/bus/route/THTR/32A/outbound/340000368SHE/2017-05-09/11:18/timetable.json?app_id=e99&app_key=058",
|
||||
"line": "32A",
|
||||
"line_name": "32A",
|
||||
"mode": "bus",
|
||||
"operator": "THTR",
|
||||
"operator_name": "Thames Travel",
|
||||
"source": "Traveline timetable (not a nextbuses live region)"
|
||||
}
|
||||
],
|
||||
"X32": [{
|
||||
"aimed_departure_time": "10:09",
|
||||
"best_departure_estimate": "10:09",
|
||||
"date": "2017-05-09",
|
||||
"dir": "inbound",
|
||||
"direction": "Parkway Station (Didcot)",
|
||||
"expected_departure_date": null,
|
||||
"expected_departure_time": null,
|
||||
"id": "https://transportapi.com/v3/uk/bus/route/THTR/X32/inbound/340000368SHE/2017-05-09/10:09/timetable.json?app_id=e99&app_key=058",
|
||||
"line": "X32",
|
||||
"line_name": "X32",
|
||||
"mode": "bus",
|
||||
"operator": "THTR",
|
||||
"operator_name": "Thames Travel",
|
||||
"source": "Traveline timetable (not a nextbuses live region)"
|
||||
},
|
||||
{
|
||||
"aimed_departure_time": "10:30",
|
||||
"best_departure_estimate": "10:30",
|
||||
"date": "2017-05-09",
|
||||
"dir": "inbound",
|
||||
"direction": "Parks Road (Oxford City Centre)",
|
||||
"expected_departure_date": null,
|
||||
"expected_departure_time": null,
|
||||
"id": "https://transportapi.com/v3/uk/bus/route/THTR/X32/inbound/340000368SHE/2017-05-09/10:30/timetable.json?app_id=e99&app_key=058",
|
||||
"line": "X32",
|
||||
"line_name": "X32",
|
||||
"mode": "bus",
|
||||
"operator": "THTR",
|
||||
"operator_name": "Thames Travel",
|
||||
"source": "Traveline timetable (not a nextbuses live region)"
|
||||
},
|
||||
{
|
||||
"aimed_departure_time": "10:39",
|
||||
"best_departure_estimate": "10:39",
|
||||
"date": "2017-05-09",
|
||||
"dir": "inbound",
|
||||
"direction": "Parkway Station (Didcot)",
|
||||
"expected_departure_date": null,
|
||||
"expected_departure_time": null,
|
||||
"id": "https://transportapi.com/v3/uk/bus/route/THTR/X32/inbound/340000368SHE/2017-05-09/10:39/timetable.json?app_id=e99&app_key=058",
|
||||
"line": "X32",
|
||||
"line_name": "X32",
|
||||
"mode": "bus",
|
||||
"operator": "THTR",
|
||||
"operator_name": "Thames Travel",
|
||||
"source": "Traveline timetable (not a nextbuses live region)"
|
||||
}
|
||||
]
|
||||
},
|
||||
"indicator": "in",
|
||||
"locality": "Harwell Campus",
|
||||
"name": "Bus Station (in)",
|
||||
"request_time": "2017-05-09T10:03:41+01:00",
|
||||
"smscode": "oxfajwgp",
|
||||
"stop_name": "Bus Station"
|
||||
"atcocode": "340000368SHE",
|
||||
"bearing": "",
|
||||
"departures": {
|
||||
"32A": [
|
||||
{
|
||||
"aimed_departure_time": "10:18",
|
||||
"best_departure_estimate": "10:18",
|
||||
"date": "2017-05-09",
|
||||
"dir": "outbound",
|
||||
"direction": "Market Place (Wantage)",
|
||||
"expected_departure_date": null,
|
||||
"expected_departure_time": null,
|
||||
"id": "https://transportapi.com/v3/uk/bus/route/THTR/32A/outbound/340000368SHE/2017-05-09/10:18/timetable.json?app_id=e99&app_key=058",
|
||||
"line": "32A",
|
||||
"line_name": "32A",
|
||||
"mode": "bus",
|
||||
"operator": "THTR",
|
||||
"operator_name": "Thames Travel",
|
||||
"source": "Traveline timetable (not a nextbuses live region)"
|
||||
},
|
||||
{
|
||||
"aimed_departure_time": "11:00",
|
||||
"best_departure_estimate": "11:00",
|
||||
"date": "2017-05-09",
|
||||
"dir": "outbound",
|
||||
"direction": "Stratton Way (Abingdon Town Centre)",
|
||||
"expected_departure_date": null,
|
||||
"expected_departure_time": null,
|
||||
"id": "https://transportapi.com/v3/uk/bus/route/THTR/32A/outbound/340000368SHE/2017-05-09/11:00/timetable.json?app_id=e99&app_key=058",
|
||||
"line": "32A",
|
||||
"line_name": "32A",
|
||||
"mode": "bus",
|
||||
"operator": "THTR",
|
||||
"operator_name": "Thames Travel",
|
||||
"source": "Traveline timetable (not a nextbuses live region)"
|
||||
},
|
||||
{
|
||||
"aimed_departure_time": "11:18",
|
||||
"best_departure_estimate": "11:18",
|
||||
"date": "2017-05-09",
|
||||
"dir": "outbound",
|
||||
"direction": "Market Place (Wantage)",
|
||||
"expected_departure_date": null,
|
||||
"expected_departure_time": null,
|
||||
"id": "https://transportapi.com/v3/uk/bus/route/THTR/32A/outbound/340000368SHE/2017-05-09/11:18/timetable.json?app_id=e99&app_key=058",
|
||||
"line": "32A",
|
||||
"line_name": "32A",
|
||||
"mode": "bus",
|
||||
"operator": "THTR",
|
||||
"operator_name": "Thames Travel",
|
||||
"source": "Traveline timetable (not a nextbuses live region)"
|
||||
}
|
||||
],
|
||||
"X32": [
|
||||
{
|
||||
"aimed_departure_time": "10:09",
|
||||
"best_departure_estimate": "10:09",
|
||||
"date": "2017-05-09",
|
||||
"dir": "inbound",
|
||||
"direction": "Parkway Station (Didcot)",
|
||||
"expected_departure_date": null,
|
||||
"expected_departure_time": null,
|
||||
"id": "https://transportapi.com/v3/uk/bus/route/THTR/X32/inbound/340000368SHE/2017-05-09/10:09/timetable.json?app_id=e99&app_key=058",
|
||||
"line": "X32",
|
||||
"line_name": "X32",
|
||||
"mode": "bus",
|
||||
"operator": "THTR",
|
||||
"operator_name": "Thames Travel",
|
||||
"source": "Traveline timetable (not a nextbuses live region)"
|
||||
},
|
||||
{
|
||||
"aimed_departure_time": "10:30",
|
||||
"best_departure_estimate": "10:30",
|
||||
"date": "2017-05-09",
|
||||
"dir": "inbound",
|
||||
"direction": "Parks Road (Oxford City Centre)",
|
||||
"expected_departure_date": null,
|
||||
"expected_departure_time": null,
|
||||
"id": "https://transportapi.com/v3/uk/bus/route/THTR/X32/inbound/340000368SHE/2017-05-09/10:30/timetable.json?app_id=e99&app_key=058",
|
||||
"line": "X32",
|
||||
"line_name": "X32",
|
||||
"mode": "bus",
|
||||
"operator": "THTR",
|
||||
"operator_name": "Thames Travel",
|
||||
"source": "Traveline timetable (not a nextbuses live region)"
|
||||
},
|
||||
{
|
||||
"aimed_departure_time": "10:39",
|
||||
"best_departure_estimate": "10:39",
|
||||
"date": "2017-05-09",
|
||||
"dir": "inbound",
|
||||
"direction": "Parkway Station (Didcot)",
|
||||
"expected_departure_date": null,
|
||||
"expected_departure_time": null,
|
||||
"id": "https://transportapi.com/v3/uk/bus/route/THTR/X32/inbound/340000368SHE/2017-05-09/10:39/timetable.json?app_id=e99&app_key=058",
|
||||
"line": "X32",
|
||||
"line_name": "X32",
|
||||
"mode": "bus",
|
||||
"operator": "THTR",
|
||||
"operator_name": "Thames Travel",
|
||||
"source": "Traveline timetable (not a nextbuses live region)"
|
||||
}
|
||||
]
|
||||
},
|
||||
"indicator": "in",
|
||||
"locality": "Harwell Campus",
|
||||
"name": "Bus Station (in)",
|
||||
"request_time": "2017-05-09T10:03:41+01:00",
|
||||
"smscode": "oxfajwgp",
|
||||
"stop_name": "Bus Station"
|
||||
}
|
||||
|
|
28
tests/fixtures/whoami.json
vendored
28
tests/fixtures/whoami.json
vendored
|
@ -1,15 +1,15 @@
|
|||
{
|
||||
"ip": "1.2.3.4",
|
||||
"city": "Gotham",
|
||||
"continent": "Earth",
|
||||
"country": "XX",
|
||||
"currency": "XXX",
|
||||
"latitude": "12.34567",
|
||||
"longitude": "12.34567",
|
||||
"postal_code": "12345",
|
||||
"region_code": "00",
|
||||
"region": "Gotham",
|
||||
"timezone": "Earth/Gotham",
|
||||
"iso_time": "2021-05-12T11:29:15.752Z",
|
||||
"timestamp": 1620818956
|
||||
}
|
||||
"ip": "1.2.3.4",
|
||||
"city": "Gotham",
|
||||
"continent": "Earth",
|
||||
"country": "XX",
|
||||
"currency": "XXX",
|
||||
"latitude": "12.34567",
|
||||
"longitude": "12.34567",
|
||||
"postal_code": "12345",
|
||||
"region_code": "00",
|
||||
"region": "Gotham",
|
||||
"timezone": "Earth/Gotham",
|
||||
"iso_time": "2021-05-12T11:29:15.752Z",
|
||||
"timestamp": 1620818956
|
||||
}
|
||||
|
|
45
tests/fixtures/wsdot.json
vendored
45
tests/fixtures/wsdot.json
vendored
|
@ -1,20 +1,25 @@
|
|||
{"Description": "Downtown Seattle to Downtown Bellevue via I-90",
|
||||
"TimeUpdated": "/Date(1485040200000-0800)/",
|
||||
"Distance": 10.6,
|
||||
"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",
|
||||
"Description": "I-5 @ University St in Seattle",
|
||||
"Longitude": -122.331759,
|
||||
"MilePost": 165.83,
|
||||
"Latitude": 47.609294,
|
||||
"RoadName": "I-5"},
|
||||
"CurrentTime": 11,
|
||||
"TravelTimeID": 96,
|
||||
"Name": "Seattle-Bellevue via I-90 (EB AM)",
|
||||
"AverageTime": 11}
|
||||
|
||||
{
|
||||
"Description": "Downtown Seattle to Downtown Bellevue via I-90",
|
||||
"TimeUpdated": "/Date(1485040200000-0800)/",
|
||||
"Distance": 10.6,
|
||||
"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",
|
||||
"Description": "I-5 @ University St in Seattle",
|
||||
"Longitude": -122.331759,
|
||||
"MilePost": 165.83,
|
||||
"Latitude": 47.609294,
|
||||
"RoadName": "I-5"
|
||||
},
|
||||
"CurrentTime": 11,
|
||||
"TravelTimeID": 96,
|
||||
"Name": "Seattle-Bellevue via I-90 (EB AM)",
|
||||
"AverageTime": 11
|
||||
}
|
||||
|
|
168
tests/fixtures/yahoo_finance.json
vendored
168
tests/fixtures/yahoo_finance.json
vendored
|
@ -1,85 +1,85 @@
|
|||
{
|
||||
"symbol": "YHOO",
|
||||
"Ask": "42.42",
|
||||
"AverageDailyVolume": "11397600",
|
||||
"Bid": "42.41",
|
||||
"AskRealtime": null,
|
||||
"BidRealtime": null,
|
||||
"BookValue": "29.83",
|
||||
"Change_PercentChange": "+0.62 - +1.48%",
|
||||
"Change": "+0.62",
|
||||
"Commission": null,
|
||||
"Currency": "USD",
|
||||
"ChangeRealtime": null,
|
||||
"AfterHoursChangeRealtime": null,
|
||||
"DividendShare": null,
|
||||
"LastTradeDate": "10/18/2016",
|
||||
"TradeDate": null,
|
||||
"EarningsShare": "-5.18",
|
||||
"ErrorIndicationreturnedforsymbolchangedinvalid": null,
|
||||
"EPSEstimateCurrentYear": "0.49",
|
||||
"EPSEstimateNextYear": "0.57",
|
||||
"EPSEstimateNextQuarter": "0.17",
|
||||
"DaysLow": "41.86",
|
||||
"DaysHigh": "42.42",
|
||||
"YearLow": "26.15",
|
||||
"YearHigh": "44.92",
|
||||
"HoldingsGainPercent": null,
|
||||
"AnnualizedGain": null,
|
||||
"HoldingsGain": null,
|
||||
"HoldingsGainPercentRealtime": null,
|
||||
"HoldingsGainRealtime": null,
|
||||
"MoreInfo": null,
|
||||
"OrderBookRealtime": null,
|
||||
"MarketCapitalization": "40.37B",
|
||||
"MarketCapRealtime": null,
|
||||
"EBITDA": "151.08M",
|
||||
"ChangeFromYearLow": "16.26",
|
||||
"PercentChangeFromYearLow": "+62.18%",
|
||||
"LastTradeRealtimeWithTime": null,
|
||||
"ChangePercentRealtime": null,
|
||||
"ChangeFromYearHigh": "-2.51",
|
||||
"PercebtChangeFromYearHigh": "-5.59%",
|
||||
"LastTradeWithTime": "9:41am - <b>42.41</b>",
|
||||
"LastTradePriceOnly": "42.41",
|
||||
"HighLimit": null,
|
||||
"LowLimit": null,
|
||||
"DaysRange": "41.86 - 42.42",
|
||||
"DaysRangeRealtime": null,
|
||||
"FiftydayMovingAverage": "43.16",
|
||||
"TwoHundreddayMovingAverage": "39.26",
|
||||
"ChangeFromTwoHundreddayMovingAverage": "3.15",
|
||||
"PercentChangeFromTwoHundreddayMovingAverage": "+8.03%",
|
||||
"ChangeFromFiftydayMovingAverage": "-0.75",
|
||||
"PercentChangeFromFiftydayMovingAverage": "-1.74%",
|
||||
"Name": "Yahoo! Inc.",
|
||||
"Notes": null,
|
||||
"Open": "41.69",
|
||||
"PreviousClose": "41.79",
|
||||
"PricePaid": null,
|
||||
"ChangeinPercent": "+1.48%",
|
||||
"PriceSales": "8.13",
|
||||
"PriceBook": "1.40",
|
||||
"ExDividendDate": null,
|
||||
"PERatio": null,
|
||||
"DividendPayDate": null,
|
||||
"PERatioRealtime": null,
|
||||
"PEGRatio": "-24.57",
|
||||
"PriceEPSEstimateCurrentYear": "86.55",
|
||||
"PriceEPSEstimateNextYear": "74.40",
|
||||
"Symbol": "YHOO",
|
||||
"SharesOwned": null,
|
||||
"ShortRatio": "5.05",
|
||||
"LastTradeTime": "9:41am",
|
||||
"TickerTrend": null,
|
||||
"OneyrTargetPrice": "43.64",
|
||||
"Volume": "946198",
|
||||
"HoldingsValue": null,
|
||||
"HoldingsValueRealtime": null,
|
||||
"YearRange": "26.15 - 44.92",
|
||||
"DaysValueChange": null,
|
||||
"DaysValueChangeRealtime": null,
|
||||
"StockExchange": "NMS",
|
||||
"DividendYield": null,
|
||||
"PercentChange": "+1.48%"
|
||||
{
|
||||
"symbol": "YHOO",
|
||||
"Ask": "42.42",
|
||||
"AverageDailyVolume": "11397600",
|
||||
"Bid": "42.41",
|
||||
"AskRealtime": null,
|
||||
"BidRealtime": null,
|
||||
"BookValue": "29.83",
|
||||
"Change_PercentChange": "+0.62 - +1.48%",
|
||||
"Change": "+0.62",
|
||||
"Commission": null,
|
||||
"Currency": "USD",
|
||||
"ChangeRealtime": null,
|
||||
"AfterHoursChangeRealtime": null,
|
||||
"DividendShare": null,
|
||||
"LastTradeDate": "10/18/2016",
|
||||
"TradeDate": null,
|
||||
"EarningsShare": "-5.18",
|
||||
"ErrorIndicationreturnedforsymbolchangedinvalid": null,
|
||||
"EPSEstimateCurrentYear": "0.49",
|
||||
"EPSEstimateNextYear": "0.57",
|
||||
"EPSEstimateNextQuarter": "0.17",
|
||||
"DaysLow": "41.86",
|
||||
"DaysHigh": "42.42",
|
||||
"YearLow": "26.15",
|
||||
"YearHigh": "44.92",
|
||||
"HoldingsGainPercent": null,
|
||||
"AnnualizedGain": null,
|
||||
"HoldingsGain": null,
|
||||
"HoldingsGainPercentRealtime": null,
|
||||
"HoldingsGainRealtime": null,
|
||||
"MoreInfo": null,
|
||||
"OrderBookRealtime": null,
|
||||
"MarketCapitalization": "40.37B",
|
||||
"MarketCapRealtime": null,
|
||||
"EBITDA": "151.08M",
|
||||
"ChangeFromYearLow": "16.26",
|
||||
"PercentChangeFromYearLow": "+62.18%",
|
||||
"LastTradeRealtimeWithTime": null,
|
||||
"ChangePercentRealtime": null,
|
||||
"ChangeFromYearHigh": "-2.51",
|
||||
"PercebtChangeFromYearHigh": "-5.59%",
|
||||
"LastTradeWithTime": "9:41am - <b>42.41</b>",
|
||||
"LastTradePriceOnly": "42.41",
|
||||
"HighLimit": null,
|
||||
"LowLimit": null,
|
||||
"DaysRange": "41.86 - 42.42",
|
||||
"DaysRangeRealtime": null,
|
||||
"FiftydayMovingAverage": "43.16",
|
||||
"TwoHundreddayMovingAverage": "39.26",
|
||||
"ChangeFromTwoHundreddayMovingAverage": "3.15",
|
||||
"PercentChangeFromTwoHundreddayMovingAverage": "+8.03%",
|
||||
"ChangeFromFiftydayMovingAverage": "-0.75",
|
||||
"PercentChangeFromFiftydayMovingAverage": "-1.74%",
|
||||
"Name": "Yahoo! Inc.",
|
||||
"Notes": null,
|
||||
"Open": "41.69",
|
||||
"PreviousClose": "41.79",
|
||||
"PricePaid": null,
|
||||
"ChangeinPercent": "+1.48%",
|
||||
"PriceSales": "8.13",
|
||||
"PriceBook": "1.40",
|
||||
"ExDividendDate": null,
|
||||
"PERatio": null,
|
||||
"DividendPayDate": null,
|
||||
"PERatioRealtime": null,
|
||||
"PEGRatio": "-24.57",
|
||||
"PriceEPSEstimateCurrentYear": "86.55",
|
||||
"PriceEPSEstimateNextYear": "74.40",
|
||||
"Symbol": "YHOO",
|
||||
"SharesOwned": null,
|
||||
"ShortRatio": "5.05",
|
||||
"LastTradeTime": "9:41am",
|
||||
"TickerTrend": null,
|
||||
"OneyrTargetPrice": "43.64",
|
||||
"Volume": "946198",
|
||||
"HoldingsValue": null,
|
||||
"HoldingsValueRealtime": null,
|
||||
"YearRange": "26.15 - 44.92",
|
||||
"DaysValueChange": null,
|
||||
"DaysValueChangeRealtime": null,
|
||||
"StockExchange": "NMS",
|
||||
"DividendYield": null,
|
||||
"PercentChange": "+1.48%"
|
||||
}
|
||||
|
|
153
tests/fixtures/yahooweather.json
vendored
153
tests/fixtures/yahooweather.json
vendored
|
@ -56,77 +56,88 @@
|
|||
"temp": "18",
|
||||
"text": "Cloudy"
|
||||
},
|
||||
"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"
|
||||
}],
|
||||
"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=="
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"domain": "test_bad_version",
|
||||
"version": "bad"
|
||||
}
|
||||
"domain": "test_bad_version",
|
||||
"version": "bad"
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"domain": "test_no_version"
|
||||
}
|
||||
"domain": "test_no_version"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue