Suite au fil demandant où habitaient les c/français, je me suis dit que ce serait sympa de visualiser ça sur une map.

Bon, c’est pas un travail de recherche peer-reviewed hein, j’ai fait ça vite fait

Méthodologie

  • Récuperer tous les commentaires du post en mettant directement l’url de l’api lemmy pour ce post (ici pour les curieux
  • Faire un .map pour récuperer que chaque commentaire sans metadata
  • Faire un premier virage de tous les commentaire inutile (à la main)
  • Changer chaque commentaire à main pour ville - pays
  • et puis hop, pour chaque emplacement, un tour sur google maps, clic droit, copier les coordonnées.
  • et j’avais déjà une app en JS que j’utilise pour la recherche d’appartement en scrappant les sites immobiler donc je l’ai juste recyclé pour ça.
  • iraldir@lemmy.worldOPM
    link
    fedilink
    Français
    arrow-up
    2
    ·
    1 year ago

    Si quelqu’un veut se tenter à un autre rendu, voici les données utilisées:

    export const users = [
        {name: "ille et vilaine", coords: [48.11982436082029, -1.6417730597485436]},
        {name: "Pays-Bas", coords: [52.17344291046473, 5.7547138421047785]},
        {name: "Bretagne", coords: [48.175850426964715, -2.840452611148036]},
        {name: "Lisbonne , Portugal", coords: [38.72184346261137, -9.138278847111021]},
        {name: "Lyon, France", coords: [45.76524855106012, 4.834786135229137]},
        {name: "Normandie, France", coords: [49.44586787753155, 1.1033803200855936]},
        {name: "Québec, Canada", coords: [46.839069717382706, -71.2037584419997]},
        {name: "Suisse", coords: [46.95843863043897, 8.371115448075015]},
        {name: "Bourges", coords: [47.08751467606408, 2.3941612827515706]},
        {name: "Vexin Français", coords: [49.10372594199734, 1.8911936537469003]},
        {name: "Australie", coords: [-25.042848074819506, 135.60134501125543]},
        {name: "Charente", coords: [45.71615571585792, 0.18139531880481866]},
        {name: "Finlande", coords: [62.01353517081606, 26.15664702922532]},
        {name: "Toronto, Canada", coords: [43.65754653342965, -79.37600868908113]},
        {name: "Loire-Atlantique", coords: [47.21008136667916, -1.5803578003191237]},
        {name: "États-Unis", coords: [40.7176703518493, -74.01883092871492]},
        {name: "Limoges", coords: [45.83361992426411, 1.2617530239107027]},
        {name: "Paris", coords: [48.85498530123273, 2.350465818528494]},
        {name: "New York", coords: [40.7176703518493, -74.01883092871492]},
        {name: "Londres, UK", coords: [51.50801650026435, -0.129760112266496]},
        {name: "Allemagne", coords: [52.5205189922961, 13.415109926589766]},
        {name: "Bruxelles", coords: [50.847434084651994, 4.348965772472988]},
        {name: "Canada", coords: [57.635797022687, -102.4174335089692]},
        {name: "Toulouse", coords: [43.60390553365197, 1.4458860531840922]},
        {name: "Tokyo, Japon", coords: [35.69315466747708, 139.7914490614966]},
        {name: "Taipei, Taiwan", coords: [25.038675015271597, 121.57074840078013]},
        {name: "Berlin", coords: [52.519683367995654, 13.384897524221827]},
        {name: "Béarn", coords: [43.30979952479312, -0.3524400270586048]},
        {name: "Finistère", coords: [48.29551762988545, -4.064407508716992]},
        {name: "Marseille", coords: [43.29556014474992, 5.365196149912553]},
        {name: "Orléans", coords: [47.90239614258457, 1.916675087862636]},
        {name: "Pakse, Laos", coords: [15.11931022366029, 105.82013987253357]},
        {name: "Pays-Bas", coords: [52.43728343563637, 5.059166426969064]},
        {name: "Barcelone", coords: [41.38947219941691, 2.1611132732655753]},
        {name: "Campagne limousine", coords: [45.81816353157049, 1.5761689412546107]},
        {name: "Epinal", coords: [48.180849953685836, 6.458175867799707]},
        {name: "Nice", coords: [43.711107339552406, 7.243882901629054]},
        {name: "Nantes", coords: [47.219551838518534, -1.551067274732088]},
        {name: "Milton Keynes", coords: [52.04077624947397, -0.758245106359404]},
        {name: "Genève", coords: [46.205060176557076, 6.144411504260677]},
        {name: "Metz", coords: [49.11908820180409, 6.173917119288554]},
        {name: "Belgique", coords: [50.92491498721522, 4.185451032677185]},
        {name: "Grenoble", coords: [45.18797649164012, 5.723607436010244]},
        {name: "Lyon", coords: [45.76524855106012, 4.836331087622951]},
        {name: "Bordeaux", coords: [44.83886504738693, -0.5824115359867287]},
        {name: "Biarritz", coords: [43.483414573409156, -1.5575072310272704]},
        {name: "Montpellier", coords: [43.611748829597616, 3.8738253604958404]},
        {name: "Rennes", coords: [48.11764601103827, -1.6798609949704995]},
        {name: "Reims", coords: [49.25902312457746, 4.036052937293846]},
        {name: "Paris", coords: [48.85498530123273, 2.350465818528494]},
        {name: "Paris", coords: [48.85498530123273, 2.350465818528494]},
        {name: "Paris", coords: [48.85498530123273, 2.350465818528494]},
        {name: "Paris", coords: [48.85498530123273, 2.350465818528494]},
        {name: "Paris", coords: [48.85498530123273, 2.350465818528494]},
        {name: "Rouen", coords: [49.44379547140629, 1.0997540213341925]},
        {name: "Loire Atlantique", coords: [47.21008136667916, -1.5803578003191237]},
        {name: "Loire Atlantique", coords: [47.21008136667916, -1.5803578003191237]},
      ]