From 52a0ec6284deabea0163d7b51917786857caaeac Mon Sep 17 00:00:00 2001 From: Tykayn Date: Mon, 10 Jan 2022 11:06:31 +0100 Subject: [PATCH] add mocks --- README.md | 95 +- config.ts | 8 +- index.ts | 23 +- mocks/creation.json | 51 + mocks/creation_without_place.json | 38 + sources_examples/osmcal.json | 1506 +++++++++++++++++------------ utils.ts | 15 +- 7 files changed, 1090 insertions(+), 646 deletions(-) create mode 100644 mocks/creation.json create mode 100644 mocks/creation_without_place.json diff --git a/README.md b/README.md index ca9dd5e..9b42ff7 100644 --- a/README.md +++ b/README.md @@ -26,10 +26,103 @@ npm i ajouter un cronjob qui exécute régulièrement (une fois par jour) -```angular2html +```bash ts-node index.ts ``` +# Example de requête + +Les examples sont mis dans le dossier mocks + +- creation +``` +entêtes: +{ + "POST": { + "scheme": "http", + "host": "localhost:4000", + "filename": "/api", + "remote": { + "Adresse": "127.0.0.1:4000" + } + } +} +{ + "En-têtes de la requête (2,286 Ko)": { + "headers": [ + { + "name": "Accept", + "value": "*/*" + }, + { + "name": "Accept-Encoding", + "value": "gzip, deflate" + }, + { + "name": "Accept-Language", + "value": "fr,en-US;q=0.7,en;q=0.3" + }, + { + "name": "authorization", + "value": "Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJtb2JpbGl6b24iLCJleHAiOjE2NDE4MDg1ODIsImlhdCI6MTY0MTgwNzY4MiwiaXNzIjoibW9iaWxpem9uIiwianRpIjoiYTk5YzE3OTQtNThjZS00YmFhLWJhMTktMjcwYWJjNzFkMGI4IiwibmJmIjoxNjQxODA3NjgxLCJzdWIiOiJVc2VyOjEiLCJ0eXAiOiJhY2Nlc3MifQ.9w7JaWQo7j-xHrDspWF5HqnlRBw2U0uyUxNfYbSc6NihyRLTrKFZSMAGNnR2lgZYPO8I-SgiK043wSWau1GnNQ" + }, + { + "name": "Cache-Control", + "value": "no-cache" + }, + { + "name": "Connection", + "value": "keep-alive" + }, + { + "name": "Content-Length", + "value": "4454" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "Cookie", + "value": "Phpstorm-bbc0ac47=545e6b0c-6c8b-4445-b724-49644b98bd77; ph_mqkwGT0JNFqO-zX2t0mW6Tec9yooaVu7xCBlXtHnt5Y_posthog=%7B%22distinct_id%22%3A%2217c3271b31913d-00bfbf13648a128-30634644-4b9600-17c3271b31a468%22%2C%22%24device_id%22%3A%2217c3271b31913d-00bfbf13648a128-30634644-4b9600-17c3271b31a468%22%7D; BetterErrors-has-used-console=true; _session_id=eyJfcmFpbHMiOnsibWVzc2FnZSI6IklqWTNNV0ZrTVRWaVlXSm1PR1UzWkdKalpqTmlPR0k1WmpZd01qRmhObUU1SWc9PSIsImV4cCI6IjIwMjItMTEtMThUMTc6MzY6MjUuNDY0WiIsInB1ciI6ImNvb2tpZS5fc2Vzc2lvbl9pZCJ9fQ%3D%3D--dede57510dc24f4a60db7864eebd7cc14e4b957a; c1ef4f9f9c63250f85741095ba5caaee=m38cfqt2k3ulmdhvbbtk497hde; f8caea90b77b67b82dd50df996d8d229=drm4t2vb5oqa6nlj0odsmsanse; 5ae7feae4c8f8e8d33845d20924ad9ba=itfhk9eumbgthphqrgrs2gpqi2; BetterErrors-2.9.1-CSRF-Token=18e3c443-00f4-4fe1-a9a0-c65a69915fbb; _mastodon_session=K11iR4Tod4FhspHo1Bxe66Ri%2BYqvWb%2F%2BnoO9WXgbpzsmdLMM%2BV6Vso0AjUz96Tu%2BhzK2Wq8KeZxR4VBKUuFNE8v%2FSdfHX9V0cwhxDU7q%2FwDVEJsgQ8xlKiL3W0v9ab%2BPkI7tLZ7SpsJTfxdLG%2BPonKhR9zApU03Q0ep80%2Fxf6F8JUfqFAsIvBMcko2mHaK%2BU9dGcQtYAFCbijSmEegrzmV0hH57w6dKxrGONmGLNTillxvTL%2BVZagOL7xB93s31jCTIGwtp%2FwVl5GN4LO44f79s3X7kVRh74wKOC8poNyvckfMvERCxj48mnn0Vw8fIj2R341fyOmsYKFoNbeGy3Oh0yFvZxQOBKK05z8%2Bi3O%2BbkFYOYPlGGawrSRQM0cOtqq%2FPV4EZxetKDuKZsTv9og%2FvsmEJwafUekbjL2G%2BsEHf4X9js8bquVaOJH2prOWV8kgBsCH7qnggWk9T5pEjVLvRj36AbsSE627iHz8IdRp646SHKz82uO5SMEgUIsMg7dAJ8fhXIHaMvvisNNwGwkEnzNYWLSLnC3Lpxzn0%3D--cmlZi7NsmOxVoFfx--RyGe8OvwX03BezCSH9bs8g%3D%3D" + }, + { + "name": "Host", + "value": "localhost:4000" + }, + { + "name": "Origin", + "value": "http://localhost:4000" + }, + { + "name": "Pragma", + "value": "no-cache" + }, + { + "name": "Referer", + "value": "http://localhost:4000/events/create" + }, + { + "name": "Sec-Fetch-Dest", + "value": "empty" + }, + { + "name": "Sec-Fetch-Mode", + "value": "cors" + }, + { + "name": "Sec-Fetch-Site", + "value": "same-origin" + }, + { + "name": "User-Agent", + "value": "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0" + } + ] + } +} + +``` --- author: tykayn diff --git a/config.ts b/config.ts index 10ae4a7..404561d 100644 --- a/config.ts +++ b/config.ts @@ -10,11 +10,13 @@ const parserConfig = { // database of mobilizon db_name: "mobilizon_dev", db_user: "mobilizon", - db_pass: "mobilizon", + db_pass: "0eHmz99Rb2WEhPKbwGJuAU-Da04jVV36QjuOOeJDOsK_Q1w7pikqIR04WqHoZLQi", // other configs - askAgendaDuLibre: false, // should we fetch the Agenda du libre feed ? + askAgendaDuLibre: true, // should we fetch the Agenda du libre feed ? askOsmCal: true, - runAddQueriesToMobilizon: false, + runAddQueriesToMobilizonBDD: false, debug: false, + runAddQueriesToMobilizonAPI: true + }; export default parserConfig; diff --git a/index.ts b/index.ts index f0be110..009a7ac 100644 --- a/index.ts +++ b/index.ts @@ -40,7 +40,7 @@ const runCreationQuery = utilsTools.runCreationQuery; console.log(' '); const res = await utilsTools.client.query('SELECT * from events'); console.log('💾 évènements enregistrés dans mobilizon : ', res.rows.length); // Hello world! - + console.log('res', res); utilsTools.localMobilizonEventsByTitle = res.rows; if (parserConfig.askAgendaDuLibre) { @@ -91,13 +91,26 @@ const runCreationQuery = utilsTools.runCreationQuery; console.log('arrayOfEvents[0]', arrayOfEvents[1]) utilsTools.osmcal.doesEventExists(arrayOfEvents[1]) - // arrayOfEvents.forEach((eventFound) => { - // utilsTools.osmcal.doesEventExists(eventFound); - // }); + let EventsToCreate:any = []; + + arrayOfEvents.forEach((eventFound:any) => { + if(!utilsTools.osmcal.doesEventExists(eventFound)){ + EventsToCreate.push(eventFound); + }; + }); + utilsTools.createEventQueriesForApi(EventsToCreate) + }); } - if (parserConfig.runAddQueriesToMobilizon) { + if (parserConfig.runAddQueriesToMobilizonAPI) { + console.log( + '➕ rajouter les évènements manquants par l\'API GraphQL', + ); + + + } + if (parserConfig.runAddQueriesToMobilizonBDD) { // @ts-ignore console.log( '➕ rajouter les évènements manquants à la base mobilizon', diff --git a/mocks/creation.json b/mocks/creation.json new file mode 100644 index 0000000..ae9fe6a --- /dev/null +++ b/mocks/creation.json @@ -0,0 +1,51 @@ +{ + "operationName": "createEvent", + "query": "mutation createEvent($organizerActorId: ID!, $attributedToId: ID, $title: String!, $description: String!, $beginsOn: DateTime!, $endsOn: DateTime, $status: EventStatus, $visibility: EventVisibility, $joinOptions: EventJoinOptions, $draft: Boolean, $tags: [String], $picture: MediaInput, $onlineAddress: String, $phoneAddress: String, $category: String, $physicalAddress: AddressInput, $options: EventOptionsInput, $contacts: [Contact]) {\n createEvent(\n organizerActorId: $organizerActorId\n attributedToId: $attributedToId\n title: $title\n description: $description\n beginsOn: $beginsOn\n endsOn: $endsOn\n status: $status\n visibility: $visibility\n joinOptions: $joinOptions\n draft: $draft\n tags: $tags\n picture: $picture\n onlineAddress: $onlineAddress\n phoneAddress: $phoneAddress\n category: $category\n physicalAddress: $physicalAddress\n options: $options\n contacts: $contacts\n ) {\n ...FullEvent\n __typename\n }\n}\n\nfragment FullEvent on Event {\n id\n uuid\n url\n local\n title\n description\n beginsOn\n endsOn\n status\n visibility\n joinOptions\n draft\n picture {\n id\n url\n name\n metadata {\n width\n height\n blurhash\n __typename\n }\n __typename\n }\n publishAt\n onlineAddress\n phoneAddress\n physicalAddress {\n ...AdressFragment\n __typename\n }\n organizerActor {\n avatar {\n id\n url\n __typename\n }\n preferredUsername\n domain\n name\n url\n id\n summary\n __typename\n }\n contacts {\n avatar {\n id\n url\n __typename\n }\n preferredUsername\n name\n summary\n domain\n url\n id\n __typename\n }\n attributedTo {\n avatar {\n id\n url\n __typename\n }\n preferredUsername\n name\n summary\n domain\n url\n id\n __typename\n }\n participantStats {\n going\n notApproved\n participant\n __typename\n }\n tags {\n ...TagFragment\n __typename\n }\n relatedEvents {\n id\n uuid\n title\n beginsOn\n picture {\n id\n url\n name\n metadata {\n width\n height\n blurhash\n __typename\n }\n __typename\n }\n physicalAddress {\n id\n description\n __typename\n }\n organizerActor {\n id\n avatar {\n id\n url\n __typename\n }\n preferredUsername\n domain\n name\n __typename\n }\n __typename\n }\n options {\n ...EventOptions\n __typename\n }\n metadata {\n key\n title\n value\n type\n __typename\n }\n __typename\n}\n\nfragment AdressFragment on Address {\n id\n description\n geom\n street\n locality\n postalCode\n region\n country\n type\n url\n originId\n __typename\n}\n\nfragment TagFragment on Tag {\n id\n slug\n title\n __typename\n}\n\nfragment EventOptions on EventOptions {\n maximumAttendeeCapacity\n remainingAttendeeCapacity\n showRemainingAttendeeCapacity\n anonymousParticipation\n showStartTime\n showEndTime\n offers {\n price\n priceCurrency\n url\n __typename\n }\n participationConditions {\n title\n content\n url\n __typename\n }\n attendees\n program\n commentModeration\n showParticipationPrice\n hideOrganizerWhenGroupEvent\n __typename\n}\n", + "variables": { + "attributedToId": null, + "beginsOn": "2022-01-11T09:45:00.000Z", + "contacts": [], + "description": "

la description

", + "draft": false, + "endsOn": "2022-01-11T12:00:00.000Z", + "joinOptions": "FREE", + "onlineAddress": "https://cipherbliss.com", + "options": { + "anonymousParticipation": true, + "attendees": [], + "commentModeration": "ALLOW_ALL", + "hideOrganizerWhenGroupEvent": false, + "maximumAttendeeCapacity": 200, + "offers": [], + "participationConditions": [], + "program": "", + "remainingAttendeeCapacity": 0, + "showEndTime": true, + "showParticipationPrice": false, + "showRemainingAttendeeCapacity": false, + "showStartTime": true + }, + "organizerActorId": "3", + "phoneAddress": "", + "physicalAddress": { + "country": "France", + "description": "3 Rue du Temple", + "geom": "2.3525187;48.857539", + "id": null, + "locality": "Paris", + "originId": "nominatim:700449153", + "postalCode": "75004", + "region": "Île-de-France", + "street": "3 Rue du Temple", + "type": "house", + "url": null + }, + "status": "CONFIRMED", + "tags": [ + "machin", + "chose" + ], + "title": "blah titre", + "visibility": "PUBLIC" + } +} \ No newline at end of file diff --git a/mocks/creation_without_place.json b/mocks/creation_without_place.json new file mode 100644 index 0000000..120fc69 --- /dev/null +++ b/mocks/creation_without_place.json @@ -0,0 +1,38 @@ +{ + "operationName": "createEvent", + "query": "mutation createEvent($organizerActorId: ID!, $attributedToId: ID, $title: String!, $description: String!, $beginsOn: DateTime!, $endsOn: DateTime, $status: EventStatus, $visibility: EventVisibility, $joinOptions: EventJoinOptions, $draft: Boolean, $tags: [String], $picture: MediaInput, $onlineAddress: String, $phoneAddress: String, $category: String, $physicalAddress: AddressInput, $options: EventOptionsInput, $contacts: [Contact]) {\n createEvent(\n organizerActorId: $organizerActorId\n attributedToId: $attributedToId\n title: $title\n description: $description\n beginsOn: $beginsOn\n endsOn: $endsOn\n status: $status\n visibility: $visibility\n joinOptions: $joinOptions\n draft: $draft\n tags: $tags\n picture: $picture\n onlineAddress: $onlineAddress\n phoneAddress: $phoneAddress\n category: $category\n physicalAddress: $physicalAddress\n options: $options\n contacts: $contacts\n ) {\n ...FullEvent\n __typename\n }\n}\n\nfragment FullEvent on Event {\n id\n uuid\n url\n local\n title\n description\n beginsOn\n endsOn\n status\n visibility\n joinOptions\n draft\n picture {\n id\n url\n name\n metadata {\n width\n height\n blurhash\n __typename\n }\n __typename\n }\n publishAt\n onlineAddress\n phoneAddress\n physicalAddress {\n ...AdressFragment\n __typename\n }\n organizerActor {\n avatar {\n id\n url\n __typename\n }\n preferredUsername\n domain\n name\n url\n id\n summary\n __typename\n }\n contacts {\n avatar {\n id\n url\n __typename\n }\n preferredUsername\n name\n summary\n domain\n url\n id\n __typename\n }\n attributedTo {\n avatar {\n id\n url\n __typename\n }\n preferredUsername\n name\n summary\n domain\n url\n id\n __typename\n }\n participantStats {\n going\n notApproved\n participant\n __typename\n }\n tags {\n ...TagFragment\n __typename\n }\n relatedEvents {\n id\n uuid\n title\n beginsOn\n picture {\n id\n url\n name\n metadata {\n width\n height\n blurhash\n __typename\n }\n __typename\n }\n physicalAddress {\n id\n description\n __typename\n }\n organizerActor {\n id\n avatar {\n id\n url\n __typename\n }\n preferredUsername\n domain\n name\n __typename\n }\n __typename\n }\n options {\n ...EventOptions\n __typename\n }\n metadata {\n key\n title\n value\n type\n __typename\n }\n __typename\n}\n\nfragment AdressFragment on Address {\n id\n description\n geom\n street\n locality\n postalCode\n region\n country\n type\n url\n originId\n __typename\n}\n\nfragment TagFragment on Tag {\n id\n slug\n title\n __typename\n}\n\nfragment EventOptions on EventOptions {\n maximumAttendeeCapacity\n remainingAttendeeCapacity\n showRemainingAttendeeCapacity\n anonymousParticipation\n showStartTime\n showEndTime\n offers {\n price\n priceCurrency\n url\n __typename\n }\n participationConditions {\n title\n content\n url\n __typename\n }\n attendees\n program\n commentModeration\n showParticipationPrice\n hideOrganizerWhenGroupEvent\n __typename\n}\n", + "variables": { + "attributedToId": null, + "beginsOn": "2022-01-11T09:45:00.000Z", + "contacts": [], + "description": "

la description

", + "draft": false, + "endsOn": "2022-01-11T12:00:00.000Z", + "joinOptions": "FREE", + "onlineAddress": "https://cipherbliss.com", + "options": { + "anonymousParticipation": true, + "attendees": [], + "commentModeration": "ALLOW_ALL", + "hideOrganizerWhenGroupEvent": false, + "maximumAttendeeCapacity": 200, + "offers": [], + "participationConditions": [], + "program": "", + "remainingAttendeeCapacity": 0, + "showEndTime": true, + "showParticipationPrice": false, + "showRemainingAttendeeCapacity": false, + "showStartTime": true + }, + "organizerActorId": "3", + "phoneAddress": "", + "status": "CONFIRMED", + "tags": [ + "machin", + "chose" + ], + "title": "blah titre", + "visibility": "PUBLIC" + } +} \ No newline at end of file diff --git a/sources_examples/osmcal.json b/sources_examples/osmcal.json index 87e7395..a62412d 100644 --- a/sources_examples/osmcal.json +++ b/sources_examples/osmcal.json @@ -1,189 +1,43 @@ [ { - "name": "Missing Maps London Mapathon", - "url": "https://osmcal.org/event/367/", + "name": "OpenStreetMap x Wikidata Taipei #36", + "url": "https://osmcal.org/event/1103/", "date": { - "human": "5th January 19:00 – 21:00 (Europe/London)", - "human_short": "5th January", + "human": "10th January 19:30 – 21:30", + "human_short": "10th January", "whole_day": false, - "start": "2021-01-05T19:00:00+00:00", - "end": "2021-01-05T21:00:00+00:00" - } - }, - { - "name": "Virtuelles Niederbayern-Treffen", - "url": "https://osmcal.org/event/404/", - "date": { - "human": "5th January", - "human_short": "5th January", - "whole_day": true, - "start": "2021-01-05T19:30:00+01:00" + "start": "2022-01-10T19:30:00+08:00", + "end": "2022-01-10T21:30:00+08:00" }, "location": { - "short": "Oberframmering, Landau an der Isar, Bavaria, Germany", - "detailed": "online, Osterhofener Straße, Oberframmering, Bavaria, Germany", + "short": "Zhonglun, Taipei, Taipei, Taiwan", + "detailed": "Mozilla Community Space Taipei, 94, Section 1, Bade Road, Zhongzheng District, Zhonglun, Taipei, Taipei, Taiwan", "coords": [ - 12.749539, - 48.688166 + 121.532182, + 25.044068 ], - "venue": "online" + "venue": "Mozilla Community Space Taipei" } }, { - "name": "Virtual Civic Hack & Map Night", - "url": "https://osmcal.org/event/375/", + "name": "OSMF Engineering Working Group meeting", + "url": "https://osmcal.org/event/1095/", "date": { - "human": "7th January 18:30 – 21:00", - "human_short": "7th January", + "human": "10th January 20:00 – 21:00 (Etc/UTC)", + "human_short": "10th January", "whole_day": false, - "start": "2021-01-07T18:30:00-08:00", - "end": "2021-01-07T21:00:00-08:00" - }, - "location": { - "short": "San Jose, California, United States", - "detailed": "Online, East Santa Clara Street, Japantown, San Jose, California, United States", - "coords": [ - -121.890583, - 37.336191 - ], - "venue": "Online" + "start": "2022-01-10T20:00:00+00:00", + "end": "2022-01-10T21:00:00+00:00" } }, { - "name": "Bochum OSM-Stammtisch (online)", - "url": "https://osmcal.org/event/368/", + "name": "Münchner OSM-Treffen", + "url": "https://osmcal.org/event/1110/", "date": { - "human": "7th January 19:00", - "human_short": "7th January", - "whole_day": false, - "start": "2021-01-07T19:00:00+01:00" - }, - "location": { - "short": "Bochum, North Rhine-Westphalia, Germany", - "detailed": "Jitsi, Boulevard, Innenstadt, Bochum, North Rhine-Westphalia, Germany", - "coords": [ - 7.219664, - 51.481811 - ], - "venue": "Jitsi" - } - }, - { - "name": "Dresdner OSM-Stammtisch", - "url": "https://osmcal.org/event/410/", - "date": { - "human": "7th January 19:00", - "human_short": "7th January", - "whole_day": false, - "start": "2021-01-07T19:00:00+01:00" - }, - "location": { - "short": "Dresden, Saxony, Germany", - "detailed": "Online, Wilsdruffer Straße, Innere Altstadt, Dresden, Saxony, Germany", - "coords": [ - 13.738144, - 51.049329 - ], - "venue": "Online" - } - }, - { - "name": "Virtual community meeting.", - "url": "https://osmcal.org/event/400/", - "date": { - "human": "8th January 19:00 – 22:00", - "human_short": "8th January", - "whole_day": false, - "start": "2021-01-08T19:00:00+00:00", - "end": "2021-01-08T22:00:00+00:00" - }, - "location": { - "short": "Warsaw, Masovian Voivodeship, Poland", - "detailed": "Poland, 1, Plac Defilad, Śródmieście, Warsaw, Masovian Voivodeship, Poland", - "coords": [ - 21.006725, - 52.231958 - ], - "venue": "Poland" - } - }, - { - "name": "Virtueller OSM Stammtisch Österreich", - "url": "https://osmcal.org/event/423/", - "date": { - "human": "8th January 19:00", - "human_short": "8th January", - "whole_day": false, - "start": "2021-01-08T19:00:00+01:00" - }, - "location": { - "short": "Großarl, Salzburg, Austria", - "detailed": "Online, Ebengasse, Salzburg, Austria", - "coords": [ - 13.199959, - 47.200034 - ], - "venue": "Online" - } - }, - { - "name": "Virtual meeting of the Polish OSM Association", - "url": "https://osmcal.org/event/418/", - "date": { - "human": "9th January 19:00 (Etc/UTC)", - "human_short": "9th January", - "whole_day": false, - "start": "2021-01-09T19:00:00+00:00" - } - }, - { - "name": "Naksha 2021", - "url": "https://osmcal.org/event/422/", - "date": { - "human": "10th January 19:00 – 16th January 21:00", - "human_short": "10th–16th January", - "whole_day": false, - "start": "2021-01-10T19:00:00+05:30", - "end": "2021-01-16T21:00:00+05:30" - }, - "location": { - "short": "Tamia, Madhya Pradesh, India", - "detailed": "India, Tamia, Madhya Pradesh, India", - "coords": [ - 78.667743, - 22.351115 - ], - "venue": "India" - } - }, - { - "name": "OSM-Treffen Zürich", - "url": "https://osmcal.org/event/417/", - "date": { - "human": "11th January 18:30 – 22:00", + "human": "11th January 19:00", "human_short": "11th January", "whole_day": false, - "start": "2021-01-11T18:30:00+01:00", - "end": "2021-01-11T22:00:00+01:00" - }, - "location": { - "short": "Zurich, Zurich, Switzerland", - "detailed": "online bbb, Hochstrasse, Fluntern, Zurich, Zurich, Switzerland", - "coords": [ - 8.546741, - 47.376035 - ], - "venue": "online bbb" - } - }, - { - "name": "Münchner OSM-Stammtisch", - "url": "https://osmcal.org/event/419/", - "date": { - "human": "12th January 19:00", - "human_short": "12th January", - "whole_day": false, - "start": "2021-01-12T19:00:00+01:00" + "start": "2022-01-11T19:00:00+01:00" }, "location": { "short": "Munich, Bavaria, Germany", @@ -195,170 +49,159 @@ } }, { - "name": "Michigan Online Meetup", - "url": "https://osmcal.org/event/366/", + "name": "Reunión mensual de la comunidad española", + "url": "https://osmcal.org/event/1061/", "date": { - "human": "13th January 19:00 – 20:00", - "human_short": "13th January", + "human": "11th January 20:00", + "human_short": "11th January", "whole_day": false, - "start": "2021-01-13T19:00:00-05:00", - "end": "2021-01-13T20:00:00-05:00" + "start": "2022-01-11T20:00:00+01:00" + }, + "location": { + "short": "Helechosa de los Montes, Extremadura, Spain", + "detailed": "Helechosa de los Montes, Extremadura, Spain", + "coords": [ + -4.837979, + 39.326069 + ] + } + }, + { + "name": "Michigan Meetup", + "url": "https://osmcal.org/event/1090/", + "date": { + "human": "12th January 19:00", + "human_short": "12th January", + "whole_day": false, + "start": "2022-01-12T19:00:00-05:00" }, "location": { "short": "Michigan, United States", - "detailed": "Online, Chippewa Trail, Michigan, United States", + "detailed": "online, Michigan, United States", "coords": [ - -84.682435, - 43.621196 - ], - "venue": "Online" - } - }, - { - "name": "OpenStreetMap US Mappy Hour", - "url": "https://osmcal.org/event/405/", - "date": { - "human": "13th January 20:30 – 21:30", - "human_short": "13th January", - "whole_day": false, - "start": "2021-01-13T20:30:00-05:00", - "end": "2021-01-13T21:30:00-05:00" - }, - "location": { - "short": "Kansas, United States", - "detailed": "Online, County Road 412, Kansas, United States", - "coords": [ - -98.550441, - 39.224396 - ], - "venue": "Online" - } - }, - { - "name": "151. Berlin-Brandenburg OpenStreetMap Stammtisch (Online)", - "url": "https://osmcal.org/event/384/", - "date": { - "human": "14th January 19:00", - "human_short": "14th January", - "whole_day": false, - "start": "2021-01-14T19:00:00+01:00" - }, - "location": { - "short": "Berlin, Berlin, Germany", - "detailed": "Online, Link zur Platform siehe Event-Website, Unter den Linden, Mitte, Berlin, Berlin, Germany", - "coords": [ - 13.38886, - 52.517037 - ], - "venue": "Online, Link zur Platform siehe Event-Website" - } - }, - { - "name": "Virtual community meeting.", - "url": "https://osmcal.org/event/401/", - "date": { - "human": "15th January 19:00 – 22:00", - "human_short": "15th January", - "whole_day": false, - "start": "2021-01-15T19:00:00+00:00", - "end": "2021-01-15T22:00:00+00:00" - }, - "location": { - "short": "Warsaw, Masovian Voivodeship, Poland", - "detailed": "Poland, 1, Plac Defilad, Śródmieście, Warsaw, Masovian Voivodeship, Poland", - "coords": [ - 21.006725, - 52.231958 - ], - "venue": "Poland" - } - }, - { - "name": "Rencontre mensuelle (virtuelle) Lyon", - "url": "https://osmcal.org/event/407/", - "date": { - "human": "19th January 18:30", - "human_short": "19th January", - "whole_day": false, - "start": "2021-01-19T18:30:00+01:00" - }, - "location": { - "short": "Lyon, Auvergne-Rhône-Alpes, France", - "detailed": "online, Rue Juliette Récamier, Les Brotteaux, Lyon, Auvergne-Rhône-Alpes, France", - "coords": [ - 4.853832, - 45.763808 + -85.605469, + 45.336702 ], "venue": "online" } }, { - "name": "135. Treffen des OSM-Stammtisches Bonn", - "url": "https://osmcal.org/event/393/", + "name": "OSM-Treffen Bochum (Januar) ONLINE", + "url": "https://osmcal.org/event/1083/", "date": { - "human": "19th January 19:00 (Europe/Berlin)", - "human_short": "19th January", + "human": "13th January 19:00 – 21:00", + "human_short": "13th January", "whole_day": false, - "start": "2021-01-19T19:00:00+01:00" - } - }, - { - "name": "Missing Maps DRK Online Mapathon", - "url": "https://osmcal.org/event/380/", - "date": { - "human": "19th January 19:00 – 22:00 (Europe/Berlin)", - "human_short": "19th January", - "whole_day": false, - "start": "2021-01-19T19:00:00+01:00", - "end": "2021-01-19T22:00:00+01:00" - } - }, - { - "name": "OSM-Verkehrswende #19 (Online)", - "url": "https://osmcal.org/event/383/", - "date": { - "human": "19th January 19:30", - "human_short": "19th January", - "whole_day": false, - "start": "2021-01-19T19:30:00+01:00" + "start": "2022-01-13T19:00:00+01:00", + "end": "2022-01-13T21:00:00+01:00" }, "location": { - "short": "Berlin, Berlin, Germany", - "detailed": "Online, Link zur Platform siehe Wiki-Link, Unter den Linden, Mitte, Berlin, Berlin, Germany", + "short": "Bochum, North Rhine-Westphalia, Germany", + "detailed": "50, Alleestraße, Innenstadt, Bochum, North Rhine-Westphalia, Germany", "coords": [ - 13.38886, - 52.517037 - ], - "venue": "Online, Link zur Platform siehe Wiki-Link" - } - }, - { - "name": "Lüneburger Mappertreffen (online)", - "url": "https://osmcal.org/event/385/", - "date": { - "human": "19th January 20:30", - "human_short": "19th January", - "whole_day": false, - "start": "2021-01-19T20:30:00+01:00" - }, - "location": { - "short": "Lüneburg, Lower Saxony, Germany", - "detailed": "9, Friedenstraße, Rotes Feld, Lower Saxony, Germany", - "coords": [ - 10.412018, - 53.245632 + 7.208527, + 51.481059 ] } }, { - "name": "Virtual Civic Hack & Map Night", - "url": "https://osmcal.org/event/376/", + "name": "163. Berlin-Brandenburg OpenStreetMap Stammtisch", + "url": "https://osmcal.org/event/1092/", "date": { - "human": "21st January 18:30 – 21:00", - "human_short": "21st January", + "human": "13th January 19:00", + "human_short": "13th January", "whole_day": false, - "start": "2021-01-21T18:30:00-08:00", - "end": "2021-01-21T21:00:00-08:00" + "start": "2022-01-13T19:00:00+01:00" + }, + "location": { + "short": "Berlin, Berlin, Germany", + "detailed": "Online, Friedrichstraße, Mitte, Berlin, Berlin, Germany", + "coords": [ + 13.38886, + 52.517037 + ], + "venue": "Online" + } + }, + { + "name": "EPN des Rancy : Technique de cartographie et d'édition", + "url": "https://osmcal.org/event/1010/", + "date": { + "human": "15th January 9:30 – 12:30", + "human_short": "15th January", + "whole_day": false, + "start": "2022-01-15T09:30:00+01:00", + "end": "2022-01-15T12:30:00+01:00" + }, + "location": { + "short": "Lyon, Auvergne-Rhône-Alpes, France", + "detailed": "Maison Pour Tous - Salle des Rancy, Rue Edison, Préfecture, Lyon, Auvergne-Rhône-Alpes, France", + "coords": [ + 4.847767, + 45.755901 + ], + "venue": "Maison Pour Tous - Salle des Rancy" + } + }, + { + "name": "公共交通绘制问题集中交流会/Public Transport Mapping in China - Meetup1", + "url": "https://osmcal.org/event/1122/", + "date": { + "human": "16th January 12:00 – 17th January 12:00", + "human_short": "16th–17th January", + "whole_day": false, + "start": "2022-01-16T12:00:00+08:00", + "end": "2022-01-17T12:00:00+08:00" + }, + "location": { + "short": "Dashilan, Xicheng District, Beijing, China", + "detailed": "线上/Online, Xicheng District, Beijing, China", + "coords": [ + 116.392214, + 39.89007 + ], + "venue": "线上/Online" + } + }, + { + "name": "OSGeo.nl/OSM-NL/QGIS-NL Nieuwjaars Borrel", + "url": "https://osmcal.org/event/1107/", + "date": { + "human": "16th January 15:00 – 18:00", + "human_short": "16th January", + "whole_day": false, + "start": "2022-01-16T15:00:00+01:00", + "end": "2022-01-16T18:00:00+01:00" + }, + "location": { + "short": "Hilversum, North Holland, Netherlands", + "detailed": "virtueel in De Grote Geo Ruimte (zie Forum link), 1A, Larenseweg, North Holland, Netherlands", + "coords": [ + 5.182184, + 52.227585 + ], + "venue": "virtueel in De Grote Geo Ruimte (zie Forum link)" + } + }, + { + "name": "147.Treffen des OSM-Stammtisches Bonn", + "url": "https://osmcal.org/event/1064/", + "date": { + "human": "18th January 19:00 (Europe/Berlin)", + "human_short": "18th January", + "whole_day": false, + "start": "2022-01-18T19:00:00+01:00" + } + }, + { + "name": "South Bay Map Night", + "url": "https://osmcal.org/event/1113/", + "date": { + "human": "18th January 19:00 – 21:00", + "human_short": "18th January", + "whole_day": false, + "start": "2022-01-18T19:00:00-08:00", + "end": "2022-01-18T21:00:00-08:00" }, "location": { "short": "San Jose, California, United States", @@ -371,57 +214,185 @@ } }, { - "name": "Virtual community meeting.", - "url": "https://osmcal.org/event/402/", + "name": "Lüneburger Mappertreffen (online)", + "url": "https://osmcal.org/event/1123/", "date": { - "human": "22nd January 19:00 – 22:00", - "human_short": "22nd January", + "human": "18th January 20:30", + "human_short": "18th January", "whole_day": false, - "start": "2021-01-22T19:00:00+00:00", - "end": "2021-01-22T22:00:00+00:00" + "start": "2022-01-18T20:30:00+01:00" }, "location": { - "short": "Warsaw, Masovian Voivodeship, Poland", - "detailed": "Poland, 1, Plac Defilad, Śródmieście, Warsaw, Masovian Voivodeship, Poland", + "short": "Lüneburg, Lower Saxony, Germany", + "detailed": "9, Friedenstraße, Rotes Feld, Lüneburg, Lower Saxony, Germany", "coords": [ - 21.006725, - 52.231958 + 10.412018, + 53.245632 + ] + } + }, + { + "name": "OpenStreetMap Ireland - Map and Chat", + "url": "https://osmcal.org/event/1135/", + "date": { + "human": "20th January 8:00", + "human_short": "20th January", + "whole_day": false, + "start": "2022-01-20T08:00:00+00:00" + }, + "location": { + "short": "Dublin, Ireland", + "detailed": "Online, O'Connell Street Upper, Dublin, Ireland", + "coords": [ + -6.260273, + 53.349765 ], - "venue": "Poland" + "venue": "Online" } }, { "name": "Bremer Mappertreffen (Online)", - "url": "https://osmcal.org/event/406/", + "url": "https://osmcal.org/event/1105/", "date": { - "human": "25th January 19:00", - "human_short": "25th January", + "human": "24th January 19:00", + "human_short": "24th January", "whole_day": false, - "start": "2021-01-25T19:00:00+01:00" + "start": "2022-01-24T19:00:00+01:00" }, "location": { "short": "Bremen, Free Hanseatic City of Bremen, Germany", - "detailed": "Online via Jitsi, Am Markt, Mitte, Bremen, Free Hanseatic City of Bremen, Germany", + "detailed": "Online, Am Markt, Mitte, Bremen, Free Hanseatic City of Bremen, Germany", "coords": [ 8.807165, 53.07582 ], - "venue": "Online via Jitsi" + "venue": "Online" + } + }, + { + "name": "Comment exploiter les données OSM pour caractériser l'utilisation de l'espace public ?", + "url": "https://osmcal.org/event/1121/", + "date": { + "human": "24th January 19:00 – 21:30", + "human_short": "24th January", + "whole_day": false, + "start": "2022-01-24T19:00:00+01:00", + "end": "2022-01-24T21:30:00+01:00" + }, + "location": { + "short": "Grenoble, Auvergne-Rhône-Alpes, France", + "detailed": "La Turbine, 3-5, Esplanade Andry-Farcy, Secteur 1, Grenoble, Auvergne-Rhône-Alpes, France", + "coords": [ + 5.705051, + 45.187638 + ], + "venue": "La Turbine" + } + }, + { + "name": "Rode Kruis Mapathon - Hoeselt", + "url": "https://osmcal.org/event/1100/", + "date": { + "human": "25th January 19:00 – 22:00", + "human_short": "25th January", + "whole_day": false, + "start": "2022-01-25T19:00:00+01:00", + "end": "2022-01-25T22:00:00+01:00" + }, + "location": { + "short": "Hoeselt, Limburg, Belgium", + "detailed": "GC Ter Kommen, 2, Europalaan, Limburg, Belgium", + "coords": [ + 5.484878, + 50.848342 + ], + "venue": "GC Ter Kommen" + }, + "cancelled": true + }, + { + "name": "Missing Maps online Mapathon des DRK", + "url": "https://osmcal.org/event/1117/", + "date": { + "human": "26th January 19:00 – 22:00 (Europe/Berlin)", + "human_short": "26th January", + "whole_day": false, + "start": "2022-01-26T19:00:00+01:00", + "end": "2022-01-26T22:00:00+01:00" + } + }, + { + "name": "Düsseldorfer OpenStreetMap-Treffen (Online)", + "url": "https://osmcal.org/event/1109/", + "date": { + "human": "26th January 19:00", + "human_short": "26th January", + "whole_day": false, + "start": "2022-01-26T19:00:00+01:00" + }, + "location": { + "short": "Dusseldorf, North Rhine-Westphalia, Germany", + "detailed": "Düsseldorf - Online, 22, Bogenstraße, Oberbilk, Dusseldorf, North Rhine-Westphalia, Germany", + "coords": [ + 6.801637, + 51.216474 + ], + "venue": "Düsseldorf - Online" + } + }, + { + "name": "OSM Nederland nieuwjaarsbijeenkomst (online)", + "url": "https://osmcal.org/event/1106/", + "date": { + "human": "29th January 10:00 – 12:00", + "human_short": "29th January", + "whole_day": false, + "start": "2022-01-29T10:00:00+01:00", + "end": "2022-01-29T12:00:00+01:00" + }, + "location": { + "short": "Amsterdam, North Holland, Netherlands", + "detailed": "Online (Jitsi), De Ruijterkade, Centrum, Amsterdam, North Holland, Netherlands", + "coords": [ + 4.907842, + 52.379516 + ], + "venue": "Online (Jitsi)" + } + }, + { + "name": "Reunión Trimestral OSM-LatAm", + "url": "https://osmcal.org/event/1079/", + "date": { + "human": "29th January 10:00 – 12:00", + "human_short": "29th January", + "whole_day": false, + "start": "2022-01-29T10:00:00-05:00", + "end": "2022-01-29T12:00:00-05:00" + }, + "location": { + "short": "Bogota, Colombia", + "detailed": "https://osmvideo.cloud68.co/user/and-ljb-pb2-ajn, Localidad Teusaquillo, Bogota, Colombia", + "coords": [ + -74.083652, + 4.653333 + ], + "venue": "https://osmvideo.cloud68.co/user/and-ljb-pb2-ajn" } }, { "name": "Virtual OpenStreetMap Belgium meeting", - "url": "https://osmcal.org/event/319/", + "url": "https://osmcal.org/event/1097/", "date": { - "human": "26th January 20:00 – 22:00", - "human_short": "26th January", + "human": "31st January 20:00 – 22:00", + "human_short": "31st January", "whole_day": false, - "start": "2021-01-26T20:00:00+01:00", - "end": "2021-01-26T22:00:00+01:00" + "start": "2022-01-31T20:00:00+01:00", + "end": "2022-01-31T22:00:00+01:00" }, "location": { - "short": "Brussels, Brussels-Capital, Belgium", - "detailed": "Online, 8, Grand Place, Brussels, Brussels-Capital, Belgium", + "short": "City of Brussels, Belgium", + "detailed": "Online, 8, Grand Place, Brussels, City of Brussels, Belgium", "coords": [ 4.351697, 50.846557 @@ -430,34 +401,34 @@ } }, { - "name": "Virtual community meeting.", - "url": "https://osmcal.org/event/403/", + "name": "Missing Maps London Mapathon", + "url": "https://osmcal.org/event/1120/", "date": { - "human": "29th January 19:00 – 22:00", - "human_short": "29th January", + "human": "1st February 7:00 – 9:15", + "human_short": "1st February", "whole_day": false, - "start": "2021-01-29T19:00:00+00:00", - "end": "2021-01-29T22:00:00+00:00" + "start": "2022-02-01T07:00:00+00:00", + "end": "2022-02-01T09:15:00+00:00" }, "location": { - "short": "Warsaw, Masovian Voivodeship, Poland", - "detailed": "Poland, 1, Plac Defilad, Śródmieście, Warsaw, Masovian Voivodeship, Poland", + "short": "Westminster, England, United Kingdom", + "detailed": "London, Charing Cross, Covent Garden, Westminster, England, United Kingdom", "coords": [ - 21.006725, - 52.231958 + -0.127647, + 51.507322 ], - "venue": "Poland" + "venue": "London" } }, { - "name": "Virtual Civic Hack & Map Night", - "url": "https://osmcal.org/event/377/", + "name": "South Bay Map Night", + "url": "https://osmcal.org/event/1114/", "date": { - "human": "4th February 18:30 – 21:00", - "human_short": "4th February", + "human": "1st February 19:00 – 21:00", + "human_short": "1st February", "whole_day": false, - "start": "2021-02-04T18:30:00-08:00", - "end": "2021-02-04T21:00:00-08:00" + "start": "2022-02-01T19:00:00-08:00", + "end": "2022-02-01T21:00:00-08:00" }, "location": { "short": "San Jose, California, United States", @@ -470,357 +441,624 @@ } }, { - "name": "Münchner OSM-Stammtisch", - "url": "https://osmcal.org/event/420/", + "name": "OSM-Verkehrswende #33 (Online)", + "url": "https://osmcal.org/event/1119/", "date": { - "human": "10th February 19:00", - "human_short": "10th February", + "human": "1st February 19:30 – 21:30", + "human_short": "1st February", "whole_day": false, - "start": "2021-02-10T19:00:00+01:00" - }, - "location": { - "short": "Munich, Bavaria, Germany", - "detailed": "Thiereckstraße, Altstadt-Lehel, Munich, Bavaria, Germany", - "coords": [ - 11.575382, - 48.137108 - ] - } - }, - { - "name": "OSM-Treffen Zürich", - "url": "https://osmcal.org/event/411/", - "date": { - "human": "11th February 18:30 – 22:00", - "human_short": "11th February", - "whole_day": false, - "start": "2021-02-11T18:30:00+01:00", - "end": "2021-02-11T22:00:00+01:00" - }, - "location": { - "short": "Zurich, Zurich, Switzerland", - "detailed": "online bbb, Hochstrasse, Fluntern, Zurich, Zurich, Switzerland", - "coords": [ - 8.546741, - 47.376035 - ], - "venue": "online bbb" - } - }, - { - "name": "152. Berlin-Brandenburg OpenStreetMap Stammtisch (Online)", - "url": "https://osmcal.org/event/408/", - "date": { - "human": "12th February 19:00", - "human_short": "12th February", - "whole_day": false, - "start": "2021-02-12T19:00:00+01:00" + "start": "2022-02-01T19:30:00+01:00", + "end": "2022-02-01T21:30:00+01:00" }, "location": { "short": "Berlin, Berlin, Germany", - "detailed": "Online, Link zur Platform siehe Event-Website, Unter den Linden, Mitte, Berlin, Berlin, Germany", + "detailed": "Online, Link zur Platform siehe Wiki-Link, Friedrichstraße, Mitte, Berlin, Berlin, Germany", "coords": [ 13.38886, 52.517037 ], - "venue": "Online, Link zur Platform siehe Event-Website" + "venue": "Online, Link zur Platform siehe Wiki-Link" } }, { - "name": "136. Treffen des OSM-Stammtisches Bonn", - "url": "https://osmcal.org/event/394/", + "name": "Virtuelles Niederbayern-Treffen", + "url": "https://osmcal.org/event/1118/", "date": { - "human": "16th February 20:00 (Europe/Berlin)", + "human": "1st February 19:30", + "human_short": "1st February", + "whole_day": false, + "start": "2022-02-01T19:30:00+01:00" + }, + "location": { + "short": "Kothingeichendorf, Landau an der Isar, Bavaria, Germany", + "detailed": "online, Osterhofener Straße, Kothingeichendorf, Bavaria, Germany", + "coords": [ + 12.749539, + 48.688166 + ], + "venue": "online" + } + }, + { + "name": "EPN des Rancy : Technique de cartographie et d'édition", + "url": "https://osmcal.org/event/1011/", + "date": { + "human": "5th February 9:30 – 12:30", + "human_short": "5th February", + "whole_day": false, + "start": "2022-02-05T09:30:00+01:00", + "end": "2022-02-05T12:30:00+01:00" + }, + "location": { + "short": "Lyon, Auvergne-Rhône-Alpes, France", + "detailed": "Maison Pour Tous - Salle des Rancy, Rue Edison, Préfecture, Lyon, Auvergne-Rhône-Alpes, France", + "coords": [ + 4.847767, + 45.755901 + ], + "venue": "Maison Pour Tous - Salle des Rancy" + } + }, + { + "name": "MappingDC Mappy Hour", + "url": "https://osmcal.org/event/956/", + "date": { + "human": "8th February 18:00", + "human_short": "8th February", + "whole_day": false, + "start": "2022-02-08T18:00:00-05:00" + }, + "location": { + "short": "Washington, District of Columbia, United States", + "detailed": "Capitol City Brewing Company, 1100, New York Avenue Northwest, Washington, District of Columbia, United States", + "coords": [ + -77.027357, + 38.900035 + ], + "venue": "Capitol City Brewing Company" + } + }, + { + "name": "South Bay Map Night", + "url": "https://osmcal.org/event/1115/", + "date": { + "human": "15th February 19:00 – 21:00", + "human_short": "15th February", + "whole_day": false, + "start": "2022-02-15T19:00:00-08:00", + "end": "2022-02-15T21:00:00-08:00" + }, + "location": { + "short": "San Jose, California, United States", + "detailed": "Online, East Santa Clara Street, Japantown, San Jose, California, United States", + "coords": [ + -121.890583, + 37.336191 + ], + "venue": "Online" + } + }, + { + "name": "148.Treffen des OSM-Stammtisches Bonn", + "url": "https://osmcal.org/event/1065/", + "date": { + "human": "15th February 19:00 (Europe/Berlin)", + "human_short": "15th February", + "whole_day": false, + "start": "2022-02-15T19:00:00+01:00" + } + }, + { + "name": "Lüneburger Mappertreffen (online)", + "url": "https://osmcal.org/event/1124/", + "date": { + "human": "15th February 20:30", + "human_short": "15th February", + "whole_day": false, + "start": "2022-02-15T20:30:00+01:00" + }, + "location": { + "short": "Lüneburg, Lower Saxony, Germany", + "detailed": "9, Friedenstraße, Rotes Feld, Lüneburg, Lower Saxony, Germany", + "coords": [ + 10.412018, + 53.245632 + ] + } + }, + { + "name": "Stammtisch Köln", + "url": "https://osmcal.org/event/1056/", + "date": { + "human": "16th February 18:30 – 21:00", "human_short": "16th February", "whole_day": false, - "start": "2021-02-16T20:00:00+01:00" - } - }, - { - "name": "Lüneburger Mappertreffen (online)", - "url": "https://osmcal.org/event/386/", - "date": { - "human": "16th February 20:30", - "human_short": "16th February", - "whole_day": false, - "start": "2021-02-16T20:30:00+01:00" + "start": "2022-02-16T18:30:00+01:00", + "end": "2022-02-16T21:00:00+01:00" }, "location": { - "short": "Lüneburg, Lower Saxony, Germany", - "detailed": "9, Friedenstraße, Rotes Feld, Lower Saxony, Germany", + "short": "Cologne, North Rhine-Westphalia, Germany", + "detailed": "https://meet.jit.si/OSMKoeln, 2, Hackländerstraße, Ehrenfeld, Cologne, North Rhine-Westphalia, Germany", "coords": [ - 10.412018, - 53.245632 - ] - } - }, - { - "name": "OSM-Treffen Zürich", - "url": "https://osmcal.org/event/412/", - "date": { - "human": "11th March 18:30 – 22:00", - "human_short": "11th March", - "whole_day": false, - "start": "2021-03-11T18:30:00+01:00", - "end": "2021-03-11T22:00:00+01:00" - }, - "location": { - "short": "Zurich, Zurich, Switzerland", - "detailed": "online oder cafe BQM, Hochstrasse, Fluntern, Zurich, Zurich, Switzerland", - "coords": [ - 8.546741, - 47.376035 + 6.910381, + 50.955596 ], - "venue": "online oder cafe BQM" + "venue": "https://meet.jit.si/OSMKoeln" } }, { - "name": "Münchner OSM-Stammtisch", - "url": "https://osmcal.org/event/421/", + "name": "FOSSGIS 2022", + "url": "https://osmcal.org/event/937/", "date": { - "human": "11th March 19:00", - "human_short": "11th March", - "whole_day": false, - "start": "2021-03-11T19:00:00+01:00" + "human": "9th March – 12th March", + "human_short": "9th–12th March", + "whole_day": true, + "start": "2022-03-09T00:00:00+01:00", + "end": "2022-03-12T23:59:00+01:00" }, "location": { - "short": "Munich, Bavaria, Germany", - "detailed": "Thiereckstraße, Altstadt-Lehel, Munich, Bavaria, Germany", + "short": "Marburg, Hesse, Germany", + "detailed": "Marburg / Online, 23a, Biegenstraße, Biegenviertel, Hesse, Germany", "coords": [ - 11.575382, - 48.137108 - ] - } - }, - { - "name": "153. Berlin-Brandenburg OpenStreetMap Stammtisch (Online)", - "url": "https://osmcal.org/event/409/", - "date": { - "human": "11th March 19:00", - "human_short": "11th March", - "whole_day": false, - "start": "2021-03-11T19:00:00+01:00" - }, - "location": { - "short": "Berlin, Berlin, Germany", - "detailed": "Online, Link zur Platform siehe Event-Website, Unter den Linden, Mitte, Berlin, Berlin, Germany", - "coords": [ - 13.38886, - 52.517037 + 8.775774, + 50.811733 ], - "venue": "Online, Link zur Platform siehe Event-Website" + "venue": "Marburg / Online" } }, { - "name": "137. Treffen des OSM-Stammtisches Bonn", - "url": "https://osmcal.org/event/395/", + "name": "4. Virtueller OpenStreetMap Stammtisch Österreich", + "url": "https://osmcal.org/event/1047/", "date": { - "human": "16th March 20:00 (Europe/Berlin)", - "human_short": "16th March", + "human": "9th March 19:00", + "human_short": "9th March", "whole_day": false, - "start": "2021-03-16T20:00:00+01:00" - } - }, - { - "name": "Lüneburger Mappertreffen (online)", - "url": "https://osmcal.org/event/387/", - "date": { - "human": "16th March 20:30", - "human_short": "16th March", - "whole_day": false, - "start": "2021-03-16T20:30:00+01:00" + "start": "2022-03-09T19:00:00+01:00" }, "location": { - "short": "Lüneburg, Lower Saxony, Germany", - "detailed": "9, Friedenstraße, Rotes Feld, Lower Saxony, Germany", + "short": "Großarl, Salzburg, Austria", + "detailed": "Virtual workadventu.re room, Ebengasse, Großarl, Salzburg, Austria", "coords": [ - 10.412018, - 53.245632 - ] - } - }, - { - "name": "Lüneburger Mappertreffen (online)", - "url": "https://osmcal.org/event/388/", - "date": { - "human": "20th April 20:30", - "human_short": "20th April", - "whole_day": false, - "start": "2021-04-20T20:30:00+02:00" - }, - "location": { - "short": "Lüneburg, Lower Saxony, Germany", - "detailed": "9, Friedenstraße, Rotes Feld, Lower Saxony, Germany", - "coords": [ - 10.412018, - 53.245632 - ] - } - }, - { - "name": "138. Treffen des OSM-Stammtisches Bonn", - "url": "https://osmcal.org/event/396/", - "date": { - "human": "20th April 21:00 (Europe/Berlin)", - "human_short": "20th April", - "whole_day": false, - "start": "2021-04-20T21:00:00+02:00" - } - }, - { - "name": "OSM-Treffen Zürich", - "url": "https://osmcal.org/event/413/", - "date": { - "human": "11th May 18:30 – 22:00", - "human_short": "11th May", - "whole_day": false, - "start": "2021-05-11T18:30:00+02:00", - "end": "2021-05-11T22:00:00+02:00" - }, - "location": { - "short": "Zurich, Zurich, Switzerland", - "detailed": "beim Studi-Café bQm (ETH), Zürich, Hochstrasse, Fluntern, Zurich, Zurich, Switzerland", - "coords": [ - 8.546741, - 47.376035 + 13.2, + 47.2 ], - "venue": "beim Studi-Café bQm (ETH), Zürich" + "venue": "Virtual workadventu.re room" } }, { - "name": "Lüneburger Mappertreffen (online)", - "url": "https://osmcal.org/event/389/", + "name": "EPN des Rancy : Technique de cartographie et d'édition", + "url": "https://osmcal.org/event/1012/", "date": { - "human": "18th May 20:30", - "human_short": "18th May", + "human": "12th March 9:30 – 12:30", + "human_short": "12th March", "whole_day": false, - "start": "2021-05-18T20:30:00+02:00" + "start": "2022-03-12T09:30:00+01:00", + "end": "2022-03-12T12:30:00+01:00" }, "location": { - "short": "Lüneburg, Lower Saxony, Germany", - "detailed": "9, Friedenstraße, Rotes Feld, Lower Saxony, Germany", + "short": "Lyon, Auvergne-Rhône-Alpes, France", + "detailed": "Maison Pour Tous - Salle des Rancy, Rue Edison, Préfecture, Lyon, Auvergne-Rhône-Alpes, France", "coords": [ - 10.412018, - 53.245632 - ] - } - }, - { - "name": "139. Treffen des OSM-Stammtisches Bonn", - "url": "https://osmcal.org/event/397/", - "date": { - "human": "18th May 21:00 (Europe/Berlin)", - "human_short": "18th May", - "whole_day": false, - "start": "2021-05-18T21:00:00+02:00" - } - }, - { - "name": "Lüneburger Mappertreffen (online)", - "url": "https://osmcal.org/event/391/", - "date": { - "human": "15th June 20:30", - "human_short": "15th June", - "whole_day": false, - "start": "2021-06-15T20:30:00+02:00" - }, - "location": { - "short": "Lüneburg, Lower Saxony, Germany", - "detailed": "9, Friedenstraße, Rotes Feld, Lower Saxony, Germany", - "coords": [ - 10.412018, - 53.245632 - ] - } - }, - { - "name": "140. Treffen des OSM-Stammtisches Bonn", - "url": "https://osmcal.org/event/398/", - "date": { - "human": "15th June 21:00 (Europe/Berlin)", - "human_short": "15th June", - "whole_day": false, - "start": "2021-06-15T21:00:00+02:00" - } - }, - { - "name": "OSM-Treffen Zürich", - "url": "https://osmcal.org/event/414/", - "date": { - "human": "11th August 18:30 – 22:00", - "human_short": "11th August", - "whole_day": false, - "start": "2021-08-11T18:30:00+02:00", - "end": "2021-08-11T22:00:00+02:00" - }, - "location": { - "short": "Zurich, Zurich, Switzerland", - "detailed": "beim Studi-Café bQm (ETH), Zürich, Hochstrasse, Fluntern, Zurich, Zurich, Switzerland", - "coords": [ - 8.546741, - 47.376035 + 4.847767, + 45.755901 ], - "venue": "beim Studi-Café bQm (ETH), Zürich" + "venue": "Maison Pour Tous - Salle des Rancy" } }, { - "name": "OSM-Treffen Zürich", - "url": "https://osmcal.org/event/415/", + "name": "149.Treffen des OSM-Stammtisches Bonn", + "url": "https://osmcal.org/event/1066/", "date": { - "human": "11th October 18:30 – 22:00", + "human": "15th March 19:00 (Europe/Berlin)", + "human_short": "15th March", + "whole_day": false, + "start": "2022-03-15T19:00:00+01:00" + } + }, + { + "name": "Lüneburger Mappertreffen (online)", + "url": "https://osmcal.org/event/1125/", + "date": { + "human": "15th March 20:30", + "human_short": "15th March", + "whole_day": false, + "start": "2022-03-15T20:30:00+01:00" + }, + "location": { + "short": "Lüneburg, Lower Saxony, Germany", + "detailed": "9, Friedenstraße, Rotes Feld, Lüneburg, Lower Saxony, Germany", + "coords": [ + 10.412018, + 53.245632 + ] + } + }, + { + "name": "Virtual OpenStreetMap Belgium meeting", + "url": "https://osmcal.org/event/1098/", + "date": { + "human": "29th March 20:00 – 22:00", + "human_short": "29th March", + "whole_day": false, + "start": "2022-03-29T20:00:00+02:00", + "end": "2022-03-29T22:00:00+02:00" + }, + "location": { + "short": "City of Brussels, Belgium", + "detailed": "Online, 8, Grand Place, Brussels, City of Brussels, Belgium", + "coords": [ + 4.351697, + 50.846557 + ], + "venue": "Online" + } + }, + { + "name": "State of the Map US", + "url": "https://osmcal.org/event/938/", + "date": { + "human": "1st April – 3rd April", + "human_short": "1st–3rd April", + "whole_day": true, + "start": "2022-04-01T00:00:00-07:00", + "end": "2022-04-03T00:00:00-07:00" + }, + "location": { + "short": "Tucson, Arizona, United States", + "detailed": "University of Arizona, Tucson, Arizona, James E. Rogers Circle, Tucson, Arizona, United States", + "coords": [ + -110.952698, + 32.23281 + ], + "venue": "University of Arizona, Tucson, Arizona" + } + }, + { + "name": "MappingDC Mappy Hour", + "url": "https://osmcal.org/event/957/", + "date": { + "human": "12th April 18:00", + "human_short": "12th April", + "whole_day": false, + "start": "2022-04-12T18:00:00-04:00" + }, + "location": { + "short": "Washington, District of Columbia, United States", + "detailed": "Capitol City Brewing Company, 1100, New York Avenue Northwest, Washington, District of Columbia, United States", + "coords": [ + -77.027357, + 38.900035 + ], + "venue": "Capitol City Brewing Company" + } + }, + { + "name": "150.Treffen des OSM-Stammtisches Bonn", + "url": "https://osmcal.org/event/1067/", + "date": { + "human": "19th April 19:00 (Europe/Berlin)", + "human_short": "19th April", + "whole_day": false, + "start": "2022-04-19T19:00:00+02:00" + } + }, + { + "name": "Lüneburger Mappertreffen (online)", + "url": "https://osmcal.org/event/1126/", + "date": { + "human": "19th April 20:30", + "human_short": "19th April", + "whole_day": false, + "start": "2022-04-19T20:30:00+02:00" + }, + "location": { + "short": "Lüneburg, Lower Saxony, Germany", + "detailed": "9, Friedenstraße, Rotes Feld, Lüneburg, Lower Saxony, Germany", + "coords": [ + 10.412018, + 53.245632 + ] + } + }, + { + "name": "151.Treffen des OSM-Stammtisches Bonn", + "url": "https://osmcal.org/event/1068/", + "date": { + "human": "17th May 19:00 (Europe/Berlin)", + "human_short": "17th May", + "whole_day": false, + "start": "2022-05-17T19:00:00+02:00" + } + }, + { + "name": "Lüneburger Mappertreffen (online)", + "url": "https://osmcal.org/event/1127/", + "date": { + "human": "17th May 20:30", + "human_short": "17th May", + "whole_day": false, + "start": "2022-05-17T20:30:00+02:00" + }, + "location": { + "short": "Lüneburg, Lower Saxony, Germany", + "detailed": "9, Friedenstraße, Rotes Feld, Lüneburg, Lower Saxony, Germany", + "coords": [ + 10.412018, + 53.245632 + ] + } + }, + { + "name": "Virtual OpenStreetMap Belgium meeting", + "url": "https://osmcal.org/event/1099/", + "date": { + "human": "31st May 20:00 – 22:00", + "human_short": "31st May", + "whole_day": false, + "start": "2022-05-31T20:00:00+02:00", + "end": "2022-05-31T22:00:00+02:00" + }, + "location": { + "short": "City of Brussels, Belgium", + "detailed": "Online, 8, Grand Place, Brussels, City of Brussels, Belgium", + "coords": [ + 4.351697, + 50.846557 + ], + "venue": "Online" + } + }, + { + "name": "MappingDC Mappy Hour", + "url": "https://osmcal.org/event/958/", + "date": { + "human": "14th June 18:00", + "human_short": "14th June", + "whole_day": false, + "start": "2022-06-14T18:00:00-04:00" + }, + "location": { + "short": "Washington, District of Columbia, United States", + "detailed": "Capitol City Brewing Company, 1100, New York Avenue Northwest, Washington, District of Columbia, United States", + "coords": [ + -77.027357, + 38.900035 + ], + "venue": "Capitol City Brewing Company" + } + }, + { + "name": "152.Treffen des OSM-Stammtisches Bonn", + "url": "https://osmcal.org/event/1069/", + "date": { + "human": "21st June 19:00 (Europe/Berlin)", + "human_short": "21st June", + "whole_day": false, + "start": "2022-06-21T19:00:00+02:00" + } + }, + { + "name": "Lüneburger Mappertreffen (online)", + "url": "https://osmcal.org/event/1128/", + "date": { + "human": "21st June 20:30", + "human_short": "21st June", + "whole_day": false, + "start": "2022-06-21T20:30:00+02:00" + }, + "location": { + "short": "Lüneburg, Lower Saxony, Germany", + "detailed": "9, Friedenstraße, Rotes Feld, Lüneburg, Lower Saxony, Germany", + "coords": [ + 10.412018, + 53.245632 + ] + } + }, + { + "name": "153.Treffen des OSM-Stammtisches Bonn", + "url": "https://osmcal.org/event/1070/", + "date": { + "human": "19th July 19:00 (Europe/Berlin)", + "human_short": "19th July", + "whole_day": false, + "start": "2022-07-19T19:00:00+02:00" + } + }, + { + "name": "Lüneburger Mappertreffen (online)", + "url": "https://osmcal.org/event/1129/", + "date": { + "human": "19th July 20:30", + "human_short": "19th July", + "whole_day": false, + "start": "2022-07-19T20:30:00+02:00" + }, + "location": { + "short": "Lüneburg, Lower Saxony, Germany", + "detailed": "9, Friedenstraße, Rotes Feld, Lüneburg, Lower Saxony, Germany", + "coords": [ + 10.412018, + 53.245632 + ] + } + }, + { + "name": "MappingDC Mappy Hour", + "url": "https://osmcal.org/event/959/", + "date": { + "human": "9th August 18:00", + "human_short": "9th August", + "whole_day": false, + "start": "2022-08-09T18:00:00-04:00" + }, + "location": { + "short": "Washington, District of Columbia, United States", + "detailed": "Capitol City Brewing Company, 1100, New York Avenue Northwest, Washington, District of Columbia, United States", + "coords": [ + -77.027357, + 38.900035 + ], + "venue": "Capitol City Brewing Company" + } + }, + { + "name": "154.Treffen des OSM-Stammtisches Bonn", + "url": "https://osmcal.org/event/1071/", + "date": { + "human": "16th August 19:00 (Europe/Berlin)", + "human_short": "16th August", + "whole_day": false, + "start": "2022-08-16T19:00:00+02:00" + } + }, + { + "name": "Lüneburger Mappertreffen (online)", + "url": "https://osmcal.org/event/1130/", + "date": { + "human": "16th August 20:30", + "human_short": "16th August", + "whole_day": false, + "start": "2022-08-16T20:30:00+02:00" + }, + "location": { + "short": "Lüneburg, Lower Saxony, Germany", + "detailed": "9, Friedenstraße, Rotes Feld, Lüneburg, Lower Saxony, Germany", + "coords": [ + 10.412018, + 53.245632 + ] + } + }, + { + "name": "155.Treffen des OSM-Stammtisches Bonn", + "url": "https://osmcal.org/event/1072/", + "date": { + "human": "20th September 19:00 (Europe/Berlin)", + "human_short": "20th September", + "whole_day": false, + "start": "2022-09-20T19:00:00+02:00" + } + }, + { + "name": "Lüneburger Mappertreffen (online)", + "url": "https://osmcal.org/event/1131/", + "date": { + "human": "20th September 20:30", + "human_short": "20th September", + "whole_day": false, + "start": "2022-09-20T20:30:00+02:00" + }, + "location": { + "short": "Lüneburg, Lower Saxony, Germany", + "detailed": "9, Friedenstraße, Rotes Feld, Lüneburg, Lower Saxony, Germany", + "coords": [ + 10.412018, + 53.245632 + ] + } + }, + { + "name": "MappingDC Mappy Hour", + "url": "https://osmcal.org/event/960/", + "date": { + "human": "11th October 18:00", "human_short": "11th October", "whole_day": false, - "start": "2021-10-11T18:30:00+02:00", - "end": "2021-10-11T22:00:00+02:00" + "start": "2022-10-11T18:00:00-04:00" }, "location": { - "short": "Zurich, Zurich, Switzerland", - "detailed": "beim Studi-Café bQm (ETH), Zürich, Hochstrasse, Fluntern, Zurich, Zurich, Switzerland", + "short": "Washington, District of Columbia, United States", + "detailed": "Capitol City Brewing Company, 1100, New York Avenue Northwest, Washington, District of Columbia, United States", "coords": [ - 8.546741, - 47.376035 + -77.027357, + 38.900035 ], - "venue": "beim Studi-Café bQm (ETH), Zürich" + "venue": "Capitol City Brewing Company" } }, { - "name": "OSM-Treffen Zürich", - "url": "https://osmcal.org/event/416/", + "name": "156.Treffen des OSM-Stammtisches Bonn", + "url": "https://osmcal.org/event/1073/", "date": { - "human": "11th November 18:30 – 22:00", - "human_short": "11th November", + "human": "18th October 19:00 (Europe/Berlin)", + "human_short": "18th October", "whole_day": false, - "start": "2021-11-11T18:30:00+01:00", - "end": "2021-11-11T22:00:00+01:00" - }, - "location": { - "short": "Zurich, Zurich, Switzerland", - "detailed": "beim Studi-Café bQm (ETH), Zürich, Hochstrasse, Fluntern, Zurich, Zurich, Switzerland", - "coords": [ - 8.546741, - 47.376035 - ], - "venue": "beim Studi-Café bQm (ETH), Zürich" + "start": "2022-10-18T19:00:00+02:00" } }, { - "name": "State of the Map Africa 2021", - "url": "https://osmcal.org/event/392/", + "name": "Lüneburger Mappertreffen (online)", + "url": "https://osmcal.org/event/1132/", "date": { - "human": "19th November – 21st November", - "human_short": "19th–21st November", - "whole_day": true, - "start": "2021-11-19T12:00:00+03:00", - "end": "2021-11-21T12:00:00+03:00" + "human": "18th October 20:30", + "human_short": "18th October", + "whole_day": false, + "start": "2022-10-18T20:30:00+02:00" }, "location": { - "short": "Nairobi, Nairobi, Kenya", - "detailed": "Nairobi, Kenya, Uhuru Highway, Nairobi West, Nairobi, Nairobi, Kenya", + "short": "Lüneburg, Lower Saxony, Germany", + "detailed": "9, Friedenstraße, Rotes Feld, Lüneburg, Lower Saxony, Germany", "coords": [ - 36.826061, - -1.303169 - ], - "venue": "Nairobi, Kenya" + 10.412018, + 53.245632 + ] + } + }, + { + "name": "157.Treffen des OSM-Stammtisches Bonn", + "url": "https://osmcal.org/event/1074/", + "date": { + "human": "15th November 19:00 (Europe/Berlin)", + "human_short": "15th November", + "whole_day": false, + "start": "2022-11-15T19:00:00+01:00" + } + }, + { + "name": "Lüneburger Mappertreffen (online)", + "url": "https://osmcal.org/event/1133/", + "date": { + "human": "15th November 20:30", + "human_short": "15th November", + "whole_day": false, + "start": "2022-11-15T20:30:00+01:00" + }, + "location": { + "short": "Lüneburg, Lower Saxony, Germany", + "detailed": "9, Friedenstraße, Rotes Feld, Lüneburg, Lower Saxony, Germany", + "coords": [ + 10.412018, + 53.245632 + ] + } + }, + { + "name": "158.Treffen des OSM-Stammtisches Bonn", + "url": "https://osmcal.org/event/1075/", + "date": { + "human": "20th December 19:00 (Europe/Berlin)", + "human_short": "20th December", + "whole_day": false, + "start": "2022-12-20T19:00:00+01:00" + } + }, + { + "name": "Lüneburger Mappertreffen (online)", + "url": "https://osmcal.org/event/1134/", + "date": { + "human": "20th December 20:30", + "human_short": "20th December", + "whole_day": false, + "start": "2022-12-20T20:30:00+01:00" + }, + "location": { + "short": "Lüneburg, Lower Saxony, Germany", + "detailed": "9, Friedenstraße, Rotes Feld, Lüneburg, Lower Saxony, Germany", + "coords": [ + 10.412018, + 53.245632 + ] } } ] \ No newline at end of file diff --git a/utils.ts b/utils.ts index 7f537f7..04036c0 100644 --- a/utils.ts +++ b/utils.ts @@ -17,8 +17,7 @@ class utils { makeQuery = () => { this.createEventQueries = `INSERT INTO events(title, description, organizer_actor_id, inserted_at, updated_at, uuid, url, status, category, options, participants_stats, - begins_on, ends_on) - VALUES ${this.agendadulibre.queryToAdd} ${this.osmcal.queryToAdd};`; + begins_on, ends_on) VALUES ${this.agendadulibre.queryToAdd} ${this.osmcal.queryToAdd};`; this.writeFile("event_creation_query.psql", this.createEventQueries, "psql"); } runCreationQuery = async () => { @@ -115,7 +114,7 @@ class utils { return event.name; //+ ' '+ event.location.short }, - doesEventExists: (event: any) => { + doesEventExists: (event: any) : boolean => { const eventAlreadyExists = -1 !== this.localMobilizonEventsByTitle.indexOf(this.osmcal.getTitle(event)); if (!eventAlreadyExists) { @@ -124,6 +123,7 @@ class utils { } this.osmcal.addQuery(event); } + return eventAlreadyExists; }, addQuery: (event: any) => { @@ -219,6 +219,15 @@ class utils { database: parserConfig.db_name, }); } + + createEventQueriesForApi(EventsToCreate: any[]) { + if(EventsToCreate.length){ + console.log('we will create events', EventsToCreate.length); + }else{ + console.log('no events to create'); + } + + } } export default utils;