31
test/fixtures/geospatial/addok/geocode.json
vendored
Normal file
31
test/fixtures/geospatial/addok/geocode.json
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"type": "FeatureCollection",
|
||||
"version": "draft",
|
||||
"features": [
|
||||
{
|
||||
"type": "Feature",
|
||||
"geometry": { "type": "Point", "coordinates": [4.842569, 45.751718] },
|
||||
"properties": {
|
||||
"label": "10 Rue Jangot 69007 Lyon",
|
||||
"score": 0.9999999999926557,
|
||||
"housenumber": "10",
|
||||
"id": "69387_3650_00010",
|
||||
"type": "housenumber",
|
||||
"x": 843232.29,
|
||||
"y": 6518573.31,
|
||||
"importance": 0.5454797306366062,
|
||||
"name": "10 Rue Jangot",
|
||||
"postcode": "69007",
|
||||
"citycode": "69387",
|
||||
"city": "Lyon",
|
||||
"district": "Lyon 7e Arrondissement",
|
||||
"context": "69, Rh\u00f4ne, Auvergne-Rh\u00f4ne-Alpes",
|
||||
"street": "Rue Jangot",
|
||||
"distance": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"attribution": "BAN",
|
||||
"licence": "ETALAB-2.0",
|
||||
"limit": 1
|
||||
}
|
||||
49
test/fixtures/geospatial/addok/search.json
vendored
Normal file
49
test/fixtures/geospatial/addok/search.json
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"type": "FeatureCollection",
|
||||
"version": "draft",
|
||||
"features": [
|
||||
{
|
||||
"type": "Feature",
|
||||
"geometry": { "type": "Point", "coordinates": [4.842569, 45.751718] },
|
||||
"properties": {
|
||||
"label": "10 Rue Jangot 69007 Lyon",
|
||||
"score": 0.8677708846033279,
|
||||
"housenumber": "10",
|
||||
"id": "69387_3650_00010",
|
||||
"type": "housenumber",
|
||||
"x": 843232.29,
|
||||
"y": 6518573.31,
|
||||
"importance": 0.5454797306366062,
|
||||
"name": "10 Rue Jangot",
|
||||
"postcode": "69007",
|
||||
"citycode": "69387",
|
||||
"city": "Lyon",
|
||||
"district": "Lyon 7e Arrondissement",
|
||||
"context": "69, Rh\u00f4ne, Auvergne-Rh\u00f4ne-Alpes",
|
||||
"street": "Rue Jangot"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Feature",
|
||||
"geometry": { "type": "Point", "coordinates": [2.440319, 50.371266] },
|
||||
"properties": {
|
||||
"label": "Rue Jangon 62127 Bailleul-aux-Cornailles",
|
||||
"score": 0.5269641371131077,
|
||||
"id": "62070_0100",
|
||||
"type": "street",
|
||||
"x": 660129.18,
|
||||
"y": 7030540.46,
|
||||
"importance": 0.25814396978264664,
|
||||
"name": "Rue Jangon",
|
||||
"postcode": "62127",
|
||||
"citycode": "62070",
|
||||
"city": "Bailleul-aux-Cornailles",
|
||||
"context": "62, Pas-de-Calais, Hauts-de-France"
|
||||
}
|
||||
}
|
||||
],
|
||||
"attribution": "BAN",
|
||||
"licence": "ETALAB-2.0",
|
||||
"query": "10 Rue Jangot",
|
||||
"limit": 5
|
||||
}
|
||||
5
test/fixtures/geospatial/google_maps/api_key_invalid.json
vendored
Normal file
5
test/fixtures/geospatial/google_maps/api_key_invalid.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"error_message": "The provided API key is invalid.",
|
||||
"results": [],
|
||||
"status": "REQUEST_DENIED"
|
||||
}
|
||||
109
test/fixtures/geospatial/google_maps/geocode.json
vendored
Normal file
109
test/fixtures/geospatial/google_maps/geocode.json
vendored
Normal file
@@ -0,0 +1,109 @@
|
||||
{
|
||||
"plus_code": {
|
||||
"compound_code": "QR2V+M2 Lyon, France",
|
||||
"global_code": "8FQ6QR2V+M2"
|
||||
},
|
||||
"results": [
|
||||
{
|
||||
"address_components": [
|
||||
{
|
||||
"long_name": "10bis",
|
||||
"short_name": "10bis",
|
||||
"types": ["street_number"]
|
||||
},
|
||||
{
|
||||
"long_name": "Rue Jangot",
|
||||
"short_name": "Rue Jangot",
|
||||
"types": ["route"]
|
||||
},
|
||||
{
|
||||
"long_name": "Lyon",
|
||||
"short_name": "Lyon",
|
||||
"types": ["locality", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "Rhône",
|
||||
"short_name": "Rhône",
|
||||
"types": ["administrative_area_level_2", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "Auvergne-Rhône-Alpes",
|
||||
"short_name": "Auvergne-Rhône-Alpes",
|
||||
"types": ["administrative_area_level_1", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "France",
|
||||
"short_name": "FR",
|
||||
"types": ["country", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "69007",
|
||||
"short_name": "69007",
|
||||
"types": ["postal_code"]
|
||||
}
|
||||
],
|
||||
"formatted_address": "10bis Rue Jangot, 69007 Lyon, France",
|
||||
"geometry": {
|
||||
"location": { "lat": 45.751725, "lng": 4.8424966 },
|
||||
"location_type": "ROOFTOP",
|
||||
"viewport": {
|
||||
"northeast": { "lat": 45.7530739802915, "lng": 4.843845580291503 },
|
||||
"southwest": { "lat": 45.7503760197085, "lng": 4.841147619708499 }
|
||||
}
|
||||
},
|
||||
"place_id": "ChIJrW0QikTq9EcR96jk2OnO75w",
|
||||
"plus_code": {
|
||||
"compound_code": "QR2R+MX Lyon, France",
|
||||
"global_code": "8FQ6QR2R+MX"
|
||||
},
|
||||
"types": ["street_address"]
|
||||
},
|
||||
{
|
||||
"address_components": [
|
||||
{ "long_name": "9", "short_name": "9", "types": ["street_number"] },
|
||||
{
|
||||
"long_name": "Rue Jangot",
|
||||
"short_name": "Rue Jangot",
|
||||
"types": ["route"]
|
||||
},
|
||||
{
|
||||
"long_name": "Lyon",
|
||||
"short_name": "Lyon",
|
||||
"types": ["locality", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "Rhône",
|
||||
"short_name": "Rhône",
|
||||
"types": ["administrative_area_level_2", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "Auvergne-Rhône-Alpes",
|
||||
"short_name": "Auvergne-Rhône-Alpes",
|
||||
"types": ["administrative_area_level_1", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "France",
|
||||
"short_name": "FR",
|
||||
"types": ["country", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "69007",
|
||||
"short_name": "69007",
|
||||
"types": ["postal_code"]
|
||||
}
|
||||
],
|
||||
"formatted_address": "9 Rue Jangot, 69007 Lyon, France",
|
||||
"geometry": {
|
||||
"location": { "lat": 45.7518165, "lng": 4.8427168 },
|
||||
"location_type": "RANGE_INTERPOLATED",
|
||||
"viewport": {
|
||||
"northeast": { "lat": 45.7531654802915, "lng": 4.844065780291502 },
|
||||
"southwest": { "lat": 45.7504675197085, "lng": 4.841367819708497 }
|
||||
}
|
||||
},
|
||||
"place_id": "EiA5IFJ1ZSBKYW5nb3QsIDY5MDA3IEx5b24sIEZyYW5jZSIaEhgKFAoSCR8N2ItE6vRHEW9tyPnhQsUIEAk",
|
||||
"types": ["street_address"]
|
||||
}
|
||||
],
|
||||
"status": "OK"
|
||||
}
|
||||
62
test/fixtures/geospatial/google_maps/geocode_2.json
vendored
Normal file
62
test/fixtures/geospatial/google_maps/geocode_2.json
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"html_attributions": [],
|
||||
"result": {
|
||||
"address_components": [
|
||||
{
|
||||
"long_name": "10bis",
|
||||
"short_name": "10bis",
|
||||
"types": ["street_number"]
|
||||
},
|
||||
{
|
||||
"long_name": "Rue Jangot",
|
||||
"short_name": "Rue Jangot",
|
||||
"types": ["route"]
|
||||
},
|
||||
{
|
||||
"long_name": "Lyon",
|
||||
"short_name": "Lyon",
|
||||
"types": ["locality", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "Rhône",
|
||||
"short_name": "Rhône",
|
||||
"types": ["administrative_area_level_2", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "Auvergne-Rhône-Alpes",
|
||||
"short_name": "Auvergne-Rhône-Alpes",
|
||||
"types": ["administrative_area_level_1", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "France",
|
||||
"short_name": "FR",
|
||||
"types": ["country", "political"]
|
||||
},
|
||||
{ "long_name": "69007", "short_name": "69007", "types": ["postal_code"] }
|
||||
],
|
||||
"adr_address": "\u003cspan class=\"street-address\"\u003e10bis Rue Jangot\u003c/span\u003e, \u003cspan class=\"postal-code\"\u003e69007\u003c/span\u003e \u003cspan class=\"locality\"\u003eLyon\u003c/span\u003e, \u003cspan class=\"country-name\"\u003eFrance\u003c/span\u003e",
|
||||
"formatted_address": "10bis Rue Jangot, 69007 Lyon, France",
|
||||
"geometry": {
|
||||
"location": { "lat": 45.751725, "lng": 4.8424966 },
|
||||
"viewport": {
|
||||
"northeast": { "lat": 45.7531097802915, "lng": 4.843951380291502 },
|
||||
"southwest": { "lat": 45.7504118197085, "lng": 4.841253419708497 }
|
||||
}
|
||||
},
|
||||
"icon": "https://maps.gstatic.com/mapfiles/place_api/icons/geocode-71.png",
|
||||
"id": "4a3482a7a74c6203048adf713b736186c4ace7cd",
|
||||
"name": "10bis Rue Jangot",
|
||||
"place_id": "ChIJrW0QikTq9EcR96jk2OnO75w",
|
||||
"plus_code": {
|
||||
"compound_code": "QR2R+MX Lyon, France",
|
||||
"global_code": "8FQ6QR2R+MX"
|
||||
},
|
||||
"reference": "ChIJrW0QikTq9EcR96jk2OnO75w",
|
||||
"scope": "GOOGLE",
|
||||
"types": ["street_address"],
|
||||
"url": "https://maps.google.com/?q=10bis+Rue+Jangot,+69007+Lyon,+France&ftid=0x47f4ea448a106dad:0x9cefcee9d8e4a8f7",
|
||||
"utc_offset": 120,
|
||||
"vicinity": "Lyon"
|
||||
},
|
||||
"status": "OK"
|
||||
}
|
||||
55
test/fixtures/geospatial/google_maps/search.json
vendored
Normal file
55
test/fixtures/geospatial/google_maps/search.json
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"address_components": [
|
||||
{ "long_name": "10", "short_name": "10", "types": ["street_number"] },
|
||||
{
|
||||
"long_name": "Rue Jangot",
|
||||
"short_name": "Rue Jangot",
|
||||
"types": ["route"]
|
||||
},
|
||||
{
|
||||
"long_name": "Lyon",
|
||||
"short_name": "Lyon",
|
||||
"types": ["locality", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "Rhône",
|
||||
"short_name": "Rhône",
|
||||
"types": ["administrative_area_level_2", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "Auvergne-Rhône-Alpes",
|
||||
"short_name": "Auvergne-Rhône-Alpes",
|
||||
"types": ["administrative_area_level_1", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "France",
|
||||
"short_name": "FR",
|
||||
"types": ["country", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "69007",
|
||||
"short_name": "69007",
|
||||
"types": ["postal_code"]
|
||||
}
|
||||
],
|
||||
"formatted_address": "10 Rue Jangot, 69007 Lyon, France",
|
||||
"geometry": {
|
||||
"location": { "lat": 45.75164940000001, "lng": 4.8424032 },
|
||||
"location_type": "ROOFTOP",
|
||||
"viewport": {
|
||||
"northeast": { "lat": 45.75299838029151, "lng": 4.843752180291502 },
|
||||
"southwest": { "lat": 45.75030041970851, "lng": 4.841054219708497 }
|
||||
}
|
||||
},
|
||||
"place_id": "ChIJtW0QikTq9EcRLI4Vy6bRx0U",
|
||||
"plus_code": {
|
||||
"compound_code": "QR2R+MX Lyon, France",
|
||||
"global_code": "8FQ6QR2R+MX"
|
||||
},
|
||||
"types": ["street_address"]
|
||||
}
|
||||
],
|
||||
"status": "OK"
|
||||
}
|
||||
58
test/fixtures/geospatial/google_maps/search_2.json
vendored
Normal file
58
test/fixtures/geospatial/google_maps/search_2.json
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"html_attributions": [],
|
||||
"result": {
|
||||
"address_components": [
|
||||
{ "long_name": "10", "short_name": "10", "types": ["street_number"] },
|
||||
{
|
||||
"long_name": "Rue Jangot",
|
||||
"short_name": "Rue Jangot",
|
||||
"types": ["route"]
|
||||
},
|
||||
{
|
||||
"long_name": "Lyon",
|
||||
"short_name": "Lyon",
|
||||
"types": ["locality", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "Rhône",
|
||||
"short_name": "Rhône",
|
||||
"types": ["administrative_area_level_2", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "Auvergne-Rhône-Alpes",
|
||||
"short_name": "Auvergne-Rhône-Alpes",
|
||||
"types": ["administrative_area_level_1", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "France",
|
||||
"short_name": "FR",
|
||||
"types": ["country", "political"]
|
||||
},
|
||||
{ "long_name": "69007", "short_name": "69007", "types": ["postal_code"] }
|
||||
],
|
||||
"adr_address": "\u003cspan class=\"street-address\"\u003e10 Rue Jangot\u003c/span\u003e, \u003cspan class=\"postal-code\"\u003e69007\u003c/span\u003e \u003cspan class=\"locality\"\u003eLyon\u003c/span\u003e, \u003cspan class=\"country-name\"\u003eFrance\u003c/span\u003e",
|
||||
"formatted_address": "10 Rue Jangot, 69007 Lyon, France",
|
||||
"geometry": {
|
||||
"location": { "lat": 45.75164940000001, "lng": 4.842403200000001 },
|
||||
"viewport": {
|
||||
"northeast": { "lat": 45.7530412802915, "lng": 4.843668630291503 },
|
||||
"southwest": { "lat": 45.75034331970851, "lng": 4.840970669708498 }
|
||||
}
|
||||
},
|
||||
"icon": "https://maps.gstatic.com/mapfiles/place_api/icons/geocode-71.png",
|
||||
"id": "61b9418d092d2ed05ddd65a55dddefda5b9628cc",
|
||||
"name": "10 Rue Jangot",
|
||||
"place_id": "ChIJtW0QikTq9EcRLI4Vy6bRx0U",
|
||||
"plus_code": {
|
||||
"compound_code": "QR2R+MX Lyon, France",
|
||||
"global_code": "8FQ6QR2R+MX"
|
||||
},
|
||||
"reference": "ChIJtW0QikTq9EcRLI4Vy6bRx0U",
|
||||
"scope": "GOOGLE",
|
||||
"types": ["street_address"],
|
||||
"url": "https://maps.google.com/?q=10+Rue+Jangot,+69007+Lyon,+France&ftid=0x47f4ea448a106db5:0x45c7d1a6cb158e2c",
|
||||
"utc_offset": 120,
|
||||
"vicinity": "Lyon"
|
||||
},
|
||||
"status": "OK"
|
||||
}
|
||||
43
test/fixtures/geospatial/map_quest/geocode.json
vendored
Normal file
43
test/fixtures/geospatial/map_quest/geocode.json
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"info": {
|
||||
"statuscode": 0,
|
||||
"copyright": {
|
||||
"text": "\\u00A9 2019 MapQuest, Inc.",
|
||||
"imageUrl": "http://api.mqcdn.com/res/mqlogo.gif",
|
||||
"imageAltText": "\\u00A9 2019 MapQuest, Inc."
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"options": { "maxResults": 1, "thumbMaps": true, "ignoreLatLngInput": false },
|
||||
"results": [
|
||||
{
|
||||
"providedLocation": { "latLng": { "lat": 45.751718, "lng": 4.842569 } },
|
||||
"locations": [
|
||||
{
|
||||
"street": "10 Rue Jangot",
|
||||
"adminArea6": "",
|
||||
"adminArea6Type": "Neighborhood",
|
||||
"adminArea5": "Lyon",
|
||||
"adminArea5Type": "City",
|
||||
"adminArea4": "",
|
||||
"adminArea4Type": "County",
|
||||
"adminArea3": "Auvergne-Rhône-Alpes",
|
||||
"adminArea3Type": "State",
|
||||
"adminArea1": "FR",
|
||||
"adminArea1Type": "Country",
|
||||
"postalCode": "69007",
|
||||
"geocodeQualityCode": "P1AAA",
|
||||
"geocodeQuality": "POINT",
|
||||
"dragPoint": false,
|
||||
"sideOfStreet": "N",
|
||||
"linkId": "0",
|
||||
"unknownInput": "",
|
||||
"type": "s",
|
||||
"latLng": { "lat": 45.751714, "lng": 4.842566 },
|
||||
"displayLatLng": { "lat": 45.751714, "lng": 4.842566 },
|
||||
"mapUrl": "http://open.mapquestapi.com/staticmap/v5/map?key=secret_key&type=map&size=225,160&locations=45.7517141,4.8425657|marker-sm-50318A-1&scalebar=true&zoom=15&rand=-570915433"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
47
test/fixtures/geospatial/map_quest/search.json
vendored
Normal file
47
test/fixtures/geospatial/map_quest/search.json
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"info": {
|
||||
"statuscode": 0,
|
||||
"copyright": {
|
||||
"text": "\\u00A9 2019 MapQuest, Inc.",
|
||||
"imageUrl": "http://api.mqcdn.com/res/mqlogo.gif",
|
||||
"imageAltText": "\\u00A9 2019 MapQuest, Inc."
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"options": {
|
||||
"maxResults": 10,
|
||||
"thumbMaps": true,
|
||||
"ignoreLatLngInput": false
|
||||
},
|
||||
"results": [
|
||||
{
|
||||
"providedLocation": { "location": "10 rue Jangot" },
|
||||
"locations": [
|
||||
{
|
||||
"street": "10 Rue Jangot",
|
||||
"adminArea6": "7e",
|
||||
"adminArea6Type": "Neighborhood",
|
||||
"adminArea5": "Lyon",
|
||||
"adminArea5Type": "City",
|
||||
"adminArea4": "Lyon",
|
||||
"adminArea4Type": "County",
|
||||
"adminArea3": "Auvergne-Rhône-Alpes",
|
||||
"adminArea3Type": "State",
|
||||
"adminArea1": "FR",
|
||||
"adminArea1Type": "Country",
|
||||
"postalCode": "69007",
|
||||
"geocodeQualityCode": "P1AXX",
|
||||
"geocodeQuality": "POINT",
|
||||
"dragPoint": false,
|
||||
"sideOfStreet": "N",
|
||||
"linkId": "0",
|
||||
"unknownInput": "",
|
||||
"type": "s",
|
||||
"latLng": { "lat": 45.751714, "lng": 4.842566 },
|
||||
"displayLatLng": { "lat": 45.751714, "lng": 4.842566 },
|
||||
"mapUrl": "http://open.mapquestapi.com/staticmap/v5/map?key=secret_key&type=map&size=225,160&locations=45.7517141,4.8425657|marker-sm-50318A-1&scalebar=true&zoom=15&rand=1358091752"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
43
test/fixtures/geospatial/nominatim/geocode.json
vendored
Normal file
43
test/fixtures/geospatial/nominatim/geocode.json
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"type": "FeatureCollection",
|
||||
"geocoding": {
|
||||
"version": "0.1.0",
|
||||
"attribution": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
|
||||
"licence": "ODbL",
|
||||
"query": "45.751718,4.842569"
|
||||
},
|
||||
"features": [
|
||||
{
|
||||
"type": "Feature",
|
||||
"properties": {
|
||||
"geocoding": {
|
||||
"place_id": 41453794,
|
||||
"osm_type": "node",
|
||||
"osm_id": 3078260611,
|
||||
"type": "house",
|
||||
"accuracy": 0,
|
||||
"label": "10, Rue Jangot, La Guillotière, Lyon 7e Arrondissement, Lyon, Métropole de Lyon, Departemental constituency of Rhône, Auvergne-Rhône-Alpes, Metropolitan France, 69007, France",
|
||||
"name": null,
|
||||
"housenumber": "10",
|
||||
"street": "Rue Jangot",
|
||||
"postcode": "69007",
|
||||
"city": "Lyon",
|
||||
"county": "Lyon",
|
||||
"state": "Auvergne-Rhône-Alpes",
|
||||
"country": "France",
|
||||
"admin": {
|
||||
"level2": "France",
|
||||
"level3": "Metropolitan France",
|
||||
"level4": "Auvergne-Rhône-Alpes",
|
||||
"level5": "Departemental constituency of Rhône",
|
||||
"level6": "Métropole de Lyon",
|
||||
"level7": "Lyon",
|
||||
"level8": "Lyon",
|
||||
"level9": "Lyon 7e Arrondissement"
|
||||
}
|
||||
}
|
||||
},
|
||||
"geometry": { "type": "Point", "coordinates": [4.8425657, 45.7517141] }
|
||||
}
|
||||
]
|
||||
}
|
||||
42
test/fixtures/geospatial/nominatim/search.json
vendored
Normal file
42
test/fixtures/geospatial/nominatim/search.json
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"type": "FeatureCollection",
|
||||
"geocoding": {
|
||||
"version": "0.1.0",
|
||||
"attribution": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
|
||||
"licence": "ODbL",
|
||||
"query": "10 rue Jangot"
|
||||
},
|
||||
"features": [
|
||||
{
|
||||
"type": "Feature",
|
||||
"properties": {
|
||||
"geocoding": {
|
||||
"place_id": 41453794,
|
||||
"osm_type": "node",
|
||||
"osm_id": 3078260611,
|
||||
"type": "house",
|
||||
"label": "10, Rue Jangot, La Guillotière, Lyon 7e Arrondissement, Lyon, Métropole de Lyon, Departemental constituency of Rhône, Auvergne-Rhône-Alpes, Metropolitan France, 69007, France",
|
||||
"name": null,
|
||||
"housenumber": "10",
|
||||
"street": "Rue Jangot",
|
||||
"postcode": "69007",
|
||||
"city": "Lyon",
|
||||
"county": "Lyon",
|
||||
"state": "Auvergne-Rhône-Alpes",
|
||||
"country": "France",
|
||||
"admin": {
|
||||
"level2": "France",
|
||||
"level3": "Metropolitan France",
|
||||
"level4": "Auvergne-Rhône-Alpes",
|
||||
"level5": "Departemental constituency of Rhône",
|
||||
"level6": "Métropole de Lyon",
|
||||
"level7": "Lyon",
|
||||
"level8": "Lyon",
|
||||
"level9": "Lyon 7e Arrondissement"
|
||||
}
|
||||
}
|
||||
},
|
||||
"geometry": { "type": "Point", "coordinates": [4.8425657, 45.7517141] }
|
||||
}
|
||||
]
|
||||
}
|
||||
37
test/fixtures/geospatial/photon/search.json
vendored
Normal file
37
test/fixtures/geospatial/photon/search.json
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"features": [
|
||||
{
|
||||
"geometry": { "coordinates": [4.8425657, 45.7517141], "type": "Point" },
|
||||
"type": "Feature",
|
||||
"properties": {
|
||||
"osm_id": 3078260611,
|
||||
"osm_type": "N",
|
||||
"country": "France",
|
||||
"osm_key": "place",
|
||||
"housenumber": "10",
|
||||
"city": "Lyon",
|
||||
"street": "Rue Jangot",
|
||||
"osm_value": "house",
|
||||
"postcode": "69007",
|
||||
"state": "Auvergne-Rhône-Alpes"
|
||||
}
|
||||
},
|
||||
{
|
||||
"geometry": { "coordinates": [4.8424254, 45.7517056], "type": "Point" },
|
||||
"type": "Feature",
|
||||
"properties": {
|
||||
"osm_id": 3078260612,
|
||||
"osm_type": "N",
|
||||
"country": "France",
|
||||
"osm_key": "place",
|
||||
"housenumber": "10bis",
|
||||
"city": "Lyon",
|
||||
"street": "Rue Jangot",
|
||||
"osm_value": "house",
|
||||
"postcode": "69007",
|
||||
"state": "Auvergne-Rhône-Alpes"
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": "FeatureCollection"
|
||||
}
|
||||
12
test/fixtures/https__info.pleroma.site_activity.json
vendored
Normal file
12
test/fixtures/https__info.pleroma.site_activity.json
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"@context": "https://www.w3.org/ns/activitystreams",
|
||||
"actor": "http://mastodon.example.org/users/admin",
|
||||
"attachment": [],
|
||||
"attributedTo": "http://mastodon.example.org/users/admin",
|
||||
"content": "<p>this post was not actually written by Haelwenn</p>",
|
||||
"id": "https://info.pleroma.site/activity.json",
|
||||
"published": "2018-09-01T22:15:00Z",
|
||||
"tag": [],
|
||||
"to": ["https://www.w3.org/ns/activitystreams#Public"],
|
||||
"type": "Note"
|
||||
}
|
||||
91
test/fixtures/mastodon-actor.json
vendored
Normal file
91
test/fixtures/mastodon-actor.json
vendored
Normal file
@@ -0,0 +1,91 @@
|
||||
{
|
||||
"@context": [
|
||||
"https://www.w3.org/ns/activitystreams",
|
||||
"https://w3id.org/security/v1",
|
||||
{
|
||||
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
||||
"toot": "http://joinmastodon.org/ns#",
|
||||
"featured": {
|
||||
"@id": "toot:featured",
|
||||
"@type": "@id"
|
||||
},
|
||||
"alsoKnownAs": {
|
||||
"@id": "as:alsoKnownAs",
|
||||
"@type": "@id"
|
||||
},
|
||||
"movedTo": {
|
||||
"@id": "as:movedTo",
|
||||
"@type": "@id"
|
||||
},
|
||||
"schema": "http://schema.org#",
|
||||
"PropertyValue": "schema:PropertyValue",
|
||||
"value": "schema:value",
|
||||
"IdentityProof": "toot:IdentityProof",
|
||||
"discoverable": "toot:discoverable",
|
||||
"Device": "toot:Device",
|
||||
"Ed25519Signature": "toot:Ed25519Signature",
|
||||
"Ed25519Key": "toot:Ed25519Key",
|
||||
"Curve25519Key": "toot:Curve25519Key",
|
||||
"EncryptedMessage": "toot:EncryptedMessage",
|
||||
"publicKeyBase64": "toot:publicKeyBase64",
|
||||
"deviceId": "toot:deviceId",
|
||||
"claim": {
|
||||
"@type": "@id",
|
||||
"@id": "toot:claim"
|
||||
},
|
||||
"fingerprintKey": {
|
||||
"@type": "@id",
|
||||
"@id": "toot:fingerprintKey"
|
||||
},
|
||||
"identityKey": {
|
||||
"@type": "@id",
|
||||
"@id": "toot:identityKey"
|
||||
},
|
||||
"devices": {
|
||||
"@type": "@id",
|
||||
"@id": "toot:devices"
|
||||
},
|
||||
"messageFranking": "toot:messageFranking",
|
||||
"messageType": "toot:messageType",
|
||||
"cipherText": "toot:cipherText",
|
||||
"focalPoint": {
|
||||
"@container": "@list",
|
||||
"@id": "toot:focalPoint"
|
||||
}
|
||||
}
|
||||
],
|
||||
"id": "https://framapiaf.org/users/peertube",
|
||||
"type": "Person",
|
||||
"following": "https://framapiaf.org/users/peertube/following",
|
||||
"followers": "https://framapiaf.org/users/peertube/followers",
|
||||
"inbox": "https://framapiaf.org/users/peertube/inbox",
|
||||
"outbox": "https://framapiaf.org/users/peertube/outbox",
|
||||
"featured": "https://framapiaf.org/users/peertube/collections/featured",
|
||||
"preferredUsername": "peertube",
|
||||
"name": "PeerTube",
|
||||
"summary": "<p>PeerTube Software Official Account - No support here // Compte officiel du logiciel PeerTube (animé par Framasoft). Nous ne faisons pas de support depuis ce compte. Merci de contacter l'administrateur⋅ice de l'instance concernée ou de vous rendre sur <a href=\"https://framacolibri.org/c/peertube\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><span class=\"invisible\">https://</span><span class=\"\">framacolibri.org/c/peertube</span><span class=\"invisible\"></span></a></p>",
|
||||
"url": "https://framapiaf.org/@peertube",
|
||||
"manuallyApprovesFollowers": false,
|
||||
"discoverable": false,
|
||||
"devices": "https://framapiaf.org/users/peertube/collections/devices",
|
||||
"publicKey": {
|
||||
"id": "https://framapiaf.org/users/peertube#main-key",
|
||||
"owner": "https://framapiaf.org/users/peertube",
|
||||
"publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAn1y53r+ymOmDoP8iYxa1\nb1VvXkldZVpxJg1ZVeq4SijVS3oNurrQQhpTwTmCCAue2m+UvG4eEEYAYSfb5+C3\nbqH3kLlQrptkp8y/qz3d4tk/b8RConAaws7/SwksDC5rs+cYLnnXgD7rAaT1uH/B\nVTzG79YLgnasK6IxpnBth6Vru+9g2U8PzIUOfuwPV3aZeu9q2xEdC5/GnnjsfKZv\nWEzpG3HkRAlaTRDYadl9dWOPlfhy/LMkknAP02j+Qt/s7y83YqsrUyvQcfTSy3Zf\nLNNFrpU4u1ACyZXzvaoDXQH8HetKSA06xqa4pJO4xmM2PWMoBq1KX3Us4sP291w4\nEQIDAQAB\n-----END PUBLIC KEY-----\n"
|
||||
},
|
||||
"tag": [],
|
||||
"attachment": [],
|
||||
"endpoints": {
|
||||
"sharedInbox": "https://framapiaf.org/inbox"
|
||||
},
|
||||
"icon": {
|
||||
"type": "Image",
|
||||
"mediaType": "image/png",
|
||||
"url": "https://framapiaf.s3.framasoft.org/framapiaf/accounts/avatars/000/223/824/original/03ed95406a9a3cd0.png"
|
||||
},
|
||||
"image": {
|
||||
"type": "Image",
|
||||
"mediaType": "image/png",
|
||||
"url": "https://framapiaf.s3.framasoft.org/framapiaf/accounts/headers/000/223/824/original/2fbb4d6268c2fb20.png"
|
||||
}
|
||||
}
|
||||
16
test/fixtures/mastodon-announce.json
vendored
16
test/fixtures/mastodon-announce.json
vendored
@@ -1,8 +1,6 @@
|
||||
{
|
||||
"type": "Announce",
|
||||
"to": [
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
],
|
||||
"to": ["https://www.w3.org/ns/activitystreams#Public"],
|
||||
"signature": {
|
||||
"type": "RsaSignature2017",
|
||||
"signatureValue": "T95DRE0eAligvMuRMkQA01lsoz2PKi4XXF+cyZ0BqbrO12p751TEWTyyRn5a+HH0e4kc77EUhQVXwMq80WAYDzHKVUTf2XBJPBa68vl0j6RXw3+HK4ef5hR4KWFNBU34yePS7S1fEmc1mTG4Yx926wtmZwDpEMTp1CXOeVEjCYzmdyHpepPPH2ZZettiacmPRSqBLPGWZoot7kH/SioIdnrMGY0I7b+rqkIdnnEcdhu9N1BKPEO9Sr+KmxgAUiidmNZlbBXX6gCxp8BiIdH4ABsIcwoDcGNkM5EmWunGW31LVjsEQXhH5c1Wly0ugYYPCg/0eHLNBOhKkY/teSM8Lg==",
|
||||
@@ -10,14 +8,14 @@
|
||||
"created": "2018-02-17T19:39:15Z"
|
||||
},
|
||||
"published": "2018-02-17T19:39:15Z",
|
||||
"object": "https://framapiaf.org/users/Framasoft/statuses/102501959686438400",
|
||||
"id": "https://framapiaf.org/users/Framasoft/statuses/102501959686438400/activity",
|
||||
"object": "https://framapiaf.org/users/peertube/statuses/104584600044284729",
|
||||
"id": "https://framapiaf.org/users/peertube/statuses/104584600044284729/activity",
|
||||
"cc": [
|
||||
"https://framapiaf.org/users/Framasoft",
|
||||
"https://framapiaf.org/users/Framasoft/followers"
|
||||
"https://framapiaf.org/users/peertube",
|
||||
"https://framapiaf.org/users/peertube/followers"
|
||||
],
|
||||
"atomUri": "https://framapiaf.org/users/Framasoft/statuses/102501959686438400/activity",
|
||||
"actor": "https://framapiaf.org/users/Framasoft",
|
||||
"atomUri": "https://framapiaf.org/users/peertube/statuses/104584600044284729/activity",
|
||||
"actor": "https://framapiaf.org/users/peertube",
|
||||
"@context": [
|
||||
"https://www.w3.org/ns/activitystreams",
|
||||
"https://w3id.org/security/v1",
|
||||
|
||||
68
test/fixtures/mastodon-status-2.json
vendored
Normal file
68
test/fixtures/mastodon-status-2.json
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"@context": [
|
||||
"https://www.w3.org/ns/activitystreams",
|
||||
{
|
||||
"ostatus": "http://ostatus.org#",
|
||||
"atomUri": "ostatus:atomUri",
|
||||
"inReplyToAtomUri": "ostatus:inReplyToAtomUri",
|
||||
"conversation": "ostatus:conversation",
|
||||
"sensitive": "as:sensitive",
|
||||
"toot": "http://joinmastodon.org/ns#",
|
||||
"votersCount": "toot:votersCount",
|
||||
"blurhash": "toot:blurhash",
|
||||
"focalPoint": {
|
||||
"@container": "@list",
|
||||
"@id": "toot:focalPoint"
|
||||
},
|
||||
"Hashtag": "as:Hashtag"
|
||||
}
|
||||
],
|
||||
"id": "https://framapiaf.org/users/Framasoft/statuses/102093631881522097",
|
||||
"type": "Note",
|
||||
"summary": null,
|
||||
"inReplyTo": null,
|
||||
"published": "2019-05-14T09:13:13Z",
|
||||
"url": "https://framapiaf.org/@Framasoft/102093631881522097",
|
||||
"attributedTo": "https://framapiaf.org/users/Framasoft",
|
||||
"to": ["https://www.w3.org/ns/activitystreams#Public"],
|
||||
"cc": ["https://framapiaf.org/users/Framasoft/followers"],
|
||||
"sensitive": false,
|
||||
"atomUri": "https://framapiaf.org/users/Framasoft/statuses/102093631881522097",
|
||||
"inReplyToAtomUri": null,
|
||||
"conversation": "tag:framapiaf.org,2019-05-14:objectId=16200311:objectType=Conversation",
|
||||
"content": "<p>Mobilizon : Finançons un outil pour sortir nos événements de Facebook !</p><p><a href=\"https://framablog.org/2019/05/14/mobilizon-financons-un-outil-pour-sortir-nos-evenements-de-facebook/\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><span class=\"invisible\">https://</span><span class=\"ellipsis\">framablog.org/2019/05/14/mobil</span><span class=\"invisible\">izon-financons-un-outil-pour-sortir-nos-evenements-de-facebook/</span></a> <a href=\"https://framapiaf.org/tags/Framablog\" class=\"mention hashtag\" rel=\"tag\">#<span>Framablog</span></a> <a href=\"https://framapiaf.org/tags/TootOuRien\" class=\"mention hashtag\" rel=\"tag\">#<span>TootOuRien</span></a></p><p>Nous avons moins de 60 jours pour financer Mobilizon. Moins de 60 jours pour faire connaître notre projet d'alternative libre et fédérée aux événements Facebook ; et pour savoir à quel point nous devons nous y investir.</p><p>Changer le logiciel de celles et ceux qui changent le …</p>",
|
||||
"contentMap": {
|
||||
"fr": "<p>Mobilizon : Finançons un outil pour sortir nos événements de Facebook !</p><p><a href=\"https://framablog.org/2019/05/14/mobilizon-financons-un-outil-pour-sortir-nos-evenements-de-facebook/\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><span class=\"invisible\">https://</span><span class=\"ellipsis\">framablog.org/2019/05/14/mobil</span><span class=\"invisible\">izon-financons-un-outil-pour-sortir-nos-evenements-de-facebook/</span></a> <a href=\"https://framapiaf.org/tags/Framablog\" class=\"mention hashtag\" rel=\"tag\">#<span>Framablog</span></a> <a href=\"https://framapiaf.org/tags/TootOuRien\" class=\"mention hashtag\" rel=\"tag\">#<span>TootOuRien</span></a></p><p>Nous avons moins de 60 jours pour financer Mobilizon. Moins de 60 jours pour faire connaître notre projet d'alternative libre et fédérée aux événements Facebook ; et pour savoir à quel point nous devons nous y investir.</p><p>Changer le logiciel de celles et ceux qui changent le …</p>"
|
||||
},
|
||||
"attachment": [
|
||||
{
|
||||
"type": "Document",
|
||||
"mediaType": "image/jpeg",
|
||||
"url": "https://framapiaf.s3.framasoft.org/framapiaf/media_attachments/files/003/337/144/original/39d457fd9e0f0171.jpg",
|
||||
"name": null,
|
||||
"blurhash": "UIF=jrpIM|~q~VT0%2t6Ne9a?G-;9ZRP%2Rk"
|
||||
}
|
||||
],
|
||||
"tag": [
|
||||
{
|
||||
"type": "Hashtag",
|
||||
"href": "https://framapiaf.org/tags/framablog",
|
||||
"name": "#framablog"
|
||||
},
|
||||
{
|
||||
"type": "Hashtag",
|
||||
"href": "https://framapiaf.org/tags/tootourien",
|
||||
"name": "#tootourien"
|
||||
}
|
||||
],
|
||||
"replies": {
|
||||
"id": "https://framapiaf.org/users/Framasoft/statuses/102093631881522097/replies",
|
||||
"type": "Collection",
|
||||
"first": {
|
||||
"type": "CollectionPage",
|
||||
"next": "https://framapiaf.org/users/Framasoft/statuses/102093631881522097/replies?only_other_accounts=true&page=true",
|
||||
"partOf": "https://framapiaf.org/users/Framasoft/statuses/102093631881522097/replies",
|
||||
"items": []
|
||||
}
|
||||
}
|
||||
}
|
||||
34
test/fixtures/mastodon-status-3.json
vendored
Normal file
34
test/fixtures/mastodon-status-3.json
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"@context": [
|
||||
"https://www.w3.org/ns/activitystreams",
|
||||
"https://zoltasila.pl/schemas/litepub-0.1.jsonld",
|
||||
{
|
||||
"@language": "und"
|
||||
}
|
||||
],
|
||||
"actor": "https://zoltasila.pl/users/mkljczk",
|
||||
"attachment": [],
|
||||
"attributedTo": "https://zoltasila.pl/users/mkljczk",
|
||||
"cc": ["https://zoltasila.pl/users/mkljczk/followers"],
|
||||
"content": "<p><span class=\"h-card\"><a class=\"u-url mention\" data-user=\"9xUDK5nC4I2pNtyIsq\" href=\"https://framapiaf.org/@peertube\" rel=\"ugc\">@<span>peertube</span></a></span> guess you wanted to put the <a href=\"https://joinpeertube.org/en_US/news#release-2-3-0\">en_US lang link</a></p>",
|
||||
"context": "tag:framapiaf.org,2020-07-27:objectId=39135637:objectType=Conversation",
|
||||
"conversation": "tag:framapiaf.org,2020-07-27:objectId=39135637:objectType=Conversation",
|
||||
"id": "https://zoltasila.pl/objects/1c295713-8e3c-411e-9e62-57a7b9c9e514",
|
||||
"inReplyTo": "https://framapiaf.org/users/peertube/statuses/104584600044284729",
|
||||
"published": "2020-07-27T09:37:57.202806Z",
|
||||
"sensitive": false,
|
||||
"source": "@peertube@framapiaf.org guess you wanted to put the [en_US lang link](https://joinpeertube.org/en_US/news#release-2-3-0)",
|
||||
"summary": "",
|
||||
"tag": [
|
||||
{
|
||||
"href": "https://framapiaf.org/users/peertube",
|
||||
"name": "@peertube@framapiaf.org",
|
||||
"type": "Mention"
|
||||
}
|
||||
],
|
||||
"to": [
|
||||
"https://framapiaf.org/users/peertube",
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
],
|
||||
"type": "Note"
|
||||
}
|
||||
56
test/fixtures/mastodon-status-4.json
vendored
Normal file
56
test/fixtures/mastodon-status-4.json
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"@context": [
|
||||
"https://www.w3.org/ns/activitystreams",
|
||||
{
|
||||
"ostatus": "http://ostatus.org#",
|
||||
"atomUri": "ostatus:atomUri",
|
||||
"inReplyToAtomUri": "ostatus:inReplyToAtomUri",
|
||||
"conversation": "ostatus:conversation",
|
||||
"sensitive": "as:sensitive",
|
||||
"toot": "http://joinmastodon.org/ns#",
|
||||
"votersCount": "toot:votersCount",
|
||||
"blurhash": "toot:blurhash",
|
||||
"focalPoint": {
|
||||
"@container": "@list",
|
||||
"@id": "toot:focalPoint"
|
||||
}
|
||||
}
|
||||
],
|
||||
"id": "https://framapiaf.org/users/peertube/statuses/104584600044284729",
|
||||
"type": "Note",
|
||||
"summary": null,
|
||||
"inReplyTo": null,
|
||||
"published": "2020-07-27T07:19:11Z",
|
||||
"url": "https://framapiaf.org/@peertube/104584600044284729",
|
||||
"attributedTo": "https://framapiaf.org/users/peertube",
|
||||
"to": ["https://www.w3.org/ns/activitystreams#Public"],
|
||||
"cc": ["https://framapiaf.org/users/peertube/followers"],
|
||||
"sensitive": false,
|
||||
"atomUri": "https://framapiaf.org/users/peertube/statuses/104584600044284729",
|
||||
"inReplyToAtomUri": null,
|
||||
"conversation": "tag:framapiaf.org,2020-07-27:objectId=39135637:objectType=Conversation",
|
||||
"content": "<p>PeerTube 2.3 is out! Discover on <a href=\"https://joinpeertube.org/fr_FR/news#release-2-3-0\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><span class=\"invisible\">https://</span><span class=\"ellipsis\">joinpeertube.org/fr_FR/news#re</span><span class=\"invisible\">lease-2-3-0</span></a> the list of new features! </p><p>Have you seen the broadcast message system ? 🤩</p>",
|
||||
"contentMap": {
|
||||
"en": "<p>PeerTube 2.3 is out! Discover on <a href=\"https://joinpeertube.org/fr_FR/news#release-2-3-0\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><span class=\"invisible\">https://</span><span class=\"ellipsis\">joinpeertube.org/fr_FR/news#re</span><span class=\"invisible\">lease-2-3-0</span></a> the list of new features! </p><p>Have you seen the broadcast message system ? 🤩</p>"
|
||||
},
|
||||
"attachment": [
|
||||
{
|
||||
"type": "Document",
|
||||
"mediaType": "image/png",
|
||||
"url": "https://framapiaf.s3.framasoft.org/framapiaf/media_attachments/files/104/584/599/807/860/387/original/88c94143f78fdfa3.png",
|
||||
"name": null,
|
||||
"blurhash": "U5SY?Z00nOxu7ORP.8-pU^kVS#NGXyxbMxM{"
|
||||
}
|
||||
],
|
||||
"tag": [],
|
||||
"replies": {
|
||||
"id": "https://framapiaf.org/users/peertube/statuses/104584600044284729/replies",
|
||||
"type": "Collection",
|
||||
"first": {
|
||||
"type": "CollectionPage",
|
||||
"next": "https://framapiaf.org/users/peertube/statuses/104584600044284729/replies?only_other_accounts=true&page=true",
|
||||
"partOf": "https://framapiaf.org/users/peertube/statuses/104584600044284729/replies",
|
||||
"items": []
|
||||
}
|
||||
}
|
||||
}
|
||||
58
test/fixtures/mastodon-status-5.json
vendored
Normal file
58
test/fixtures/mastodon-status-5.json
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"@context": [
|
||||
"https://www.w3.org/ns/activitystreams",
|
||||
{
|
||||
"ostatus": "http://ostatus.org#",
|
||||
"atomUri": "ostatus:atomUri",
|
||||
"inReplyToAtomUri": "ostatus:inReplyToAtomUri",
|
||||
"conversation": "ostatus:conversation",
|
||||
"sensitive": "as:sensitive",
|
||||
"toot": "http://joinmastodon.org/ns#",
|
||||
"votersCount": "toot:votersCount"
|
||||
}
|
||||
],
|
||||
"id": "https://diaspodon.fr/users/dada/statuses/100820008426311925",
|
||||
"type": "Note",
|
||||
"summary": null,
|
||||
"inReplyTo": "https://framatube.org/videos/watch/9c9de5e8-0a1e-484a-b099-e80766180a6d",
|
||||
"published": "2018-10-01T10:54:01Z",
|
||||
"url": "https://diaspodon.fr/@dada/100820008426311925",
|
||||
"attributedTo": "https://diaspodon.fr/users/dada",
|
||||
"to": ["https://www.w3.org/ns/activitystreams#Public"],
|
||||
"cc": [
|
||||
"https://diaspodon.fr/users/dada/followers",
|
||||
"https://framapiaf.org/users/Pouhiou",
|
||||
"https://framatube.org/accounts/framasoft"
|
||||
],
|
||||
"sensitive": false,
|
||||
"atomUri": "https://diaspodon.fr/users/dada/statuses/100820008426311925",
|
||||
"inReplyToAtomUri": "https://framatube.org/videos/watch/9c9de5e8-0a1e-484a-b099-e80766180a6d",
|
||||
"conversation": "tag:diaspodon.fr,2018-10-01:objectId=1187066:objectType=Conversation",
|
||||
"content": "<p><span class=\"h-card\"><a href=\"https://framatube.org/accounts/framasoft\" class=\"u-url mention\">@<span>framasoft</span></a></span> Ça ne serait pas la voix de <span class=\"h-card\"><a href=\"https://framapiaf.org/@Pouhiou\" class=\"u-url mention\">@<span>Pouhiou</span></a></span> ? 🤔</p>",
|
||||
"contentMap": {
|
||||
"fr": "<p><span class=\"h-card\"><a href=\"https://framatube.org/accounts/framasoft\" class=\"u-url mention\">@<span>framasoft</span></a></span> Ça ne serait pas la voix de <span class=\"h-card\"><a href=\"https://framapiaf.org/@Pouhiou\" class=\"u-url mention\">@<span>Pouhiou</span></a></span> ? 🤔</p>"
|
||||
},
|
||||
"attachment": [],
|
||||
"tag": [
|
||||
{
|
||||
"type": "Mention",
|
||||
"href": "https://framatube.org/accounts/framasoft",
|
||||
"name": "@framasoft@framatube.org"
|
||||
},
|
||||
{
|
||||
"type": "Mention",
|
||||
"href": "https://framapiaf.org/users/Pouhiou",
|
||||
"name": "@Pouhiou@framapiaf.org"
|
||||
}
|
||||
],
|
||||
"replies": {
|
||||
"id": "https://diaspodon.fr/users/dada/statuses/100820008426311925/replies",
|
||||
"type": "Collection",
|
||||
"first": {
|
||||
"type": "CollectionPage",
|
||||
"next": "https://diaspodon.fr/users/dada/statuses/100820008426311925/replies?only_other_accounts=true&page=true",
|
||||
"partOf": "https://diaspodon.fr/users/dada/statuses/100820008426311925/replies",
|
||||
"items": []
|
||||
}
|
||||
}
|
||||
}
|
||||
56
test/fixtures/mastodon-status.json
vendored
Normal file
56
test/fixtures/mastodon-status.json
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"@context": [
|
||||
"https://www.w3.org/ns/activitystreams",
|
||||
{
|
||||
"ostatus": "http://ostatus.org#",
|
||||
"atomUri": "ostatus:atomUri",
|
||||
"inReplyToAtomUri": "ostatus:inReplyToAtomUri",
|
||||
"conversation": "ostatus:conversation",
|
||||
"sensitive": "as:sensitive",
|
||||
"toot": "http://joinmastodon.org/ns#",
|
||||
"votersCount": "toot:votersCount",
|
||||
"blurhash": "toot:blurhash",
|
||||
"focalPoint": {
|
||||
"@container": "@list",
|
||||
"@id": "toot:focalPoint"
|
||||
}
|
||||
}
|
||||
],
|
||||
"id": "https://framapiaf.org/users/peertube/statuses/104584600044284729",
|
||||
"type": "Note",
|
||||
"summary": null,
|
||||
"inReplyTo": null,
|
||||
"published": "2020-07-27T07:19:11Z",
|
||||
"url": "https://framapiaf.org/@peertube/104584600044284729",
|
||||
"attributedTo": "https://framapiaf.org/users/peertube",
|
||||
"to": ["https://www.w3.org/ns/activitystreams#Public"],
|
||||
"cc": ["https://framapiaf.org/users/peertube/followers"],
|
||||
"sensitive": false,
|
||||
"atomUri": "https://framapiaf.org/users/peertube/statuses/104584600044284729",
|
||||
"inReplyToAtomUri": null,
|
||||
"conversation": "tag:framapiaf.org,2020-07-27:objectId=39135637:objectType=Conversation",
|
||||
"content": "<p>PeerTube 2.3 is out! Discover on <a href=\"https://joinpeertube.org/fr_FR/news#release-2-3-0\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><span class=\"invisible\">https://</span><span class=\"ellipsis\">joinpeertube.org/fr_FR/news#re</span><span class=\"invisible\">lease-2-3-0</span></a> the list of new features! </p><p>Have you seen the broadcast message system ? 🤩</p>",
|
||||
"contentMap": {
|
||||
"en": "<p>PeerTube 2.3 is out! Discover on <a href=\"https://joinpeertube.org/fr_FR/news#release-2-3-0\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><span class=\"invisible\">https://</span><span class=\"ellipsis\">joinpeertube.org/fr_FR/news#re</span><span class=\"invisible\">lease-2-3-0</span></a> the list of new features! </p><p>Have you seen the broadcast message system ? 🤩</p>"
|
||||
},
|
||||
"attachment": [
|
||||
{
|
||||
"type": "Document",
|
||||
"mediaType": "image/png",
|
||||
"url": "https://framapiaf.s3.framasoft.org/framapiaf/media_attachments/files/104/584/599/807/860/387/original/88c94143f78fdfa3.png",
|
||||
"name": null,
|
||||
"blurhash": "U5SY?Z00nOxu7ORP.8-pU^kVS#NGXyxbMxM{"
|
||||
}
|
||||
],
|
||||
"tag": [],
|
||||
"replies": {
|
||||
"id": "https://framapiaf.org/users/peertube/statuses/104584600044284729/replies",
|
||||
"type": "Collection",
|
||||
"first": {
|
||||
"type": "CollectionPage",
|
||||
"next": "https://framapiaf.org/users/peertube/statuses/104584600044284729/replies?only_other_accounts=true&page=true",
|
||||
"partOf": "https://framapiaf.org/users/peertube/statuses/104584600044284729/replies",
|
||||
"items": []
|
||||
}
|
||||
}
|
||||
}
|
||||
52
test/fixtures/mobilizon-post-activity-group.json
vendored
Normal file
52
test/fixtures/mobilizon-post-activity-group.json
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"@context": [
|
||||
"https://www.w3.org/ns/activitystreams",
|
||||
"https://litepub.social/litepub/context.jsonld",
|
||||
{
|
||||
"Hashtag": "as:Hashtag",
|
||||
"category": "sc:category",
|
||||
"ical": "http://www.w3.org/2002/12/cal/ical#",
|
||||
"joinMode": {
|
||||
"@id": "mz:joinMode",
|
||||
"@type": "mz:joinModeType"
|
||||
},
|
||||
"joinModeType": {
|
||||
"@id": "mz:joinModeType",
|
||||
"@type": "rdfs:Class"
|
||||
},
|
||||
"maximumAttendeeCapacity": "sc:maximumAttendeeCapacity",
|
||||
"mz": "https://joinmobilizon.org/ns#",
|
||||
"repliesModerationOption": {
|
||||
"@id": "mz:repliesModerationOption",
|
||||
"@type": "mz:repliesModerationOptionType"
|
||||
},
|
||||
"repliesModerationOptionType": {
|
||||
"@id": "mz:repliesModerationOptionType",
|
||||
"@type": "rdfs:Class"
|
||||
},
|
||||
"sc": "http://schema.org#",
|
||||
"uuid": "sc:identifier"
|
||||
}
|
||||
],
|
||||
"actor": "http://mobilizon1.com/@user",
|
||||
"attributedTo": "http://mobilizon1.com/@group",
|
||||
"cc": [],
|
||||
"id": "http://mobilizon1.com/events/f270ae07-7991-453c-9bb7-3d2122ededae/activity",
|
||||
"object": {
|
||||
"actor": "http://mobilizon1.com/@user",
|
||||
"attributedTo": "http://mobilizon1.com/@group",
|
||||
"startTime": "2018-02-12T14:08:20Z",
|
||||
"cc": [],
|
||||
"content": "<p><span class=\"h-card\"><a href=\"https://framapiaf.org/users/tcit\" class=\"u-url mention\">@<span>tcit</span></a></span></p>",
|
||||
"id": "http://mobilizon1.com/events/f270ae07-7991-453c-9bb7-3d2122ededae",
|
||||
"name": "My first event",
|
||||
"published": "2018-02-12T14:08:20Z",
|
||||
"tag": [],
|
||||
"to": ["http://mobilizon1.com/@group"],
|
||||
"type": "Event",
|
||||
"uuid": "f270ae07-7991-453c-9bb7-3d2122ededae"
|
||||
},
|
||||
"published": "2018-02-12T14:08:20Z",
|
||||
"to": ["http://mobilizon1.com/@group"],
|
||||
"type": "Create"
|
||||
}
|
||||
393
test/fixtures/peertube-video.json
vendored
Normal file
393
test/fixtures/peertube-video.json
vendored
Normal file
@@ -0,0 +1,393 @@
|
||||
{
|
||||
"type": "Video",
|
||||
"id": "https://framatube.org/videos/watch/9c9de5e8-0a1e-484a-b099-e80766180a6d",
|
||||
"name": "What is PeerTube?",
|
||||
"duration": "PT113S",
|
||||
"uuid": "9c9de5e8-0a1e-484a-b099-e80766180a6d",
|
||||
"tag": [
|
||||
{
|
||||
"type": "Hashtag",
|
||||
"name": "framasoft"
|
||||
},
|
||||
{
|
||||
"type": "Hashtag",
|
||||
"name": "peertube"
|
||||
}
|
||||
],
|
||||
"category": {
|
||||
"identifier": "15",
|
||||
"name": "Science & Technology"
|
||||
},
|
||||
"licence": {
|
||||
"identifier": "2",
|
||||
"name": "Attribution - Share Alike"
|
||||
},
|
||||
"language": {
|
||||
"identifier": "en",
|
||||
"name": "English"
|
||||
},
|
||||
"views": 53137,
|
||||
"sensitive": false,
|
||||
"waitTranscoding": true,
|
||||
"state": 1,
|
||||
"commentsEnabled": true,
|
||||
"downloadEnabled": true,
|
||||
"published": "2018-10-01T10:52:46.396Z",
|
||||
"originallyPublishedAt": null,
|
||||
"updated": "2020-07-30T08:01:00.836Z",
|
||||
"mediaType": "text/markdown",
|
||||
"content": "**[Want to help to translate this video?](https://weblate.framasoft.org/projects/what-is-peertube-video/)**\r\n\r\n**Take back the control of your videos! [#JoinPeertube](https://joinpeertube.org)**\r\n*A decentralized video hosting network, based on free/libre software!*\r\n\r\n**Animation Produced by:** [LILA](https://libreart.info) - [ZeMarmot Team](https://film.zemarmot.net)\r\n*Directed by* Aryeom\r\n*Assistant* Jehan\r\n**Licence**: [CC-By-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)\r\n\r\n**Sponsored by** [Framasoft](https://framasoft.org)\r\n\r\n**Music**: [Red Step Forward](http://play.dogmazic.net/song.php?song_id=52491) - CC-By Ken Bushima\r\n\r\n**Movie Clip**: [Caminades 3: Llamigos](http://www.caminandes.com/) CC-By Blender Institute\r\n\r\n**Video sources**: https://gitlab.gnome.org/Jehan/what-is-peertube/",
|
||||
"support": null,
|
||||
"subtitleLanguage": [
|
||||
{
|
||||
"identifier": "ca",
|
||||
"name": "Catalan",
|
||||
"url": "https://framatube.org/static/video-captions/9c9de5e8-0a1e-484a-b099-e80766180a6d-ca.vtt"
|
||||
},
|
||||
{
|
||||
"identifier": "cs",
|
||||
"name": "Czech",
|
||||
"url": "https://framatube.org/static/video-captions/9c9de5e8-0a1e-484a-b099-e80766180a6d-cs.vtt"
|
||||
},
|
||||
{
|
||||
"identifier": "de",
|
||||
"name": "German",
|
||||
"url": "https://framatube.org/static/video-captions/9c9de5e8-0a1e-484a-b099-e80766180a6d-de.vtt"
|
||||
},
|
||||
{
|
||||
"identifier": "en",
|
||||
"name": "English",
|
||||
"url": "https://framatube.org/static/video-captions/9c9de5e8-0a1e-484a-b099-e80766180a6d-en.vtt"
|
||||
},
|
||||
{
|
||||
"identifier": "es",
|
||||
"name": "Spanish",
|
||||
"url": "https://framatube.org/static/video-captions/9c9de5e8-0a1e-484a-b099-e80766180a6d-es.vtt"
|
||||
},
|
||||
{
|
||||
"identifier": "eu",
|
||||
"name": "Basque",
|
||||
"url": "https://framatube.org/static/video-captions/9c9de5e8-0a1e-484a-b099-e80766180a6d-eu.vtt"
|
||||
},
|
||||
{
|
||||
"identifier": "fr",
|
||||
"name": "French",
|
||||
"url": "https://framatube.org/static/video-captions/9c9de5e8-0a1e-484a-b099-e80766180a6d-fr.vtt"
|
||||
},
|
||||
{
|
||||
"identifier": "gl",
|
||||
"name": "Galician",
|
||||
"url": "https://framatube.org/static/video-captions/9c9de5e8-0a1e-484a-b099-e80766180a6d-gl.vtt"
|
||||
},
|
||||
{
|
||||
"identifier": "hu",
|
||||
"name": "Hungarian",
|
||||
"url": "https://framatube.org/static/video-captions/9c9de5e8-0a1e-484a-b099-e80766180a6d-hu.vtt"
|
||||
},
|
||||
{
|
||||
"identifier": "it",
|
||||
"name": "Italian",
|
||||
"url": "https://framatube.org/static/video-captions/9c9de5e8-0a1e-484a-b099-e80766180a6d-it.vtt"
|
||||
},
|
||||
{
|
||||
"identifier": "lt",
|
||||
"name": "Lithuanian",
|
||||
"url": "https://framatube.org/static/video-captions/9c9de5e8-0a1e-484a-b099-e80766180a6d-lt.vtt"
|
||||
},
|
||||
{
|
||||
"identifier": "nl",
|
||||
"name": "Dutch",
|
||||
"url": "https://framatube.org/static/video-captions/9c9de5e8-0a1e-484a-b099-e80766180a6d-nl.vtt"
|
||||
},
|
||||
{
|
||||
"identifier": "pl",
|
||||
"name": "Polish",
|
||||
"url": "https://framatube.org/static/video-captions/9c9de5e8-0a1e-484a-b099-e80766180a6d-pl.vtt"
|
||||
},
|
||||
{
|
||||
"identifier": "pt",
|
||||
"name": "Portuguese",
|
||||
"url": "https://framatube.org/static/video-captions/9c9de5e8-0a1e-484a-b099-e80766180a6d-pt.vtt"
|
||||
},
|
||||
{
|
||||
"identifier": "ru",
|
||||
"name": "Russian",
|
||||
"url": "https://framatube.org/static/video-captions/9c9de5e8-0a1e-484a-b099-e80766180a6d-ru.vtt"
|
||||
},
|
||||
{
|
||||
"identifier": "sv",
|
||||
"name": "Swedish",
|
||||
"url": "https://framatube.org/static/video-captions/9c9de5e8-0a1e-484a-b099-e80766180a6d-sv.vtt"
|
||||
},
|
||||
{
|
||||
"identifier": "zh",
|
||||
"name": "Chinese",
|
||||
"url": "https://framatube.org/static/video-captions/9c9de5e8-0a1e-484a-b099-e80766180a6d-zh.vtt"
|
||||
}
|
||||
],
|
||||
"icon": [
|
||||
{
|
||||
"type": "Image",
|
||||
"url": "https://framatube.org/static/thumbnails/9c9de5e8-0a1e-484a-b099-e80766180a6d.jpg",
|
||||
"mediaType": "image/jpeg",
|
||||
"width": 223,
|
||||
"height": 122
|
||||
},
|
||||
{
|
||||
"type": "Image",
|
||||
"url": "https://framatube.org/static/previews/9c9de5e8-0a1e-484a-b099-e80766180a6d.jpg",
|
||||
"mediaType": "image/jpeg",
|
||||
"width": 850,
|
||||
"height": 480
|
||||
}
|
||||
],
|
||||
"url": [
|
||||
{
|
||||
"type": "Link",
|
||||
"mediaType": "text/html",
|
||||
"href": "https://framatube.org/videos/watch/9c9de5e8-0a1e-484a-b099-e80766180a6d"
|
||||
},
|
||||
{
|
||||
"type": "Link",
|
||||
"mediaType": "video/mp4",
|
||||
"href": "https://framatube.org/static/webseed/9c9de5e8-0a1e-484a-b099-e80766180a6d-1080.mp4",
|
||||
"height": 1080,
|
||||
"size": 14689568,
|
||||
"fps": 24
|
||||
},
|
||||
{
|
||||
"type": "Link",
|
||||
"rel": ["metadata", "video/mp4"],
|
||||
"mediaType": "application/json",
|
||||
"href": "https://framatube.org/api/v1/videos/9c9de5e8-0a1e-484a-b099-e80766180a6d/metadata/10124",
|
||||
"height": 1080,
|
||||
"fps": 24
|
||||
},
|
||||
{
|
||||
"type": "Link",
|
||||
"mediaType": "application/x-bittorrent",
|
||||
"href": "https://framatube.org/static/torrents/9c9de5e8-0a1e-484a-b099-e80766180a6d-1080.torrent",
|
||||
"height": 1080
|
||||
},
|
||||
{
|
||||
"type": "Link",
|
||||
"mediaType": "application/x-bittorrent;x-scheme-handler/magnet",
|
||||
"href": "magnet:?xs=https%3A%2F%2Fframatube.org%2Fstatic%2Ftorrents%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-1080.torrent&xt=urn:btih:dc84b692c4002fec0cae873df0dc7f5d67fc09db&dn=What+is+PeerTube%3F&tr=wss%3A%2F%2Fframatube.org%3A443%2Ftracker%2Fsocket&tr=https%3A%2F%2Fframatube.org%2Ftracker%2Fannounce&ws=https%3A%2F%2Fframatube.org%2Fstatic%2Fwebseed%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-1080.mp4&ws=https%3A%2F%2Fvideo.antopie.org%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-1080.mp4&ws=https%3A%2F%2Fpeertube.live%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-1080.mp4&ws=https%3A%2F%2Ftube.privacytools.io%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-1080.mp4&ws=https%3A%2F%2Fpeertube.social%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-1080.mp4&ws=https%3A%2F%2Fpeertube.foxfam.club%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-1080.mp4&ws=https%3A%2F%2Fpeertube.iselfhost.com%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-1080.mp4&ws=https%3A%2F%2Fpeertube.freeforge.eu%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-1080.mp4&ws=https%3A%2F%2Fpeertube.krapace.fr%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-1080.mp4&ws=https%3A%2F%2Fpeertube2.cpy.re%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-1080.mp4&ws=https%3A%2F%2Fvideo.blueline.mg%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-1080.mp4&ws=https%3A%2F%2Fpeertube.video%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-1080.mp4&ws=https%3A%2F%2Ftube.crapaud-fou.org%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-1080.mp4&ws=https%3A%2F%2Fflim.ml%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-1080.mp4&ws=https%3A%2F%2Fpeertube.nomagic.uk%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-1080.mp4",
|
||||
"height": 1080
|
||||
},
|
||||
{
|
||||
"type": "Link",
|
||||
"mediaType": "video/mp4",
|
||||
"href": "https://framatube.org/static/webseed/9c9de5e8-0a1e-484a-b099-e80766180a6d-720.mp4",
|
||||
"height": 720,
|
||||
"size": 8365049,
|
||||
"fps": 24
|
||||
},
|
||||
{
|
||||
"type": "Link",
|
||||
"rel": ["metadata", "video/mp4"],
|
||||
"mediaType": "application/json",
|
||||
"href": "https://framatube.org/api/v1/videos/9c9de5e8-0a1e-484a-b099-e80766180a6d/metadata/10127",
|
||||
"height": 720,
|
||||
"fps": 24
|
||||
},
|
||||
{
|
||||
"type": "Link",
|
||||
"mediaType": "application/x-bittorrent",
|
||||
"href": "https://framatube.org/static/torrents/9c9de5e8-0a1e-484a-b099-e80766180a6d-720.torrent",
|
||||
"height": 720
|
||||
},
|
||||
{
|
||||
"type": "Link",
|
||||
"mediaType": "application/x-bittorrent;x-scheme-handler/magnet",
|
||||
"href": "magnet:?xs=https%3A%2F%2Fframatube.org%2Fstatic%2Ftorrents%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-720.torrent&xt=urn:btih:9fb0e35b4945565fa842b2bb0fe8b03edf223b15&dn=What+is+PeerTube%3F&tr=wss%3A%2F%2Fframatube.org%3A443%2Ftracker%2Fsocket&tr=https%3A%2F%2Fframatube.org%2Ftracker%2Fannounce&ws=https%3A%2F%2Fframatube.org%2Fstatic%2Fwebseed%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-720.mp4&ws=https%3A%2F%2Fvideo.antopie.org%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-720.mp4&ws=https%3A%2F%2Ftube.privacytools.io%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-720.mp4&ws=https%3A%2F%2Fpeertube.live%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-720.mp4&ws=https%3A%2F%2Fpeertube.social%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-720.mp4&ws=https%3A%2F%2Fpeertube.iselfhost.com%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-720.mp4&ws=https%3A%2F%2Fpeertube2.cpy.re%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-720.mp4&ws=https%3A%2F%2Fpeertube.freeforge.eu%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-720.mp4&ws=https%3A%2F%2Fpeertube.krapace.fr%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-720.mp4&ws=https%3A%2F%2Fvideo.blueline.mg%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-720.mp4&ws=https%3A%2F%2Fpeertube.video%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-720.mp4&ws=https%3A%2F%2Ftube.crapaud-fou.org%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-720.mp4&ws=https%3A%2F%2Fflim.ml%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-720.mp4&ws=https%3A%2F%2Fpeertube.foxfam.club%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-720.mp4&ws=https%3A%2F%2Fpeertube.nomagic.uk%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-720.mp4",
|
||||
"height": 720
|
||||
},
|
||||
{
|
||||
"type": "Link",
|
||||
"mediaType": "video/mp4",
|
||||
"href": "https://framatube.org/static/webseed/9c9de5e8-0a1e-484a-b099-e80766180a6d-480.mp4",
|
||||
"height": 480,
|
||||
"size": 5650553,
|
||||
"fps": 24
|
||||
},
|
||||
{
|
||||
"type": "Link",
|
||||
"rel": ["metadata", "video/mp4"],
|
||||
"mediaType": "application/json",
|
||||
"href": "https://framatube.org/api/v1/videos/9c9de5e8-0a1e-484a-b099-e80766180a6d/metadata/10125",
|
||||
"height": 480,
|
||||
"fps": 24
|
||||
},
|
||||
{
|
||||
"type": "Link",
|
||||
"mediaType": "application/x-bittorrent",
|
||||
"href": "https://framatube.org/static/torrents/9c9de5e8-0a1e-484a-b099-e80766180a6d-480.torrent",
|
||||
"height": 480
|
||||
},
|
||||
{
|
||||
"type": "Link",
|
||||
"mediaType": "application/x-bittorrent;x-scheme-handler/magnet",
|
||||
"href": "magnet:?xs=https%3A%2F%2Fframatube.org%2Fstatic%2Ftorrents%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-480.torrent&xt=urn:btih:bf02027a9aad4275d8baa25afae230b85187bcf7&dn=What+is+PeerTube%3F&tr=wss%3A%2F%2Fframatube.org%3A443%2Ftracker%2Fsocket&tr=https%3A%2F%2Fframatube.org%2Ftracker%2Fannounce&ws=https%3A%2F%2Fframatube.org%2Fstatic%2Fwebseed%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-480.mp4&ws=https%3A%2F%2Fvideo.antopie.org%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-480.mp4&ws=https%3A%2F%2Fpeertube.live%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-480.mp4&ws=https%3A%2F%2Ftube.privacytools.io%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-480.mp4&ws=https%3A%2F%2Fpeertube.social%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-480.mp4&ws=https%3A%2F%2Fpeertube2.cpy.re%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-480.mp4&ws=https%3A%2F%2Fpeertube.iselfhost.com%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-480.mp4&ws=https%3A%2F%2Fpeertube.freeforge.eu%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-480.mp4&ws=https%3A%2F%2Fpeertube.krapace.fr%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-480.mp4&ws=https%3A%2F%2Fvideo.blueline.mg%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-480.mp4&ws=https%3A%2F%2Fpeertube.video%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-480.mp4&ws=https%3A%2F%2Ftube.crapaud-fou.org%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-480.mp4&ws=https%3A%2F%2Fflim.ml%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-480.mp4&ws=https%3A%2F%2Fpeertube.foxfam.club%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-480.mp4&ws=https%3A%2F%2Fpeertube.nomagic.uk%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-480.mp4",
|
||||
"height": 480
|
||||
},
|
||||
{
|
||||
"type": "Link",
|
||||
"mediaType": "video/mp4",
|
||||
"href": "https://framatube.org/static/webseed/9c9de5e8-0a1e-484a-b099-e80766180a6d-360.mp4",
|
||||
"height": 360,
|
||||
"size": 4524751,
|
||||
"fps": 24
|
||||
},
|
||||
{
|
||||
"type": "Link",
|
||||
"rel": ["metadata", "video/mp4"],
|
||||
"mediaType": "application/json",
|
||||
"href": "https://framatube.org/api/v1/videos/9c9de5e8-0a1e-484a-b099-e80766180a6d/metadata/10126",
|
||||
"height": 360,
|
||||
"fps": 24
|
||||
},
|
||||
{
|
||||
"type": "Link",
|
||||
"mediaType": "application/x-bittorrent",
|
||||
"href": "https://framatube.org/static/torrents/9c9de5e8-0a1e-484a-b099-e80766180a6d-360.torrent",
|
||||
"height": 360
|
||||
},
|
||||
{
|
||||
"type": "Link",
|
||||
"mediaType": "application/x-bittorrent;x-scheme-handler/magnet",
|
||||
"href": "magnet:?xs=https%3A%2F%2Fframatube.org%2Fstatic%2Ftorrents%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-360.torrent&xt=urn:btih:16b3720b18752523e2848341d3207120f2de26f8&dn=What+is+PeerTube%3F&tr=wss%3A%2F%2Fframatube.org%3A443%2Ftracker%2Fsocket&tr=https%3A%2F%2Fframatube.org%2Ftracker%2Fannounce&ws=https%3A%2F%2Fframatube.org%2Fstatic%2Fwebseed%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-360.mp4&ws=https%3A%2F%2Fvideo.antopie.org%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-360.mp4&ws=https%3A%2F%2Fpeertube.live%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-360.mp4&ws=https%3A%2F%2Ftube.privacytools.io%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-360.mp4&ws=https%3A%2F%2Fpeertube.social%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-360.mp4&ws=https%3A%2F%2Fpeertube.iselfhost.com%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-360.mp4&ws=https%3A%2F%2Fpeertube.freeforge.eu%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-360.mp4&ws=https%3A%2F%2Fpeertube.krapace.fr%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-360.mp4&ws=https%3A%2F%2Fpeertube2.cpy.re%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-360.mp4&ws=https%3A%2F%2Fvideo.blueline.mg%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-360.mp4&ws=https%3A%2F%2Fpeertube.video%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-360.mp4&ws=https%3A%2F%2Ftube.crapaud-fou.org%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-360.mp4&ws=https%3A%2F%2Fflim.ml%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-360.mp4&ws=https%3A%2F%2Fpeertube.foxfam.club%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-360.mp4&ws=https%3A%2F%2Fpeertube.nomagic.uk%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-360.mp4",
|
||||
"height": 360
|
||||
},
|
||||
{
|
||||
"type": "Link",
|
||||
"mediaType": "video/mp4",
|
||||
"href": "https://framatube.org/static/webseed/9c9de5e8-0a1e-484a-b099-e80766180a6d-240.mp4",
|
||||
"height": 240,
|
||||
"size": 3452697,
|
||||
"fps": 24
|
||||
},
|
||||
{
|
||||
"type": "Link",
|
||||
"rel": ["metadata", "video/mp4"],
|
||||
"mediaType": "application/json",
|
||||
"href": "https://framatube.org/api/v1/videos/9c9de5e8-0a1e-484a-b099-e80766180a6d/metadata/10128",
|
||||
"height": 240,
|
||||
"fps": 24
|
||||
},
|
||||
{
|
||||
"type": "Link",
|
||||
"mediaType": "application/x-bittorrent",
|
||||
"href": "https://framatube.org/static/torrents/9c9de5e8-0a1e-484a-b099-e80766180a6d-240.torrent",
|
||||
"height": 240
|
||||
},
|
||||
{
|
||||
"type": "Link",
|
||||
"mediaType": "application/x-bittorrent;x-scheme-handler/magnet",
|
||||
"href": "magnet:?xs=https%3A%2F%2Fframatube.org%2Fstatic%2Ftorrents%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-240.torrent&xt=urn:btih:38b4747ff788b30bf61f59d1965cd38f9e48e01f&dn=What+is+PeerTube%3F&tr=wss%3A%2F%2Fframatube.org%3A443%2Ftracker%2Fsocket&tr=https%3A%2F%2Fframatube.org%2Ftracker%2Fannounce&ws=https%3A%2F%2Fframatube.org%2Fstatic%2Fwebseed%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-240.mp4&ws=https%3A%2F%2Fvideo.antopie.org%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-240.mp4&ws=https%3A%2F%2Fpeertube.live%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-240.mp4&ws=https%3A%2F%2Ftube.privacytools.io%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-240.mp4&ws=https%3A%2F%2Fpeertube.social%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-240.mp4&ws=https%3A%2F%2Fpeertube.foxfam.club%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-240.mp4&ws=https%3A%2F%2Fpeertube2.cpy.re%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-240.mp4&ws=https%3A%2F%2Fpeertube.iselfhost.com%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-240.mp4&ws=https%3A%2F%2Fpeertube.freeforge.eu%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-240.mp4&ws=https%3A%2F%2Fpeertube.krapace.fr%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-240.mp4&ws=https%3A%2F%2Fvideo.blueline.mg%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-240.mp4&ws=https%3A%2F%2Fpeertube.video%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-240.mp4&ws=https%3A%2F%2Ftube.crapaud-fou.org%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-240.mp4&ws=https%3A%2F%2Fflim.ml%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-240.mp4&ws=https%3A%2F%2Fpeertube.nomagic.uk%2Fstatic%2Fredundancy%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-240.mp4",
|
||||
"height": 240
|
||||
}
|
||||
],
|
||||
"likes": "https://framatube.org/videos/watch/9c9de5e8-0a1e-484a-b099-e80766180a6d/likes",
|
||||
"dislikes": "https://framatube.org/videos/watch/9c9de5e8-0a1e-484a-b099-e80766180a6d/dislikes",
|
||||
"shares": "https://framatube.org/videos/watch/9c9de5e8-0a1e-484a-b099-e80766180a6d/announces",
|
||||
"comments": "https://framatube.org/videos/watch/9c9de5e8-0a1e-484a-b099-e80766180a6d/comments",
|
||||
"attributedTo": [
|
||||
{
|
||||
"type": "Person",
|
||||
"id": "https://framatube.org/accounts/framasoft"
|
||||
},
|
||||
{
|
||||
"type": "Group",
|
||||
"id": "https://framatube.org/video-channels/bf54d359-cfad-4935-9d45-9d6be93f63e8"
|
||||
}
|
||||
],
|
||||
"to": ["https://www.w3.org/ns/activitystreams#Public"],
|
||||
"cc": ["https://framatube.org/accounts/framasoft/followers"],
|
||||
"@context": [
|
||||
"https://www.w3.org/ns/activitystreams",
|
||||
"https://w3id.org/security/v1",
|
||||
{
|
||||
"RsaSignature2017": "https://w3id.org/security#RsaSignature2017"
|
||||
},
|
||||
{
|
||||
"pt": "https://joinpeertube.org/ns#",
|
||||
"sc": "http://schema.org#",
|
||||
"Hashtag": "as:Hashtag",
|
||||
"uuid": "sc:identifier",
|
||||
"category": "sc:category",
|
||||
"licence": "sc:license",
|
||||
"subtitleLanguage": "sc:subtitleLanguage",
|
||||
"sensitive": "as:sensitive",
|
||||
"language": "sc:inLanguage",
|
||||
"Infohash": "pt:Infohash",
|
||||
"Playlist": "pt:Playlist",
|
||||
"PlaylistElement": "pt:PlaylistElement",
|
||||
"originallyPublishedAt": "sc:datePublished",
|
||||
"views": {
|
||||
"@type": "sc:Number",
|
||||
"@id": "pt:views"
|
||||
},
|
||||
"state": {
|
||||
"@type": "sc:Number",
|
||||
"@id": "pt:state"
|
||||
},
|
||||
"size": {
|
||||
"@type": "sc:Number",
|
||||
"@id": "pt:size"
|
||||
},
|
||||
"fps": {
|
||||
"@type": "sc:Number",
|
||||
"@id": "pt:fps"
|
||||
},
|
||||
"startTimestamp": {
|
||||
"@type": "sc:Number",
|
||||
"@id": "pt:startTimestamp"
|
||||
},
|
||||
"stopTimestamp": {
|
||||
"@type": "sc:Number",
|
||||
"@id": "pt:stopTimestamp"
|
||||
},
|
||||
"position": {
|
||||
"@type": "sc:Number",
|
||||
"@id": "pt:position"
|
||||
},
|
||||
"commentsEnabled": {
|
||||
"@type": "sc:Boolean",
|
||||
"@id": "pt:commentsEnabled"
|
||||
},
|
||||
"downloadEnabled": {
|
||||
"@type": "sc:Boolean",
|
||||
"@id": "pt:downloadEnabled"
|
||||
},
|
||||
"waitTranscoding": {
|
||||
"@type": "sc:Boolean",
|
||||
"@id": "pt:waitTranscoding"
|
||||
},
|
||||
"support": {
|
||||
"@type": "sc:Text",
|
||||
"@id": "pt:support"
|
||||
},
|
||||
"likes": {
|
||||
"@id": "as:likes",
|
||||
"@type": "@id"
|
||||
},
|
||||
"dislikes": {
|
||||
"@id": "as:dislikes",
|
||||
"@type": "@id"
|
||||
},
|
||||
"playlists": {
|
||||
"@id": "pt:playlists",
|
||||
"@type": "@id"
|
||||
},
|
||||
"shares": {
|
||||
"@id": "as:shares",
|
||||
"@type": "@id"
|
||||
},
|
||||
"comments": {
|
||||
"@id": "as:comments",
|
||||
"@type": "@id"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
30
test/fixtures/pleroma-comment-object.json
vendored
Normal file
30
test/fixtures/pleroma-comment-object.json
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"@context": [
|
||||
"https://www.w3.org/ns/activitystreams",
|
||||
"https://blob.cat/schemas/litepub-0.1.jsonld",
|
||||
{
|
||||
"@language": "und"
|
||||
}
|
||||
],
|
||||
"actor": "https://blob.cat/users/comicbot",
|
||||
"attachment": [
|
||||
{
|
||||
"mediaType": "image/gif",
|
||||
"name": "1574936800141.gif",
|
||||
"type": "Document",
|
||||
"url": "https://blob.cat/media/143ba9b1ed15e67d7401906f7b71a459b90680af7075af5b8ac9cb8e3b86868a.gif"
|
||||
}
|
||||
],
|
||||
"attributedTo": "https://blob.cat/users/comicbot",
|
||||
"cc": ["https://blob.cat/users/comicbot/followers"],
|
||||
"content": "Super Mega Comics <br> <a href=\"http://supermegacomics.com/\" rel=\"ugc\">http://supermegacomics.com/</a>",
|
||||
"context": "https://blob.cat/contexts/26f3271a-3eb8-4f3f-8fb1-8ff96e2c4a47",
|
||||
"conversation": "https://blob.cat/contexts/26f3271a-3eb8-4f3f-8fb1-8ff96e2c4a47",
|
||||
"id": "https://blob.cat/objects/02fdea3d-932c-4348-9ecb-3f9eb3fbdd94",
|
||||
"published": "2019-11-28T10:26:42.503473Z",
|
||||
"sensitive": false,
|
||||
"summary": "",
|
||||
"tag": [],
|
||||
"to": ["https://www.w3.org/ns/activitystreams#Public"],
|
||||
"type": "Note"
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
[
|
||||
{
|
||||
"request": {
|
||||
"body": "",
|
||||
"headers": {
|
||||
"Accept": "*/*",
|
||||
"Accept-Encoding":"deflate, gzip"
|
||||
},
|
||||
"method": "get",
|
||||
"options": [],
|
||||
"request_body": "",
|
||||
"url": "https://api-adresse.data.gouv.fr/reverse/?lon=4.842569&lat=45.751718"
|
||||
},
|
||||
"response": {
|
||||
"binary": false,
|
||||
"body": "{\"type\": \"FeatureCollection\", \"version\": \"draft\", \"features\": [{\"type\": \"Feature\", \"geometry\": {\"type\": \"Point\", \"coordinates\": [4.842569, 45.751718]}, \"properties\": {\"label\": \"10 Rue Jangot 69007 Lyon\", \"score\": 0.9999999999926557, \"housenumber\": \"10\", \"id\": \"69387_3650_00010\", \"type\": \"housenumber\", \"x\": 843232.29, \"y\": 6518573.31, \"importance\": 0.5454797306366062, \"name\": \"10 Rue Jangot\", \"postcode\": \"69007\", \"citycode\": \"69387\", \"city\": \"Lyon\", \"district\": \"Lyon 7e Arrondissement\", \"context\": \"69, Rh\u00f4ne, Auvergne-Rh\u00f4ne-Alpes\", \"street\": \"Rue Jangot\", \"distance\": 0}}], \"attribution\": \"BAN\", \"licence\": \"ETALAB-2.0\", \"limit\": 1}",
|
||||
"headers": {
|
||||
"Server": "nginx/1.9.3",
|
||||
"Date": "Thu, 14 Mar 2019 10:46:45 GMT",
|
||||
"Content-type":"application/json; charset=utf-8",
|
||||
"Vary":"Accept-Encoding",
|
||||
"X-cache-status":"MISS",
|
||||
"Access-control-allow-origin":"*",
|
||||
"Access-control-allow-headers":"X-Requested-With,Content-Type",
|
||||
"Content-encoding":"gzip"
|
||||
},
|
||||
"status_code": 200,
|
||||
"type": "ok"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -1,31 +0,0 @@
|
||||
[
|
||||
{
|
||||
"request": {
|
||||
"body": "",
|
||||
"headers": {
|
||||
"Accept": "*/*",
|
||||
"Accept-Encoding":"deflate, gzip"
|
||||
},
|
||||
"method": "get",
|
||||
"options": [],
|
||||
"request_body": "",
|
||||
"url": "https://api-adresse.data.gouv.fr/search/?q=10%20Rue%20Jangot"
|
||||
},
|
||||
"response": {
|
||||
"binary": false,
|
||||
"body": "{\"type\": \"FeatureCollection\", \"version\": \"draft\", \"features\": [{\"type\": \"Feature\", \"geometry\": {\"type\": \"Point\", \"coordinates\": [4.842569, 45.751718]}, \"properties\": {\"label\": \"10 Rue Jangot 69007 Lyon\", \"score\": 0.8677708846033279, \"housenumber\": \"10\", \"id\": \"69387_3650_00010\", \"type\": \"housenumber\", \"x\": 843232.29, \"y\": 6518573.31, \"importance\": 0.5454797306366062, \"name\": \"10 Rue Jangot\", \"postcode\": \"69007\", \"citycode\": \"69387\", \"city\": \"Lyon\", \"district\": \"Lyon 7e Arrondissement\", \"context\": \"69, Rh\u00f4ne, Auvergne-Rh\u00f4ne-Alpes\", \"street\": \"Rue Jangot\"}}, {\"type\": \"Feature\", \"geometry\": {\"type\": \"Point\", \"coordinates\": [2.440319, 50.371266]}, \"properties\": {\"label\": \"Rue Jangon 62127 Bailleul-aux-Cornailles\", \"score\": 0.5269641371131077, \"id\": \"62070_0100\", \"type\": \"street\", \"x\": 660129.18, \"y\": 7030540.46, \"importance\": 0.25814396978264664, \"name\": \"Rue Jangon\", \"postcode\": \"62127\", \"citycode\": \"62070\", \"city\": \"Bailleul-aux-Cornailles\", \"context\": \"62, Pas-de-Calais, Hauts-de-France\"}}], \"attribution\": \"BAN\", \"licence\": \"ETALAB-2.0\", \"query\": \"10 Rue Jangot\", \"limit\": 5}",
|
||||
"headers": {
|
||||
"Server":"nginx/1.10.3",
|
||||
"Date":"Thu, 25 Jun 2020 11:23:54 GMT",
|
||||
"Content-type":"application/json; charset=utf-8",
|
||||
"Vary":"Accept-Encoding",
|
||||
"X-cache-status":"MISS",
|
||||
"Access-control-allow-origin":"*",
|
||||
"Access-control-allow-headers":"X-Requested-With,Content-Type",
|
||||
"Content-encoding":"gzip"
|
||||
},
|
||||
"status_code": 200,
|
||||
"type": "ok"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -1,63 +0,0 @@
|
||||
[
|
||||
{
|
||||
"request": {
|
||||
"body": "",
|
||||
"headers": [],
|
||||
"method": "get",
|
||||
"options": [],
|
||||
"request_body": "",
|
||||
"url": "https://maps.googleapis.com/maps/api/place/details/json?key=toto&placeid=ChIJrW0QikTq9EcR96jk2OnO75w"
|
||||
},
|
||||
"response": {
|
||||
"binary": false,
|
||||
"body": "{\n \"html_attributions\" : [],\n \"result\" : {\n \"address_components\" : [\n {\n \"long_name\" : \"10bis\",\n \"short_name\" : \"10bis\",\n \"types\" : [ \"street_number\" ]\n },\n {\n \"long_name\" : \"Rue Jangot\",\n \"short_name\" : \"Rue Jangot\",\n \"types\" : [ \"route\" ]\n },\n {\n \"long_name\" : \"Lyon\",\n \"short_name\" : \"Lyon\",\n \"types\" : [ \"locality\", \"political\" ]\n },\n {\n \"long_name\" : \"Rhône\",\n \"short_name\" : \"Rhône\",\n \"types\" : [ \"administrative_area_level_2\", \"political\" ]\n },\n {\n \"long_name\" : \"Auvergne-Rhône-Alpes\",\n \"short_name\" : \"Auvergne-Rhône-Alpes\",\n \"types\" : [ \"administrative_area_level_1\", \"political\" ]\n },\n {\n \"long_name\" : \"France\",\n \"short_name\" : \"FR\",\n \"types\" : [ \"country\", \"political\" ]\n },\n {\n \"long_name\" : \"69007\",\n \"short_name\" : \"69007\",\n \"types\" : [ \"postal_code\" ]\n }\n ],\n \"adr_address\" : \"\\u003cspan class=\\\"street-address\\\"\\u003e10bis Rue Jangot\\u003c/span\\u003e, \\u003cspan class=\\\"postal-code\\\"\\u003e69007\\u003c/span\\u003e \\u003cspan class=\\\"locality\\\"\\u003eLyon\\u003c/span\\u003e, \\u003cspan class=\\\"country-name\\\"\\u003eFrance\\u003c/span\\u003e\",\n \"formatted_address\" : \"10bis Rue Jangot, 69007 Lyon, France\",\n \"geometry\" : {\n \"location\" : {\n \"lat\" : 45.751725,\n \"lng\" : 4.8424966\n },\n \"viewport\" : {\n \"northeast\" : {\n \"lat\" : 45.7531097802915,\n \"lng\" : 4.843951380291502\n },\n \"southwest\" : {\n \"lat\" : 45.7504118197085,\n \"lng\" : 4.841253419708497\n }\n }\n },\n \"icon\" : \"https://maps.gstatic.com/mapfiles/place_api/icons/geocode-71.png\",\n \"id\" : \"4a3482a7a74c6203048adf713b736186c4ace7cd\",\n \"name\" : \"10bis Rue Jangot\",\n \"place_id\" : \"ChIJrW0QikTq9EcR96jk2OnO75w\",\n \"plus_code\" : {\n \"compound_code\" : \"QR2R+MX Lyon, France\",\n \"global_code\" : \"8FQ6QR2R+MX\"\n },\n \"reference\" : \"ChIJrW0QikTq9EcR96jk2OnO75w\",\n \"scope\" : \"GOOGLE\",\n \"types\" : [ \"street_address\" ],\n \"url\" : \"https://maps.google.com/?q=10bis+Rue+Jangot,+69007+Lyon,+France&ftid=0x47f4ea448a106dad:0x9cefcee9d8e4a8f7\",\n \"utc_offset\" : 120,\n \"vicinity\" : \"Lyon\"\n },\n \"status\" : \"OK\"\n}\n",
|
||||
"headers": {
|
||||
"Content-Type": "application/json; charset=UTF-8",
|
||||
"Date": "Thu, 22 Aug 2019 13:18:50 GMT",
|
||||
"Expires": "Thu, 22 Aug 2019 13:23:50 GMT",
|
||||
"Cache-Control": "public, max-age=300",
|
||||
"Server": "scaffolding on HTTPServer2",
|
||||
"X-XSS-Protection": "0",
|
||||
"X-Frame-Options": "SAMEORIGIN",
|
||||
"Server-Timing": "gfet4t7; dur=87",
|
||||
"Alt-Svc": "quic=\":443\"; ma=2592000; v=\"46,43,39\"",
|
||||
"Accept-Ranges": "none",
|
||||
"Vary": "Accept-Language,Accept-Encoding",
|
||||
"Transfer-Encoding": "chunked"
|
||||
},
|
||||
"status_code": 200,
|
||||
"type": "ok"
|
||||
}
|
||||
},
|
||||
{
|
||||
"request": {
|
||||
"body": "",
|
||||
"headers": [],
|
||||
"method": "get",
|
||||
"options": [],
|
||||
"request_body": "",
|
||||
"url": "https://maps.googleapis.com/maps/api/geocode/json?limit=10&key=toto&language=en&latlng=45.751718,4.842569&result_type=street_address"
|
||||
},
|
||||
"response": {
|
||||
"binary": false,
|
||||
"body": "{\n \"plus_code\" : {\n \"compound_code\" : \"QR2V+M2 Lyon, France\",\n \"global_code\" : \"8FQ6QR2V+M2\"\n },\n \"results\" : [\n {\n \"address_components\" : [\n {\n \"long_name\" : \"10bis\",\n \"short_name\" : \"10bis\",\n \"types\" : [ \"street_number\" ]\n },\n {\n \"long_name\" : \"Rue Jangot\",\n \"short_name\" : \"Rue Jangot\",\n \"types\" : [ \"route\" ]\n },\n {\n \"long_name\" : \"Lyon\",\n \"short_name\" : \"Lyon\",\n \"types\" : [ \"locality\", \"political\" ]\n },\n {\n \"long_name\" : \"Rhône\",\n \"short_name\" : \"Rhône\",\n \"types\" : [ \"administrative_area_level_2\", \"political\" ]\n },\n {\n \"long_name\" : \"Auvergne-Rhône-Alpes\",\n \"short_name\" : \"Auvergne-Rhône-Alpes\",\n \"types\" : [ \"administrative_area_level_1\", \"political\" ]\n },\n {\n \"long_name\" : \"France\",\n \"short_name\" : \"FR\",\n \"types\" : [ \"country\", \"political\" ]\n },\n {\n \"long_name\" : \"69007\",\n \"short_name\" : \"69007\",\n \"types\" : [ \"postal_code\" ]\n }\n ],\n \"formatted_address\" : \"10bis Rue Jangot, 69007 Lyon, France\",\n \"geometry\" : {\n \"location\" : {\n \"lat\" : 45.751725,\n \"lng\" : 4.8424966\n },\n \"location_type\" : \"ROOFTOP\",\n \"viewport\" : {\n \"northeast\" : {\n \"lat\" : 45.7530739802915,\n \"lng\" : 4.843845580291503\n },\n \"southwest\" : {\n \"lat\" : 45.7503760197085,\n \"lng\" : 4.841147619708499\n }\n }\n },\n \"place_id\" : \"ChIJrW0QikTq9EcR96jk2OnO75w\",\n \"plus_code\" : {\n \"compound_code\" : \"QR2R+MX Lyon, France\",\n \"global_code\" : \"8FQ6QR2R+MX\"\n },\n \"types\" : [ \"street_address\" ]\n },\n {\n \"address_components\" : [\n {\n \"long_name\" : \"9\",\n \"short_name\" : \"9\",\n \"types\" : [ \"street_number\" ]\n },\n {\n \"long_name\" : \"Rue Jangot\",\n \"short_name\" : \"Rue Jangot\",\n \"types\" : [ \"route\" ]\n },\n {\n \"long_name\" : \"Lyon\",\n \"short_name\" : \"Lyon\",\n \"types\" : [ \"locality\", \"political\" ]\n },\n {\n \"long_name\" : \"Rhône\",\n \"short_name\" : \"Rhône\",\n \"types\" : [ \"administrative_area_level_2\", \"political\" ]\n },\n {\n \"long_name\" : \"Auvergne-Rhône-Alpes\",\n \"short_name\" : \"Auvergne-Rhône-Alpes\",\n \"types\" : [ \"administrative_area_level_1\", \"political\" ]\n },\n {\n \"long_name\" : \"France\",\n \"short_name\" : \"FR\",\n \"types\" : [ \"country\", \"political\" ]\n },\n {\n \"long_name\" : \"69007\",\n \"short_name\" : \"69007\",\n \"types\" : [ \"postal_code\" ]\n }\n ],\n \"formatted_address\" : \"9 Rue Jangot, 69007 Lyon, France\",\n \"geometry\" : {\n \"location\" : {\n \"lat\" : 45.7518165,\n \"lng\" : 4.8427168\n },\n \"location_type\" : \"RANGE_INTERPOLATED\",\n \"viewport\" : {\n \"northeast\" : {\n \"lat\" : 45.7531654802915,\n \"lng\" : 4.844065780291502\n },\n \"southwest\" : {\n \"lat\" : 45.7504675197085,\n \"lng\" : 4.841367819708497\n }\n }\n },\n \"place_id\" : \"EiA5IFJ1ZSBKYW5nb3QsIDY5MDA3IEx5b24sIEZyYW5jZSIaEhgKFAoSCR8N2ItE6vRHEW9tyPnhQsUIEAk\",\n \"types\" : [ \"street_address\" ]\n }\n ],\n \"status\" : \"OK\"\n}\n",
|
||||
"headers": {
|
||||
"Content-Type": "application/json; charset=UTF-8",
|
||||
"Date": "Thu, 22 Aug 2019 13:18:50 GMT",
|
||||
"Expires": "Thu, 22 Aug 2019 13:19:20 GMT",
|
||||
"Cache-Control": "public, max-age=30",
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"Server": "mafe",
|
||||
"X-XSS-Protection": "0",
|
||||
"X-Frame-Options": "SAMEORIGIN",
|
||||
"Server-Timing": "gfet4t7; dur=30",
|
||||
"Alt-Svc": "quic=\":443\"; ma=2592000; v=\"46,43,39\"",
|
||||
"Accept-Ranges": "none",
|
||||
"Vary": "Accept-Encoding",
|
||||
"Transfer-Encoding": "chunked"
|
||||
},
|
||||
"status_code": 200,
|
||||
"type": "ok"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -1,63 +0,0 @@
|
||||
[
|
||||
{
|
||||
"request": {
|
||||
"body": "",
|
||||
"headers": [],
|
||||
"method": "get",
|
||||
"options": [],
|
||||
"request_body": "",
|
||||
"url": "https://maps.googleapis.com/maps/api/geocode/json?limit=10&key=toto&language=en&address=10%20rue%20Jangot"
|
||||
},
|
||||
"response": {
|
||||
"binary": false,
|
||||
"body": "{\n \"results\" : [\n {\n \"address_components\" : [\n {\n \"long_name\" : \"10\",\n \"short_name\" : \"10\",\n \"types\" : [ \"street_number\" ]\n },\n {\n \"long_name\" : \"Rue Jangot\",\n \"short_name\" : \"Rue Jangot\",\n \"types\" : [ \"route\" ]\n },\n {\n \"long_name\" : \"Lyon\",\n \"short_name\" : \"Lyon\",\n \"types\" : [ \"locality\", \"political\" ]\n },\n {\n \"long_name\" : \"Rhône\",\n \"short_name\" : \"Rhône\",\n \"types\" : [ \"administrative_area_level_2\", \"political\" ]\n },\n {\n \"long_name\" : \"Auvergne-Rhône-Alpes\",\n \"short_name\" : \"Auvergne-Rhône-Alpes\",\n \"types\" : [ \"administrative_area_level_1\", \"political\" ]\n },\n {\n \"long_name\" : \"France\",\n \"short_name\" : \"FR\",\n \"types\" : [ \"country\", \"political\" ]\n },\n {\n \"long_name\" : \"69007\",\n \"short_name\" : \"69007\",\n \"types\" : [ \"postal_code\" ]\n }\n ],\n \"formatted_address\" : \"10 Rue Jangot, 69007 Lyon, France\",\n \"geometry\" : {\n \"location\" : {\n \"lat\" : 45.75164940000001,\n \"lng\" : 4.8424032\n },\n \"location_type\" : \"ROOFTOP\",\n \"viewport\" : {\n \"northeast\" : {\n \"lat\" : 45.75299838029151,\n \"lng\" : 4.843752180291502\n },\n \"southwest\" : {\n \"lat\" : 45.75030041970851,\n \"lng\" : 4.841054219708497\n }\n }\n },\n \"place_id\" : \"ChIJtW0QikTq9EcRLI4Vy6bRx0U\",\n \"plus_code\" : {\n \"compound_code\" : \"QR2R+MX Lyon, France\",\n \"global_code\" : \"8FQ6QR2R+MX\"\n },\n \"types\" : [ \"street_address\" ]\n }\n ],\n \"status\" : \"OK\"\n}\n",
|
||||
"headers": {
|
||||
"Content-Type": "application/json; charset=UTF-8",
|
||||
"Date": "Thu, 22 Aug 2019 13:05:39 GMT",
|
||||
"Expires": "Thu, 22 Aug 2019 13:06:09 GMT",
|
||||
"Cache-Control": "public, max-age=30",
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"Server": "mafe",
|
||||
"X-XSS-Protection": "0",
|
||||
"X-Frame-Options": "SAMEORIGIN",
|
||||
"Server-Timing": "gfet4t7; dur=44",
|
||||
"Alt-Svc": "quic=\":443\"; ma=2592000; v=\"46,43,39\"",
|
||||
"Accept-Ranges": "none",
|
||||
"Vary": "Accept-Encoding",
|
||||
"Transfer-Encoding": "chunked"
|
||||
},
|
||||
"status_code": 200,
|
||||
"type": "ok"
|
||||
}
|
||||
},
|
||||
{
|
||||
"request": {
|
||||
"body": "",
|
||||
"headers": [],
|
||||
"method": "get",
|
||||
"options": [],
|
||||
"request_body": "",
|
||||
"url": "https://maps.googleapis.com/maps/api/place/details/json?key=toto&placeid=ChIJtW0QikTq9EcRLI4Vy6bRx0U"
|
||||
},
|
||||
"response": {
|
||||
"binary": false,
|
||||
"body": "{\n \"html_attributions\" : [],\n \"result\" : {\n \"address_components\" : [\n {\n \"long_name\" : \"10\",\n \"short_name\" : \"10\",\n \"types\" : [ \"street_number\" ]\n },\n {\n \"long_name\" : \"Rue Jangot\",\n \"short_name\" : \"Rue Jangot\",\n \"types\" : [ \"route\" ]\n },\n {\n \"long_name\" : \"Lyon\",\n \"short_name\" : \"Lyon\",\n \"types\" : [ \"locality\", \"political\" ]\n },\n {\n \"long_name\" : \"Rhône\",\n \"short_name\" : \"Rhône\",\n \"types\" : [ \"administrative_area_level_2\", \"political\" ]\n },\n {\n \"long_name\" : \"Auvergne-Rhône-Alpes\",\n \"short_name\" : \"Auvergne-Rhône-Alpes\",\n \"types\" : [ \"administrative_area_level_1\", \"political\" ]\n },\n {\n \"long_name\" : \"France\",\n \"short_name\" : \"FR\",\n \"types\" : [ \"country\", \"political\" ]\n },\n {\n \"long_name\" : \"69007\",\n \"short_name\" : \"69007\",\n \"types\" : [ \"postal_code\" ]\n }\n ],\n \"adr_address\" : \"\\u003cspan class=\\\"street-address\\\"\\u003e10 Rue Jangot\\u003c/span\\u003e, \\u003cspan class=\\\"postal-code\\\"\\u003e69007\\u003c/span\\u003e \\u003cspan class=\\\"locality\\\"\\u003eLyon\\u003c/span\\u003e, \\u003cspan class=\\\"country-name\\\"\\u003eFrance\\u003c/span\\u003e\",\n \"formatted_address\" : \"10 Rue Jangot, 69007 Lyon, France\",\n \"geometry\" : {\n \"location\" : {\n \"lat\" : 45.75164940000001,\n \"lng\" : 4.842403200000001\n },\n \"viewport\" : {\n \"northeast\" : {\n \"lat\" : 45.7530412802915,\n \"lng\" : 4.843668630291503\n },\n \"southwest\" : {\n \"lat\" : 45.75034331970851,\n \"lng\" : 4.840970669708498\n }\n }\n },\n \"icon\" : \"https://maps.gstatic.com/mapfiles/place_api/icons/geocode-71.png\",\n \"id\" : \"61b9418d092d2ed05ddd65a55dddefda5b9628cc\",\n \"name\" : \"10 Rue Jangot\",\n \"place_id\" : \"ChIJtW0QikTq9EcRLI4Vy6bRx0U\",\n \"plus_code\" : {\n \"compound_code\" : \"QR2R+MX Lyon, France\",\n \"global_code\" : \"8FQ6QR2R+MX\"\n },\n \"reference\" : \"ChIJtW0QikTq9EcRLI4Vy6bRx0U\",\n \"scope\" : \"GOOGLE\",\n \"types\" : [ \"street_address\" ],\n \"url\" : \"https://maps.google.com/?q=10+Rue+Jangot,+69007+Lyon,+France&ftid=0x47f4ea448a106db5:0x45c7d1a6cb158e2c\",\n \"utc_offset\" : 120,\n \"vicinity\" : \"Lyon\"\n },\n \"status\" : \"OK\"\n}\n",
|
||||
"headers": {
|
||||
"Content-Type": "application/json; charset=UTF-8",
|
||||
"Date": "Thu, 22 Aug 2019 13:05:39 GMT",
|
||||
"Expires": "Thu, 22 Aug 2019 13:10:39 GMT",
|
||||
"Cache-Control": "public, max-age=300",
|
||||
"Server": "scaffolding on HTTPServer2",
|
||||
"X-XSS-Protection": "0",
|
||||
"X-Frame-Options": "SAMEORIGIN",
|
||||
"Server-Timing": "gfet4t7; dur=86",
|
||||
"Alt-Svc": "quic=\":443\"; ma=2592000; v=\"46,43,39\"",
|
||||
"Accept-Ranges": "none",
|
||||
"Vary": "Accept-Language,Accept-Encoding",
|
||||
"Transfer-Encoding": "chunked"
|
||||
},
|
||||
"status_code": 200,
|
||||
"type": "ok"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -1,36 +0,0 @@
|
||||
[
|
||||
{
|
||||
"request": {
|
||||
"body": "",
|
||||
"headers": [],
|
||||
"method": "get",
|
||||
"options": [],
|
||||
"request_body": "",
|
||||
"url": "https://open.mapquestapi.com/geocoding/v1/reverse?key=secret_key&location=45.751718,4.842569&maxResults=10"
|
||||
},
|
||||
"response": {
|
||||
"binary": false,
|
||||
"body": "{\"info\":{\"statuscode\":0,\"copyright\":{\"text\":\"\\u00A9 2019 MapQuest, Inc.\",\"imageUrl\":\"http://api.mqcdn.com/res/mqlogo.gif\",\"imageAltText\":\"\\u00A9 2019 MapQuest, Inc.\"},\"messages\":[]},\"options\":{\"maxResults\":1,\"thumbMaps\":true,\"ignoreLatLngInput\":false},\"results\":[{\"providedLocation\":{\"latLng\":{\"lat\":45.751718,\"lng\":4.842569}},\"locations\":[{\"street\":\"10 Rue Jangot\",\"adminArea6\":\"\",\"adminArea6Type\":\"Neighborhood\",\"adminArea5\":\"Lyon\",\"adminArea5Type\":\"City\",\"adminArea4\":\"\",\"adminArea4Type\":\"County\",\"adminArea3\":\"Auvergne-Rh\\u00F4ne-Alpes\",\"adminArea3Type\":\"State\",\"adminArea1\":\"FR\",\"adminArea1Type\":\"Country\",\"postalCode\":\"69007\",\"geocodeQualityCode\":\"P1AAA\",\"geocodeQuality\":\"POINT\",\"dragPoint\":false,\"sideOfStreet\":\"N\",\"linkId\":\"0\",\"unknownInput\":\"\",\"type\":\"s\",\"latLng\":{\"lat\":45.751714,\"lng\":4.842566},\"displayLatLng\":{\"lat\":45.751714,\"lng\":4.842566},\"mapUrl\":\"http://open.mapquestapi.com/staticmap/v5/map?key=secret_key&type=map&size=225,160&locations=45.7517141,4.8425657|marker-sm-50318A-1&scalebar=true&zoom=15&rand=-570915433\"}]}]}",
|
||||
"headers": {
|
||||
"Access-Control-Allow-Methods": "OPTIONS,GET,POST",
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"Cache-Control": "no-cache, must-revalidate",
|
||||
"Content-Type": "application/json;charset=UTF-8",
|
||||
"Date": "Thu, 14 Mar 2019 09:27:01 GMT",
|
||||
"Expires": "Mon, 20 Dec 1998 01:00:00 GMT",
|
||||
"GeocodeTransactionCount": "0",
|
||||
"Last-Modified": "Thu, 14 Mar 2019 09:27:01 GMT",
|
||||
"Pragma": "no-cache",
|
||||
"ReverseGeocodeTransactionCount": "1",
|
||||
"Server": "Apache-Coyote/1.1",
|
||||
"Set-Cookie": "JSESSIONID=something; Path=/; HttpOnly",
|
||||
"status": "success",
|
||||
"transactionWeight": "1.0",
|
||||
"Content-Length": "1063",
|
||||
"Connection": "keep-alive"
|
||||
},
|
||||
"status_code": 200,
|
||||
"type": "ok"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -1,36 +0,0 @@
|
||||
[
|
||||
{
|
||||
"request": {
|
||||
"body": "",
|
||||
"headers": [],
|
||||
"method": "get",
|
||||
"options": [],
|
||||
"request_body": "",
|
||||
"url": "https://open.mapquestapi.com/geocoding/v1/address?key=secret_key&location=10%20rue%20Jangot&maxResults=10"
|
||||
},
|
||||
"response": {
|
||||
"binary": false,
|
||||
"body": "{\"info\":{\"statuscode\":0,\"copyright\":{\"text\":\"\\u00A9 2019 MapQuest, Inc.\",\"imageUrl\":\"http://api.mqcdn.com/res/mqlogo.gif\",\"imageAltText\":\"\\u00A9 2019 MapQuest, Inc.\"},\"messages\":[]},\"options\":{\"maxResults\":10,\"thumbMaps\":true,\"ignoreLatLngInput\":false},\"results\":[{\"providedLocation\":{\"location\":\"10 rue Jangot\"},\"locations\":[{\"street\":\"10 Rue Jangot\",\"adminArea6\":\"7e\",\"adminArea6Type\":\"Neighborhood\",\"adminArea5\":\"Lyon\",\"adminArea5Type\":\"City\",\"adminArea4\":\"Lyon\",\"adminArea4Type\":\"County\",\"adminArea3\":\"Auvergne-Rh\\u00F4ne-Alpes\",\"adminArea3Type\":\"State\",\"adminArea1\":\"FR\",\"adminArea1Type\":\"Country\",\"postalCode\":\"69007\",\"geocodeQualityCode\":\"P1AXX\",\"geocodeQuality\":\"POINT\",\"dragPoint\":false,\"sideOfStreet\":\"N\",\"linkId\":\"0\",\"unknownInput\":\"\",\"type\":\"s\",\"latLng\":{\"lat\":45.751714,\"lng\":4.842566},\"displayLatLng\":{\"lat\":45.751714,\"lng\":4.842566},\"mapUrl\":\"http://open.mapquestapi.com/staticmap/v5/map?key=secret_key&type=map&size=225,160&locations=45.7517141,4.8425657|marker-sm-50318A-1&scalebar=true&zoom=15&rand=1358091752\"}]}]}",
|
||||
"headers": {
|
||||
"Access-Control-Allow-Methods": "OPTIONS,GET,POST",
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"Cache-Control": "no-cache, must-revalidate",
|
||||
"Content-Type": "application/json;charset=UTF-8",
|
||||
"Date": "Thu, 14 Mar 2019 09:27:01 GMT",
|
||||
"Expires": "Mon, 20 Dec 1998 01:00:00 GMT",
|
||||
"GeocodeTransactionCount": "1",
|
||||
"Last-Modified": "Thu, 14 Mar 2019 09:27:01 GMT",
|
||||
"Pragma": "no-cache",
|
||||
"ReverseGeocodeTransactionCount": "0",
|
||||
"Server": "Apache-Coyote/1.1",
|
||||
"Set-Cookie": "JSESSIONID=something; Path=/; HttpOnly",
|
||||
"status": "success",
|
||||
"transactionWeight": "1.0",
|
||||
"Content-Length": "1055",
|
||||
"Connection": "keep-alive"
|
||||
},
|
||||
"status_code": 200,
|
||||
"type": "ok"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -1,32 +0,0 @@
|
||||
[
|
||||
{
|
||||
"request": {
|
||||
"body": "",
|
||||
"headers": {
|
||||
"User-Agent": "Test instance mobilizon.test - Mobilizon 1.0.0-beta.1"
|
||||
},
|
||||
"method": "get",
|
||||
"options": [],
|
||||
"request_body": "",
|
||||
"url": "https://nominatim.openstreetmap.org/reverse?format=geocodejson&lat=45.751718&lon=4.842569&accept-language=en&addressdetails=1&namedetails=1"
|
||||
},
|
||||
"response": {
|
||||
"binary": false,
|
||||
"body": "{\"type\":\"FeatureCollection\",\"geocoding\":{\"version\":\"0.1.0\",\"attribution\":\"Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright\",\"licence\":\"ODbL\",\"query\":\"45.751718,4.842569\"},\"features\":[{\"type\":\"Feature\",\"properties\":{\"geocoding\":{\"place_id\":41453794,\"osm_type\":\"node\",\"osm_id\":3078260611,\"type\":\"house\",\"accuracy\":0,\"label\":\"10, Rue Jangot, La Guillotière, Lyon 7e Arrondissement, Lyon, Métropole de Lyon, Departemental constituency of Rhône, Auvergne-Rhône-Alpes, Metropolitan France, 69007, France\",\"name\":null,\"housenumber\":\"10\",\"street\":\"Rue Jangot\",\"postcode\":\"69007\",\"city\":\"Lyon\",\"county\":\"Lyon\",\"state\":\"Auvergne-Rhône-Alpes\",\"country\":\"France\",\"admin\":{\"level2\":\"France\",\"level3\":\"Metropolitan France\",\"level4\":\"Auvergne-Rhône-Alpes\",\"level5\":\"Departemental constituency of Rhône\",\"level6\":\"Métropole de Lyon\",\"level7\":\"Lyon\",\"level8\":\"Lyon\",\"level9\":\"Lyon 7e Arrondissement\"}}},\"geometry\":{\"type\":\"Point\",\"coordinates\":[4.8425657,45.7517141]}}]}",
|
||||
"headers": {
|
||||
"Date": "Tue, 12 Nov 2019 12:21:45 GMT",
|
||||
"Server": "Apache/2.4.29 (Ubuntu)",
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"Access-Control-Allow-Methods": "OPTIONS,GET",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
|
||||
"Expect-CT": "max-age=0, report-uri=\"https://openstreetmap.report-uri.com/r/d/ct/reportOnly\"",
|
||||
"Upgrade": "h2",
|
||||
"Connection": "Upgrade, close",
|
||||
"Transfer-Encoding": "chunked",
|
||||
"Content-Type": "application/json; charset=UTF-8"
|
||||
},
|
||||
"status_code": 200,
|
||||
"type": "ok"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -1,32 +0,0 @@
|
||||
[
|
||||
{
|
||||
"request": {
|
||||
"body": "",
|
||||
"headers": {
|
||||
"User-Agent": "Test instance mobilizon.test - Mobilizon 1.0.0-beta.1"
|
||||
},
|
||||
"method": "get",
|
||||
"options": [],
|
||||
"request_body": "",
|
||||
"url": "https://nominatim.openstreetmap.org/search?format=geocodejson&q=10%20rue%20Jangot&limit=10&accept-language=en&addressdetails=1&namedetails=1"
|
||||
},
|
||||
"response": {
|
||||
"binary": false,
|
||||
"body": "{\"type\":\"FeatureCollection\",\"geocoding\":{\"version\":\"0.1.0\",\"attribution\":\"Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright\",\"licence\":\"ODbL\",\"query\":\"10 rue Jangot\"},\"features\":[{\"type\":\"Feature\",\"properties\":{\"geocoding\":{\"place_id\":41453794,\"osm_type\":\"node\",\"osm_id\":3078260611,\"type\":\"house\",\"label\":\"10, Rue Jangot, La Guillotière, Lyon 7e Arrondissement, Lyon, Métropole de Lyon, Departemental constituency of Rhône, Auvergne-Rhône-Alpes, Metropolitan France, 69007, France\",\"name\":null,\"housenumber\":\"10\",\"street\":\"Rue Jangot\",\"postcode\":\"69007\",\"city\":\"Lyon\",\"county\":\"Lyon\",\"state\":\"Auvergne-Rhône-Alpes\",\"country\":\"France\",\"admin\":{\"level2\":\"France\",\"level3\":\"Metropolitan France\",\"level4\":\"Auvergne-Rhône-Alpes\",\"level5\":\"Departemental constituency of Rhône\",\"level6\":\"Métropole de Lyon\",\"level7\":\"Lyon\",\"level8\":\"Lyon\",\"level9\":\"Lyon 7e Arrondissement\"}}},\"geometry\":{\"type\":\"Point\",\"coordinates\":[4.8425657,45.7517141]}}]}",
|
||||
"headers": {
|
||||
"Date": "Tue, 12 Nov 2019 12:21:46 GMT",
|
||||
"Server": "Apache/2.4.29 (Ubuntu)",
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"Access-Control-Allow-Methods": "OPTIONS,GET",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
|
||||
"Expect-CT": "max-age=0, report-uri=\"https://openstreetmap.report-uri.com/r/d/ct/reportOnly\"",
|
||||
"Upgrade": "h2",
|
||||
"Connection": "Upgrade, close",
|
||||
"Transfer-Encoding": "chunked",
|
||||
"Content-Type": "application/json; charset=UTF-8"
|
||||
},
|
||||
"status_code": 200,
|
||||
"type": "ok"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -1,26 +0,0 @@
|
||||
[
|
||||
{
|
||||
"request": {
|
||||
"body": "",
|
||||
"headers": [],
|
||||
"method": "get",
|
||||
"options": [],
|
||||
"request_body": "",
|
||||
"url": "https://photon.komoot.de/reverse?lon=4.842569&lat=45.751718"
|
||||
},
|
||||
"response": {
|
||||
"binary": false,
|
||||
"body": "{\"features\":[{\"geometry\":{\"coordinates\":[4.8416864,45.7605435],\"type\":\"Point\"},\"type\":\"Feature\",\"properties\":{\"osm_id\":4662865602,\"osm_type\":\"N\",\"country\":\"France\",\"osm_key\":\"leisure\",\"city\":\"Lyon\",\"street\":\"Rue Pravaz\",\"osm_value\":\"fitness_centre\",\"postcode\":\"69003\",\"name\":\"L'appart Fitness\",\"state\":\"Auvergne-Rhône-Alpes\"}}],\"type\":\"FeatureCollection\"}",
|
||||
"headers": {
|
||||
"Server": "nginx/1.9.3 (Ubuntu)",
|
||||
"Date": "Thu, 14 Mar 2019 10:46:45 GMT",
|
||||
"Content-Type": "application/json;charset=utf-8",
|
||||
"Transfer-Encoding": "chunked",
|
||||
"Connection": "keep-alive",
|
||||
"Access-Control-Allow-Origin": "*"
|
||||
},
|
||||
"status_code": 200,
|
||||
"type": "ok"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -1,26 +0,0 @@
|
||||
[
|
||||
{
|
||||
"request": {
|
||||
"body": "",
|
||||
"headers": [],
|
||||
"method": "get",
|
||||
"options": [],
|
||||
"request_body": "",
|
||||
"url": "https://photon.komoot.de/api/?q=10%20rue%20Jangot&lang=en&limit=10"
|
||||
},
|
||||
"response": {
|
||||
"binary": false,
|
||||
"body": "{\"features\":[{\"geometry\":{\"coordinates\":[4.8425657,45.7517141],\"type\":\"Point\"},\"type\":\"Feature\",\"properties\":{\"osm_id\":3078260611,\"osm_type\":\"N\",\"country\":\"France\",\"osm_key\":\"place\",\"housenumber\":\"10\",\"city\":\"Lyon\",\"street\":\"Rue Jangot\",\"osm_value\":\"house\",\"postcode\":\"69007\",\"state\":\"Auvergne-Rhône-Alpes\"}},{\"geometry\":{\"coordinates\":[4.8424254,45.7517056],\"type\":\"Point\"},\"type\":\"Feature\",\"properties\":{\"osm_id\":3078260612,\"osm_type\":\"N\",\"country\":\"France\",\"osm_key\":\"place\",\"housenumber\":\"10bis\",\"city\":\"Lyon\",\"street\":\"Rue Jangot\",\"osm_value\":\"house\",\"postcode\":\"69007\",\"state\":\"Auvergne-Rhône-Alpes\"}}],\"type\":\"FeatureCollection\"}",
|
||||
"headers": {
|
||||
"Server": "nginx/1.9.3 (Ubuntu)",
|
||||
"Date": "Thu, 14 Mar 2019 10:46:43 GMT",
|
||||
"Content-Type": "application/json;charset=utf-8",
|
||||
"Transfer-Encoding": "chunked",
|
||||
"Connection": "keep-alive",
|
||||
"Access-Control-Allow-Origin": "*"
|
||||
},
|
||||
"status_code": 200,
|
||||
"type": "ok"
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user