Skip to content

Commit

Permalink
Convert json -> xml
Browse files Browse the repository at this point in the history
  • Loading branch information
chnuessli committed Jan 30, 2024
1 parent fb36e41 commit c7b0a70
Show file tree
Hide file tree
Showing 14 changed files with 55 additions and 43 deletions.
4 changes: 4 additions & 0 deletions data/csv/access/gates/gates_dispo_srz.csv
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ FeatureCollection,"{'type': 'Feature', 'id': 'way/1240422834', 'properties': {'b
FeatureCollection,"{'type': 'Feature', 'id': 'way/1242596791', 'properties': {'barrier': 'gate', 'locked': 'yes', 'id': 'way/1242596791'}, 'geometry': {'type': 'LineString', 'coordinates': [[8.4112488, 47.4403935], [8.4112757, 47.4404853]]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'way/1242596792', 'properties': {'barrier': 'gate', 'locked': 'yes', 'id': 'way/1242596792'}, 'geometry': {'type': 'LineString', 'coordinates': [[8.4096861, 47.4404959], [8.4096541, 47.4405655]]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'way/1242952619', 'properties': {'barrier': 'gate', 'id': 'way/1242952619'}, 'geometry': {'type': 'LineString', 'coordinates': [[8.6275275, 47.4032421], [8.6275583, 47.4032145]]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'way/1243781666', 'properties': {'access': 'private', 'barrier': 'gate', 'locked': 'yes', 'id': 'way/1243781666'}, 'geometry': {'type': 'LineString', 'coordinates': [[8.4229109, 47.4497312], [8.4229226, 47.4497637], [8.4229209, 47.4497982]]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/25427486', 'properties': {'barrier': 'gate', 'id': 'node/25427486'}, 'geometry': {'type': 'Point', 'coordinates': [8.7360945, 47.5093785]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/25427665', 'properties': {'barrier': 'gate', 'id': 'node/25427665'}, 'geometry': {'type': 'Point', 'coordinates': [8.7236341, 47.5143498]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/28105127', 'properties': {'barrier': 'gate', 'material': 'metal', 'id': 'node/28105127'}, 'geometry': {'type': 'Point', 'coordinates': [8.7039142, 47.275504]}}"
Expand Down Expand Up @@ -5721,3 +5722,6 @@ FeatureCollection,"{'type': 'Feature', 'id': 'node/11547277934', 'properties': {
FeatureCollection,"{'type': 'Feature', 'id': 'node/11551723184', 'properties': {'barrier': 'gate', 'id': 'node/11551723184'}, 'geometry': {'type': 'Point', 'coordinates': [8.6254777, 47.4022502]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/11551723188', 'properties': {'barrier': 'gate', 'id': 'node/11551723188'}, 'geometry': {'type': 'Point', 'coordinates': [8.6255877, 47.4024182]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/11556197519', 'properties': {'barrier': 'gate', 'id': 'node/11556197519'}, 'geometry': {'type': 'Point', 'coordinates': [8.6255405, 47.4013882]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/11561574321', 'properties': {'barrier': 'lift_gate', 'id': 'node/11561574321'}, 'geometry': {'type': 'Point', 'coordinates': [8.6352069, 47.0784319]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/11561574328', 'properties': {'barrier': 'lift_gate', 'id': 'node/11561574328'}, 'geometry': {'type': 'Point', 'coordinates': [8.6352439, 47.078459]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/11561574331', 'properties': {'barrier': 'lift_gate', 'id': 'node/11561574331'}, 'geometry': {'type': 'Point', 'coordinates': [8.6352363, 47.0785084]}}"
3 changes: 3 additions & 0 deletions data/csv/access/gates/gates_kt_sz.csv
Original file line number Diff line number Diff line change
Expand Up @@ -399,3 +399,6 @@ FeatureCollection,"{'type': 'Feature', 'id': 'node/11466369465', 'properties': {
FeatureCollection,"{'type': 'Feature', 'id': 'node/11496864027', 'properties': {'barrier': 'lift_gate', 'lift_gate:type': 'single', 'id': 'node/11496864027'}, 'geometry': {'type': 'Point', 'coordinates': [8.5808086, 47.0473499]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/11496864031', 'properties': {'barrier': 'lift_gate', 'id': 'node/11496864031'}, 'geometry': {'type': 'Point', 'coordinates': [8.579831800000001, 47.0480625]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/11496899368', 'properties': {'barrier': 'lift_gate', 'lift_gate:type': 'single', 'id': 'node/11496899368'}, 'geometry': {'type': 'Point', 'coordinates': [8.5783286, 47.0481793]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/11561574321', 'properties': {'barrier': 'lift_gate', 'id': 'node/11561574321'}, 'geometry': {'type': 'Point', 'coordinates': [8.6352069, 47.0784319]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/11561574328', 'properties': {'barrier': 'lift_gate', 'id': 'node/11561574328'}, 'geometry': {'type': 'Point', 'coordinates': [8.6352439, 47.078459]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/11561574331', 'properties': {'barrier': 'lift_gate', 'id': 'node/11561574331'}, 'geometry': {'type': 'Point', 'coordinates': [8.6352363, 47.0785084]}}"
1 change: 1 addition & 0 deletions data/csv/access/gates/gates_kt_zh.csv
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ FeatureCollection,"{'type': 'Feature', 'id': 'way/1240422834', 'properties': {'b
FeatureCollection,"{'type': 'Feature', 'id': 'way/1242596791', 'properties': {'barrier': 'gate', 'locked': 'yes', 'id': 'way/1242596791'}, 'geometry': {'type': 'LineString', 'coordinates': [[8.4112488, 47.4403935], [8.4112757, 47.4404853]]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'way/1242596792', 'properties': {'barrier': 'gate', 'locked': 'yes', 'id': 'way/1242596792'}, 'geometry': {'type': 'LineString', 'coordinates': [[8.4096861, 47.4404959], [8.4096541, 47.4405655]]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'way/1242952619', 'properties': {'barrier': 'gate', 'id': 'way/1242952619'}, 'geometry': {'type': 'LineString', 'coordinates': [[8.6275275, 47.4032421], [8.6275583, 47.4032145]]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'way/1243781666', 'properties': {'access': 'private', 'barrier': 'gate', 'locked': 'yes', 'id': 'way/1243781666'}, 'geometry': {'type': 'LineString', 'coordinates': [[8.4229109, 47.4497312], [8.4229226, 47.4497637], [8.4229209, 47.4497982]]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/25427486', 'properties': {'barrier': 'gate', 'id': 'node/25427486'}, 'geometry': {'type': 'Point', 'coordinates': [8.7360945, 47.5093785]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/25427665', 'properties': {'barrier': 'gate', 'id': 'node/25427665'}, 'geometry': {'type': 'Point', 'coordinates': [8.7236341, 47.5143498]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/28105127', 'properties': {'barrier': 'gate', 'material': 'metal', 'id': 'node/28105127'}, 'geometry': {'type': 'Point', 'coordinates': [8.7039142, 47.275504]}}"
Expand Down
5 changes: 3 additions & 2 deletions data/csv/defis/defis_dispo_srz.csv
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ FeatureCollection,"{'type': 'Feature', 'id': 'node/8493560317', 'properties': {'
FeatureCollection,"{'type': 'Feature', 'id': 'node/8494549157', 'properties': {'defibrillator:location': 'Links vom Eingang USZ Stettbach - Haus B', 'defibrillator:location:en': 'Left of the entrance to USZ Stettbach - Building B', 'defibrillator:location:fr': ""A gauche de l'entrée USZ Stettbach - Maison B"", 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'no', 'id': 'node/8494549157'}, 'geometry': {'type': 'Point', 'coordinates': [8.6010425, 47.3974871]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/8499467017', 'properties': {'access': 'no', 'defibrillator:location': 'im Gebäude der 3D AG zwei Defibrillatoren verfügbar', 'description': 'während Öffnungszeiten verfügbar, über Telefon alarmierbar', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'yes', 'opening_hours': 'Mo-Fr 08:00-16:00', 'operator': '3D AG', 'phone': '0417682525', 'id': 'node/8499467017'}, 'geometry': {'type': 'Point', 'coordinates': [8.5388394, 47.1988069]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/8500495394', 'properties': {'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'yes', 'id': 'node/8500495394'}, 'geometry': {'type': 'Point', 'coordinates': [8.4931359, 47.3756114]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/8502398617', 'properties': {'access': 'no', 'defibrillator:location': 'Schützenhaus, Schiessstand', 'description': 'Während Öffnungszeiten', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'yes', 'operator': 'Stadt Dübendorf', 'phone': '+41794476768', 'id': 'node/8502398617'}, 'geometry': {'type': 'Point', 'coordinates': [8.6112501, 47.3892408]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/8502398617', 'properties': {'access': 'yes', 'defibrillator:location': 'Eingang zum Schützenhaus', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'no', 'operator': 'Stadt Dübendorf', 'phone': '+41794476768', 'id': 'node/8502398617'}, 'geometry': {'type': 'Point', 'coordinates': [8.6112501, 47.3892408]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/8502426618', 'properties': {'access': 'no', 'defibrillator:location': 'Feuerwehrdepot', 'description': 'während Besetzung Zugang möglich', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'yes', 'operator': 'Feuerwehr', 'id': 'node/8502426618'}, 'geometry': {'type': 'Point', 'coordinates': [8.6320652, 47.4178403]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/8502429617', 'properties': {'access': 'no', 'defibrillator:location': 'Feuerwehrdepot', 'description': 'während Besetzung Zugang möglich', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'yes', 'opening_hours': 'Mo-Fr 07:30-17:00', 'operator': 'Feuerwehr', 'phone': '+41448018300', 'id': 'node/8502429617'}, 'geometry': {'type': 'Point', 'coordinates': [8.6084872, 47.4001772]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/8507986779', 'properties': {'access': 'yes', 'defibrillator:location': 'An Hausfassade. Rechts neben Eingang vom Spar Markt.', 'description': '24h verfügbar', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'no', 'opening_hours': '24/7', 'operator': 'Gemeinde Flurlingen', 'phone': '+41 52 647 01 01', 'id': 'node/8507986779'}, 'geometry': {'type': 'Point', 'coordinates': [8.6275013, 47.6844337]}}"
Expand Down Expand Up @@ -1253,7 +1253,7 @@ FeatureCollection,"{'type': 'Feature', 'id': 'node/8655381410', 'properties': {'
FeatureCollection,"{'type': 'Feature', 'id': 'node/8655381411', 'properties': {'access': 'yes', 'defibrillator:location': 'Rechts neben der Hauptkasse im Sanitätsraum', 'description': 'während Öffnungszeiten verfügbar', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'no', 'operator': 'Vincenzo Bocchetti', 'phone': '052 203 78 87', 'id': 'node/8655381411'}, 'geometry': {'type': 'Point', 'coordinates': [8.705704, 47.4830689]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/8658143939', 'properties': {'access': 'yes', 'defibrillator:location': 'Eingang SQ125 an Innenkasten', 'description': 'während Öffnungszeiten verfügbar', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'yes', 'operator': 'Kollektiv Werk Yanis Labhart / Raumbörse Dynamo', 'phone': '+41 77 961 84 66', 'id': 'node/8658143939'}, 'geometry': {'type': 'Point', 'coordinates': [8.5340402, 47.3847419]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/8676789618', 'properties': {'access': 'no', 'defibrillator:location': 'Schulhaus Grossacher (Eingang Schulleitung)', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'yes', 'opening_hours': 'Mo-Fr 07:00-22:00', 'operator': 'Schule Winkel', 'phone': '+41792823145', 'id': 'node/8676789618'}, 'geometry': {'type': 'Point', 'coordinates': [8.5584284, 47.4875133]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/8676789619', 'properties': {'access': 'no', 'defibrillator:location': 'Schulhaus Rüti (Eingang Haupttrakt)', 'description': 'während Schulbetrieb', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'yes', 'opening_hours': 'Mo-Fr 07:30-17:00', 'operator': 'Schule Winkel', 'phone': '+41794381275', 'id': 'node/8676789619'}, 'geometry': {'type': 'Point', 'coordinates': [8.5605996, 47.4796214]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/8676789619', 'properties': {'access': 'no', 'defibrillator:location': 'Schulhaus Rüti (Eingang Haupttrakt)', 'description': 'während Schulbetrieb', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'yes', 'opening_hours': 'Mo-Fr 07:30-17:00', 'operator': 'Schule Winkel', 'phone': '+41794381275', 'id': 'node/8676789619'}, 'geometry': {'type': 'Point', 'coordinates': [8.5607528, 47.4794416]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/8681975394', 'properties': {'access': 'yes', 'defibrillator:location': 'Seebad Siehbach (Männerbadi), an der Aussenfassade', 'description': '24h verfügbar', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'no', 'opening_hours': '24/7', 'id': 'node/8681975394'}, 'geometry': {'type': 'Point', 'coordinates': [8.5075691, 47.1717122]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/8684208036', 'properties': {'access': 'yes', 'defibrillator:location': 'Links von den Parkplätzen unter dem Vordach', 'description': '24h verfügbar', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'no', 'opening_hours': '24/7', 'operator': 'EMOTT AG', 'phone': '+41 44 881 20 10', 'id': 'node/8684208036'}, 'geometry': {'type': 'Point', 'coordinates': [8.5959336, 47.3834051]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/8689833017', 'properties': {'access': 'yes', 'defibrillator:location': 'Telefonkabine, Schulhaus 3', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'no', 'opening_hours': '24/7', 'id': 'node/8689833017'}, 'geometry': {'type': 'Point', 'coordinates': [8.8945859, 47.1929292]}}"
Expand Down Expand Up @@ -3221,3 +3221,4 @@ FeatureCollection,"{'type': 'Feature', 'id': 'node/11549959869', 'properties': {
FeatureCollection,"{'type': 'Feature', 'id': 'node/11550576569', 'properties': {'access': 'no', 'defibrillator:location': 'BSFH Berufsfachschule', 'description': 'Während der Öffnungszeiten verfügbar', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'no', 'level': '2', 'opening_hours': 'Mo-Fr 8:00-17:00', 'operator': 'BSFH Berufsfachschule', 'phone': '+41 44 302 06 00', 'source': 'local_knowledge, defikarte.ch', 'id': 'node/11550576569'}, 'geometry': {'type': 'Point', 'coordinates': [8.5453409, 47.4159029]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/11554201394', 'properties': {'access': 'yes', 'defibrillator:location': 'Bei der Garage Montiert', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'no', 'opening_hours': '24/7', 'id': 'node/11554201394'}, 'geometry': {'type': 'Point', 'coordinates': [8.729273899999999, 47.5329203]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/11554760769', 'properties': {'access': 'no', 'defibrillator:location': 'Praxisteam Seuzsch', 'description': 'während den Öffnungszeiten verfügbar', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'yes', 'level': 'EG', 'opening_hours': 'Mo-Fr 07:45-17:00 \n\n', 'operator': 'Zahnarztpraxis', 'phone': '+41523351616', 'id': 'node/11554760769'}, 'geometry': {'type': 'Point', 'coordinates': [8.7270189, 47.5372876]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/11561123569', 'properties': {'access': 'no', 'defibrillator:location': 'Praxis Wieshof', 'description': 'Während Öffnungszeiten verfügbar ', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'yes', 'level': 'EG', 'opening_hours': 'Mo-Fr 08:00-12:00, 14:00-17:30,\nSa 08:00-12:00 ', 'operator': 'Arztpraxis ', 'phone': '+41522224478', 'id': 'node/11561123569'}, 'geometry': {'type': 'Point', 'coordinates': [8.6922981, 47.5091091]}}"
Loading

0 comments on commit c7b0a70

Please sign in to comment.