diff --git a/mappings/extractors/askangela.sh b/mappings/extractors/askangela.sh index a67e826..934efca 100644 --- a/mappings/extractors/askangela.sh +++ b/mappings/extractors/askangela.sh @@ -5,9 +5,9 @@ # pour le monde entier echo -e "\n récupération de données depuis OpenStreetMap \n" -#curl "https://overpass-api.de/api/interpreter?data=[out:json][timeout:25];(node["man_made"="surveillance"]["country"="France"];>;);out;" + url='https://overpass-api.de/api/interpreter?data=[out:json][timeout:25];(node["harassment_prevention"="ask_angela"];>;);out;' -export_file="ask_angela_points_from_openstreetmap.geojson" +export_file="ask_angela_points_from_openstreetmap" # Télécharger le fichier GeoJSON curl -X GET -o $export_file -g $url @@ -16,3 +16,5 @@ date echo -e "nombre de points extraits :" jq '.elements | length' $export_file mv $export_file ../../osm_output/$export_file + +python3 geojson_to_csv.py "../../osm_output/$export_file.geojson" -o "../../osm_output/$export_file.csv" diff --git a/geojson_to_csv.py b/mappings/extractors/geojson_to_csv.py similarity index 94% rename from geojson_to_csv.py rename to mappings/extractors/geojson_to_csv.py index 32040ba..89a0540 100644 --- a/geojson_to_csv.py +++ b/mappings/extractors/geojson_to_csv.py @@ -17,8 +17,7 @@ with open(args.geojson, "r") as f: # afficher le décompte des éléments print("Nombre d'éléments dans le fichier GeoJSON :", len(data["elements"])) - print(json.dumps(data["elements"][0], indent=2)) -# for element in data["elements"]: +# print(json.dumps(data["elements"][0], indent=2)) # initialiser un dataframe vide @@ -52,6 +51,6 @@ if args.output: else: output_file = os.path.splitext(args.geojson)[0] + ".csv" -print('output_file: ', output_file) +print('fichier csv converti : ', output_file) # convertir le dataframe en CSV en incluant toutes les colonnes df.to_csv(output_file, sep=";", index=False) diff --git a/osm_output/ask_angela_points_from_openstreetmap b/osm_output/ask_angela_points_from_openstreetmap new file mode 100644 index 0000000..0e1a88d --- /dev/null +++ b/osm_output/ask_angela_points_from_openstreetmap @@ -0,0 +1,592 @@ +{ + "version": 0.6, + "generator": "Overpass API 0.7.62.1 084b4234", + "osm3s": { + "timestamp_osm_base": "2024-10-17T11:10:58Z", + "copyright": "The data included in this document is from www.openstreetmap.org. The data is made available under ODbL." + }, + "elements": [ + +{ + "type": "node", + "id": 821960105, + "lat": 46.5825312, + "lon": 0.3408317, + "tags": { + "check_date": "2024-02-22", + "contact:city": "Poitiers", + "contact:facebook": "La-Bruyère-Vagabonde-100057078445690", + "contact:housenumber": "31", + "contact:postcode": "86000", + "contact:street": "Rue Édouard Grimaux", + "currency:EUR": "yes", + "email": "labruyere.vagabonde@sfr.fr", + "harassment_prevention": "ask_angela", + "name": "La Bruyere Vagabonde", + "opening_hours": "Tu-Sa 10:00-19:00", + "payment:cash": "yes", + "payment:credit_cards": "yes", + "phone": "+33 5 16 34 47 57", + "ref:FR:SIRET": "53895265600014", + "shop": "books" + } +}, +{ + "type": "node", + "id": 821960281, + "lat": 46.5820663, + "lon": 0.3409686, + "tags": { + "check_date:opening_hours": "2024-02-22", + "contact:facebook": "boutiqueotzi", + "email": "otzi.poitiers@gmail.com", + "harassment_prevention": "ask_angela", + "name": "Ötzi", + "opening_hours": "Tu-Sa 10:00–19:00", + "opening_hours:signed": "no", + "ref:FR:SIRET": "84060641200020", + "shop": "shoes" + } +}, +{ + "type": "node", + "id": 926332915, + "lat": 45.7513353, + "lon": 4.8533207, + "tags": { + "alt_name": "Pharmacie Arrue", + "amenity": "pharmacy", + "dispensing": "yes", + "harassment_prevention": "ask_angela", + "healthcare": "pharmacy", + "name": "Pharmacie Gambetta", + "opening_hours": "Mo-Fr 08:00-20:30; Sa 08:30-20:30", + "phone": "+33 4 78 72 46 24", + "ref:FR:FINESS": "690021332", + "wheelchair": "yes" + } +}, +{ + "type": "node", + "id": 1328307136, + "lat": 46.5746098, + "lon": 0.3786430, + "tags": { + "amenity": "townhall", + "email": "mairie.beaulieu@poitiers.fr", + "harassment_prevention": "ask_angela", + "name": "Mairie de quartier de Beaulieu", + "opening_hours": "Mo-Fr 08:30-12:30,13:30-17:15, Tu[1] 08:30-12:30 off", + "phone": "+33 5 49 30 22 08", + "townhall:type": "Mairie annexe", + "website": "https://www.poitiers.fr/horaires-et-coordonnees-des-mairies-de-poitiers" + } +}, +{ + "type": "node", + "id": 1328395862, + "lat": 46.5885715, + "lon": 0.3608095, + "tags": { + "amenity": "townhall", + "email": "mairie.couronneries@poitiers.fr", + "harassment_prevention": "ask_angela", + "name": "Mairie de quartier des Couronneries", + "opening_hours": "Mo-Fr 08:30-12:30,13:30-17:15", + "phone": "+33 5 49 47 78 85", + "website": "https://www.poitiers.fr/horaires-et-coordonnees-des-mairies-de-poitiers" + } +}, +{ + "type": "node", + "id": 1825539647, + "lat": 45.7516361, + "lon": 4.8432671, + "tags": { + "amenity": "pub", + "brewery": "La voie maltée;Mandrin", + "check_date": "2024-05-10", + "cuisine": "french", + "diet:vegan": "yes", + "harassment_prevention": "ask_angela", + "internet_access": "wlan", + "internet_access:fee": "no", + "name": "Le Court-Circuit", + "opening_hours": "Mo-Fr 10:00-01:00; Sa 16:00-01:00", + "outdoor_seating": "yes", + "phone": "+33 9 54 36 61 29", + "ref:FR:SIRET": "52301063500028", + "website": "https://www.le-court-circuit.fr/" + } +}, +{ + "type": "node", + "id": 1846885829, + "lat": 46.5659483, + "lon": 0.3124482, + "tags": { + "amenity": "townhall", + "email": "mairie.bellejouanne@poitiers.fr", + "harassment_prevention": "ask_angela", + "name": "Mairie de quartier de Bellejouanne", + "opening_hours": "Mo-Fr 08:30-12:30,13:30-17:15", + "phone": "+33 5 49 30 81 52", + "website": "https://www.poitiers.fr/horaires-et-coordonnees-des-mairies-de-poitiers" + } +}, +{ + "type": "node", + "id": 1873359201, + "lat": 46.5920454, + "lon": 0.3651505, + "tags": { + "alt_name": "Centre de Loisirs Maternelles Bleu Citron", + "amenity": "community_centre", + "description": "Accueil de loisirs 3-6 ans", + "harassment_prevention": "ask_angela", + "name": "Bleu Citron", + "opening_hours": "We 12:30-18:30; SH 07:30-18:30", + "phone": "+33 5 49 44 53 58", + "source": "Observations sur Place + GPS", + "website": "https://www.animation.couronneries.fr/vous-accueillir/" + } +}, +{ + "type": "node", + "id": 1873359248, + "lat": 46.5890263, + "lon": 0.3656885, + "tags": { + "amenity": "community_centre", + "contact:city": "Poitiers", + "contact:email": "contact@animation-couronneries.fr", + "contact:facebook": "animation.couronneries", + "contact:housenumber": "37", + "contact:instagram": "centre.animation.couronneries", + "contact:postcode": "86000", + "contact:street": "Rue Pierre de Coubertin", + "email": "contact@animation-couronneries.fr", + "harassment_prevention": "ask_angela", + "name": "Centre d’Animation des Couronneries", + "opening_hours": "Tu-Fr 14:00-18:30", + "phone": "+33 5 49 44 12 48", + "ref:FR:SIRET": "81439055500021", + "website": "https://www.animation.couronneries.fr", + "wheelchair": "yes" + } +}, +{ + "type": "node", + "id": 2144013790, + "lat": 46.5907089, + "lon": 0.3799719, + "tags": { + "amenity": "community_centre", + "contact:facebook": "mdqseve86", + "harassment_prevention": "ask_angela", + "name": "Maison des Quartiers Seve", + "opening_hours": "Mo-Th 11:00-13:30,15:30-18:30; Fr 11:00-13:30", + "phone": "+33 5 49 00 87 28", + "website": "https://seve86.centres-sociaux.fr" + } +}, +{ + "type": "node", + "id": 2206970904, + "lat": 46.5903642, + "lon": 0.3238923, + "tags": { + "amenity": "townhall", + "email": "mairie.belair@poitiers.fr", + "harassment_prevention": "ask_angela", + "name": "Mairie de quartier de Bel-Air", + "opening_hours": "Mo-Fr 08:30-12:30,13:30-17:15", + "phone": "+33 5 49 58 38 80", + "website": "https://www.poitiers.fr/horaires-et-coordonnees-des-mairies-de-poitiers" + } +}, +{ + "type": "node", + "id": 3824873160, + "lat": 45.7474334, + "lon": 4.8583696, + "tags": { + "amenity": "pub", + "brewery": "yes;various", + "harassment_prevention": "ask_angela", + "microbrewery": "yes", + "name": "Malting-Pot", + "opening_hours": "Mo-We 12:00-14:00,17:00-24:00, Th-Sa 12:00-24:00", + "outdoor_seating": "yes", + "phone": "+33 9 70 95 27 78", + "ref:FR:SIRET": "81212339600010", + "website": "https://www.malting-pot.com/" + } +}, +{ + "type": "node", + "id": 4145418850, + "lat": 46.5824409, + "lon": 0.3414729, + "tags": { + "chocolate": "yes", + "email": "magasin.poitiers30@rannou-metivier.com", + "harassment_prevention": "ask_angela", + "name": "Rannou Métivier", + "opening_hours": "Mo 13:45-19:00; Tu-Sa 09:00-19:00", + "phone": "+33 5 49 30 30 10", + "ref:FR:SIRET": "53396888900022", + "shop": "confectionery", + "website": "https://www.rannou-metivier.com/" + } +}, +{ + "type": "node", + "id": 7985485920, + "lat": 46.5891843, + "lon": 0.3565840, + "tags": { + "amenity": "library", + "harassment_prevention": "ask_angela", + "internet_access": "wlan", + "name": "Médiathèque des Couronneries", + "opening_hours": "Jul-Aug Tu-We 10:00-12:00,14:00-18:00, Jul-Aug Th-Fr 14:00-18:00, Jul-Aug Sa 10:00-12:00,14:00-17:00", + "phone": "+33 5 49 30 20 70", + "website": "https://www.mediatheques-grandpoitiers.fr/couronneries.aspx", + "wheelchair": "yes" + } +}, +{ + "type": "node", + "id": 8117393921, + "lat": 45.7471653, + "lon": 4.8381774, + "tags": { + "amenity": "cafe", + "contact:facebook": "okaracafelyon", + "contact:instagram": "okara_cafe", + "diet:vegan": "yes", + "diet:vegetarian": "only", + "harassment_prevention": "ask_angela", + "internet_access": "wlan", + "level": "0", + "name": "Okara", + "opening_hours": "Mo-Fr 08:30-15:00", + "ref:FR:SIRET": "89386018900016", + "website": "https://www.okaracafe.fr/" + } +}, +{ + "type": "node", + "id": 8592775317, + "lat": 46.5828886, + "lon": 0.3417070, + "tags": { + "check_date": "2024-02-22", + "clothes": "underwear", + "email": "gambetta.lingerie@gmail.com", + "harassment_prevention": "ask_angela", + "name": "Gambetta lingerie", + "opening_hours": "Mo 14:00-18:00, Tu-Sa 10:00-13:00,13:30-19:00", + "phone": "+33 6 61 79 91 96", + "ref:FR:SIRET": "87996677800018", + "shop": "clothes", + "website": "https://www.gambetta-lingerie.com/" + } +}, +{ + "type": "node", + "id": 8592775322, + "lat": 46.5833764, + "lon": 0.3412903, + "tags": { + "amenity": "bar", + "contact:facebook": "chezalphonsepoitiers", + "email": "bar-poitiers@chez-alphonse.com", + "harassment_prevention": "ask_angela", + "name": "Chez Alphonse", + "opening_hours": "Tu-Sa 16:00-01:00", + "phone": "+33 6 18 99 12 84", + "ref:FR:SIRET": "98049235900016", + "survey:date": "2021-04-04" + } +}, +{ + "type": "node", + "id": 9095125230, + "lat": 45.7484208, + "lon": 4.8426113, + "tags": { + "addr:city": "Lyon", + "addr:housenumber": "25", + "addr:postcode": "69007", + "addr:street": "Rue Saint-Jérôme", + "alt_name": "totem et tempo", + "amenity": "restaurant", + "contact:facebook": "Totemtempo", + "contact:instagram": "totem_et_tempo", + "email": "contact@totemtempo.com", + "harassment_prevention": "ask_angela", + "name": "Totem & Tempo", + "opening_hours": "Mo-Sa 12:00-01:00", + "phone": "+33 7 67 34 78 77", + "ref:FR:SIREN": "891797342", + "ref:FR:SIRET": "89179734200021", + "website": "https://totemtempo.com/" + } +}, +{ + "type": "node", + "id": 9480796637, + "lat": 46.5900313, + "lon": 0.3828364, + "tags": { + "addr:city": "Poitiers", + "addr:housenumber": "15", + "addr:postcode": "86000", + "addr:street": "Avenue de la Fraternité", + "amenity": "library", + "harassment_prevention": "ask_angela", + "internet_access": "wlan", + "internet_access:fee": "no", + "name": "Médiathèque Saint-Eloi", + "opening_hours": "Tu,Fr 14:00-18:00; We,Sa 10:00-12:00,14:00-18:00", + "phone": "+33 5 49 30 20 75", + "website": "https://www.mediatheques-grandpoitiers.fr/saint-eloi.aspx" + } +}, +{ + "type": "node", + "id": 11579437577, + "lat": 46.5834523, + "lon": 0.3417176, + "tags": { + "email": "poitiers@lebibliovore.fr", + "harassment_prevention": "ask_angela", + "name": "Le bibliovore", + "opening_hours": "Tu-Fr 10:30-12:30,14:30-19:00; Sa 10:00-13:00,14:00-19:00", + "phone": "+33 7 49 68 41 46", + "ref:FR:SIRET": "95070553300012", + "shop": "books", + "website": "https://www.lebibliovore.fr/les-librairies/poitiers/" + } +}, +{ + "type": "node", + "id": 11734847201, + "lat": 46.5817460, + "lon": 0.3408588, + "tags": { + "contact:facebook": "astucesdecuisine.fr", + "email": "info@astucesdecuisine.fr", + "harassment_prevention": "ask_angela", + "name": "Astuces de cuisine", + "opening_hours": "Tu-Sa 10:00-13:00,14:00-18:00", + "phone": "+33 9 86 34 30 14", + "ref:FR:SIRET": "82490617600014", + "shop": "general" + } +}, +{ + "type": "node", + "id": 11932728183, + "lat": 46.5898090, + "lon": 0.3827432, + "tags": { + "addr:city": "Poitiers", + "addr:housenumber": "15", + "addr:postcode": "86000", + "addr:street": "Avenue de la Fraternité", + "amenity": "townhall", + "email": "mairie.sainteloi@poitiers.fr", + "harassment_prevention": "ask_angela", + "name": "Mairie de quartier de Saint-Eloi", + "opening_hours": "Tu-Fr 08:30-12:30,13:30-17:15; Aug 01-30 off; Tu[1] 08:30-12:30 off", + "phone": "+33 5 49 30 20 65", + "townhall:type": "city", + "website": "https://www.poitiers.fr/" + } +}, +{ + "type": "node", + "id": 12091860570, + "lat": 46.5661514, + "lon": 0.3686592, + "tags": { + "contact:facebook": "maisongibauderie", + "contact:instagram": "maison_gibauderie", + "email": "maison.gibauderie@wanadoo.fr", + "harassment_prevention": "ask_angela", + "name": "Maison de la Gibauderie", + "opening_hours": "Mo,Tu,Th 13:30-18:30, We 09:00-12:00,13:00-17:30, Fr 13:30-18:30; SH Mo,Tu,Th-Fr 13:00-18:00, We 10:00-12:00,13:00-18:00", + "phone": "+33 5 49 47 83 57", + "website": "https://maison-gibauderie.fr" + } +}, +{ + "type": "node", + "id": 12091860572, + "lat": 46.5669569, + "lon": 0.3429540, + "tags": { + "amenity": "townhall", + "harassment_prevention": "ask_angela", + "name": "Mairie annexe" + } +}, +{ + "type": "node", + "id": 12091860573, + "lat": 46.5668148, + "lon": 0.3428766, + "tags": { + "alt_name": "Médiathèque 3 cités", + "amenity": "library", + "building": "civic", + "harassment_prevention": "ask_angela", + "name": "Médiathèque des Trois-Cités", + "opening_hours": "Sep-Jun Tu 14:00-19:00, We 09:30-12:00,14:00-18:00, Th 09:30-12:00, Fr 14:00-19:00, Sa 09:30-12:00,14:00-18:00; Jul-Aug Tu,Fr 14:00-18:00, We 09:30-12:00,14:00-18:00, Th 09:30-12:00, Sa 09:30-12:30", + "phone": "+33 5 49 30 21 80", + "website": "https://www.mediatheques-grandpoitiers.fr/trois-cites.aspx", + "wheelchair": "limited" + } +}, +{ + "type": "node", + "id": 12091860578, + "lat": 46.6082502, + "lon": 0.3453262, + "tags": { + "email": "amarrhaj@lelocal.asso.fr", + "harassment_prevention": "ask_angela", + "name": "L'Amarr'HAJ", + "official_name": "Résidence Habitat jeune", + "phone": "+33 5 49 47 72 24", + "social_facility": "assisted_living", + "social_facility:for": "juvenile", + "website": "https://www.habitatjeunes.org/logements/lamarrhaj/" + } +}, +{ + "type": "node", + "id": 12092290924, + "lat": 46.5823393, + "lon": 0.3414430, + "tags": { + "email": "maisonsegeron@gmail.com", + "harassment_prevention": "ask_angela", + "name": "Le Grand Magasin", + "opening_hours": "Tu-Fr 10:30-19:00, Sa 10:00-19:00", + "ref:FR:SIRET": "35262836600028", + "shop": "furniture", + "website": "https://legrandmagasinpoitiers.fr" + } +}, +{ + "type": "node", + "id": 12092290925, + "lat": 46.5829209, + "lon": 0.3420038, + "tags": { + "amenity": "restaurant", + "capacity": "80 + 60 en terrasse", + "contact:facebook": "100089414026353", + "contact:instagram": "lagazette_poitiers", + "cuisine": "french", + "email": "info@lagazettepoitiers.com", + "fax": "+33 5 49 42 80 22", + "harassment_prevention": "ask_angela", + "internet_access": "wlan", + "internet_access:fee": "no", + "name": "La Gazette", + "note": "Ouvert tous les jours . restauration de 12h00 à 14h30 et de 19h00 à 22h30 brunch week-end et jours fériés 11h30 à 15h00 .", + "opening_hours": "Mo-Su 12:00-14:30,19:00-22:30", + "phone": "+33 5 49 61 49 21", + "ref:FR:SIRET": "49250346100013", + "wheelchair": "yes" + } +}, +{ + "type": "node", + "id": 12092290926, + "lat": 46.5834039, + "lon": 0.3416832, + "tags": { + "amenity": "bar", + "contact:facebook": "lepetitalphonsepoitiers", + "email": "local.poitiers@gmail.com", + "harassment_prevention": "ask_angela", + "name": "Le Petit Alphonse", + "opening_hours": "Tu-Sa 16:00-01:00", + "ref:FR:SIRET": "98049235900024" + } +}, +{ + "type": "node", + "id": 12092357011, + "lat": 46.5822324, + "lon": 0.3424257, + "tags": { + "harassment_prevention": "ask_angela", + "name": "The Body Shop", + "opening_hours": "Mo-Sa 10:00–19:00", + "phone": "+33 9 77 94 70 31", + "ref:FR:SIRET": "94926208300015", + "shop": "perfumery", + "website": "https://www.thebodyshop.com" + } +}, +{ + "type": "node", + "id": 12092357013, + "lat": 46.5823388, + "lon": 0.3422069, + "tags": { + "contact:facebook": "Le-petit-Souk-567521616674825", + "contact:instagram": "lepetitsouk", + "contact:pinterest": "lepetitsouk", + "harassment_prevention": "ask_angela", + "name": "Le petit Souk", + "opening_hours": "Mo 14:00-19:00, Tu-Sa 10:00-19:00", + "phone": "+33 5 49 55 93 35", + "ref:FR:SIRET": "48388419300424", + "shop": "general", + "website": "https://www.lepetitsouk.fr" + } +}, +{ + "type": "node", + "id": 12095141963, + "lat": 46.5664260, + "lon": 0.3121249, + "tags": { + "amenity": "library", + "harassment_prevention": "ask_angela", + "name": "Médiathèque Médiasud", + "opening_hours": "Tu 14:00-18:00, We,Fr 09:30-12:00,14:00-18:00, Sa 10:00-12:30,14:00-17:00", + "phone": "+33 5 49 30 20 60", + "website": "https://www.mediatheques-grandpoitiers.fr/mediasud.aspx", + "wheelchair": "yes" + } +}, +{ + "type": "node", + "id": 12095141964, + "lat": 46.5662102, + "lon": 0.3131492, + "tags": { + "amenity": "community_centre", + "contact:facebook": "CAPSudPoitiers", + "contact:instagram": "capsudpoitiers", + "email": "accueil@cap-sud-poitiers.com", + "harassment_prevention": "ask_angela", + "name": "Cap Sud", + "official_name": "Centre d'Animation de Poitiers Sud", + "opening_hours": "Mo 14:00-19:00, Tu-Fr 9:00-12:30,13:30-19:00; SH Mo 18:30+ off", + "phone": "+33 5 49 62 97 4", + "website": "https://www.cap-sud-poitiers.com" + } +} + + ] +}