Skip to content

Commit

Permalink
Convert json -> xml
Browse files Browse the repository at this point in the history
  • Loading branch information
chnuessli committed Aug 5, 2024
1 parent 7e0e0bf commit 0304f58
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 27 deletions.
7 changes: 4 additions & 3 deletions data/csv/access/gates/gates_dispo_srz.csv
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ FeatureCollection,"{'type': 'Feature', 'id': 'node/28105127', 'properties': {'ba
FeatureCollection,"{'type': 'Feature', 'id': 'node/29017653', 'properties': {'barrier': 'gate', 'id': 'node/29017653'}, 'geometry': {'type': 'Point', 'coordinates': [8.6257327, 47.6990598]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/29681059', 'properties': {'barrier': 'gate', 'id': 'node/29681059'}, 'geometry': {'type': 'Point', 'coordinates': [8.6219789, 47.6888296]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/29793258', 'properties': {'barrier': 'gate', 'id': 'node/29793258'}, 'geometry': {'type': 'Point', 'coordinates': [8.5862547, 47.6949665]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/29798693', 'properties': {'barrier': 'gate', 'bicycle': 'yes', 'foot': 'yes', 'id': 'node/29798693'}, 'geometry': {'type': 'Point', 'coordinates': [8.534984099999999, 47.3707]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/29798693', 'properties': {'barrier': 'gate', 'bicycle': 'yes', 'foot': 'yes', 'id': 'node/29798693'}, 'geometry': {'type': 'Point', 'coordinates': [8.5349802, 47.3706991]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/30015184', 'properties': {'barrier': 'gate', 'foot': 'yes', 'id': 'node/30015184'}, 'geometry': {'type': 'Point', 'coordinates': [8.614809, 47.6762311]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/32594845', 'properties': {'barrier': 'lift_gate', 'bicycle': 'yes', 'foot': 'yes', 'lift_gate:type': 'single', 'id': 'node/32594845'}, 'geometry': {'type': 'Point', 'coordinates': [8.6141939, 47.6799014]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/33144172', 'properties': {'access': 'no', 'barrier': 'lift_gate', 'bicycle': 'yes', 'bus': 'yes', 'foot': 'yes', 'material': 'plastic', 'maxwidth': '3.0', 'id': 'node/33144172'}, 'geometry': {'type': 'Point', 'coordinates': [8.6463203, 47.6912666]}}"
Expand Down Expand Up @@ -1048,8 +1048,8 @@ FeatureCollection,"{'type': 'Feature', 'id': 'node/1423259488', 'properties': {'
FeatureCollection,"{'type': 'Feature', 'id': 'node/1423259980', 'properties': {'barrier': 'gate', 'id': 'node/1423259980'}, 'geometry': {'type': 'Point', 'coordinates': [8.7263893, 47.5353362]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/1430502194', 'properties': {'barrier': 'gate', 'id': 'node/1430502194'}, 'geometry': {'type': 'Point', 'coordinates': [8.6930409, 47.253578]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/1447127988', 'properties': {'barrier': 'gate', 'bicycle': 'yes', 'foot': 'yes', 'id': 'node/1447127988'}, 'geometry': {'type': 'Point', 'coordinates': [8.5345579, 47.3703918]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/1447128212', 'properties': {'barrier': 'gate', 'id': 'node/1447128212'}, 'geometry': {'type': 'Point', 'coordinates': [8.534586000000001, 47.3711435]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/1447129123', 'properties': {'barrier': 'gate', 'bicycle': 'yes', 'foot': 'yes', 'motorcar': 'yes', 'motorcycle': 'yes', 'id': 'node/1447129123'}, 'geometry': {'type': 'Point', 'coordinates': [8.5340132, 47.3717483]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/1447128212', 'properties': {'barrier': 'gate', 'id': 'node/1447128212'}, 'geometry': {'type': 'Point', 'coordinates': [8.5345967, 47.3711348]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/1447129123', 'properties': {'barrier': 'gate', 'bicycle': 'yes', 'foot': 'yes', 'motorcar': 'yes', 'motorcycle': 'yes', 'id': 'node/1447129123'}, 'geometry': {'type': 'Point', 'coordinates': [8.5340029, 47.3717453]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/1447129151', 'properties': {'barrier': 'gate', 'foot': 'yes', 'id': 'node/1447129151'}, 'geometry': {'type': 'Point', 'coordinates': [8.5335119, 47.3718077]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/1452431447', 'properties': {'barrier': 'gate', 'id': 'node/1452431447'}, 'geometry': {'type': 'Point', 'coordinates': [8.8464521, 47.4414451]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/1458754442', 'properties': {'barrier': 'gate', 'id': 'node/1458754442'}, 'geometry': {'type': 'Point', 'coordinates': [8.7613061, 47.4816926]}}"
Expand Down Expand Up @@ -6104,3 +6104,4 @@ FeatureCollection,"{'type': 'Feature', 'id': 'node/12087492288', 'properties': {
FeatureCollection,"{'type': 'Feature', 'id': 'node/12087492295', 'properties': {'barrier': 'lift_gate', 'lift_gate:type': 'single', 'locked': 'yes', 'id': 'node/12087492295'}, 'geometry': {'type': 'Point', 'coordinates': [8.5191523, 47.3797234]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/12088048770', 'properties': {'barrier': 'gate', 'id': 'node/12088048770'}, 'geometry': {'type': 'Point', 'coordinates': [8.6206254, 46.954424]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/12088516446', 'properties': {'access': 'private', 'barrier': 'gate', 'id': 'node/12088516446'}, 'geometry': {'type': 'Point', 'coordinates': [8.6588323, 47.3842956]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/12091039265', 'properties': {'barrier': 'gate', 'id': 'node/12091039265'}, 'geometry': {'type': 'Point', 'coordinates': [8.8509497, 47.2998183]}}"
7 changes: 4 additions & 3 deletions data/csv/access/gates/gates_kt_zh.csv
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ FeatureCollection,"{'type': 'Feature', 'id': 'way/1299373867', 'properties': {'b
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]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/29798693', 'properties': {'barrier': 'gate', 'bicycle': 'yes', 'foot': 'yes', 'id': 'node/29798693'}, 'geometry': {'type': 'Point', 'coordinates': [8.534984099999999, 47.3707]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/29798693', 'properties': {'barrier': 'gate', 'bicycle': 'yes', 'foot': 'yes', 'id': 'node/29798693'}, 'geometry': {'type': 'Point', 'coordinates': [8.5349802, 47.3706991]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/30015184', 'properties': {'barrier': 'gate', 'foot': 'yes', 'id': 'node/30015184'}, 'geometry': {'type': 'Point', 'coordinates': [8.614809, 47.6762311]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/33144172', 'properties': {'access': 'no', 'barrier': 'lift_gate', 'bicycle': 'yes', 'bus': 'yes', 'foot': 'yes', 'material': 'plastic', 'maxwidth': '3.0', 'id': 'node/33144172'}, 'geometry': {'type': 'Point', 'coordinates': [8.6463203, 47.6912666]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/34094033', 'properties': {'barrier': 'lift_gate', 'id': 'node/34094033'}, 'geometry': {'type': 'Point', 'coordinates': [8.6953178, 47.2545019]}}"
Expand Down Expand Up @@ -832,8 +832,8 @@ FeatureCollection,"{'type': 'Feature', 'id': 'node/1423259488', 'properties': {'
FeatureCollection,"{'type': 'Feature', 'id': 'node/1423259980', 'properties': {'barrier': 'gate', 'id': 'node/1423259980'}, 'geometry': {'type': 'Point', 'coordinates': [8.7263893, 47.5353362]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/1430502194', 'properties': {'barrier': 'gate', 'id': 'node/1430502194'}, 'geometry': {'type': 'Point', 'coordinates': [8.6930409, 47.253578]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/1447127988', 'properties': {'barrier': 'gate', 'bicycle': 'yes', 'foot': 'yes', 'id': 'node/1447127988'}, 'geometry': {'type': 'Point', 'coordinates': [8.5345579, 47.3703918]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/1447128212', 'properties': {'barrier': 'gate', 'id': 'node/1447128212'}, 'geometry': {'type': 'Point', 'coordinates': [8.534586000000001, 47.3711435]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/1447129123', 'properties': {'barrier': 'gate', 'bicycle': 'yes', 'foot': 'yes', 'motorcar': 'yes', 'motorcycle': 'yes', 'id': 'node/1447129123'}, 'geometry': {'type': 'Point', 'coordinates': [8.5340132, 47.3717483]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/1447128212', 'properties': {'barrier': 'gate', 'id': 'node/1447128212'}, 'geometry': {'type': 'Point', 'coordinates': [8.5345967, 47.3711348]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/1447129123', 'properties': {'barrier': 'gate', 'bicycle': 'yes', 'foot': 'yes', 'motorcar': 'yes', 'motorcycle': 'yes', 'id': 'node/1447129123'}, 'geometry': {'type': 'Point', 'coordinates': [8.5340029, 47.3717453]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/1447129151', 'properties': {'barrier': 'gate', 'foot': 'yes', 'id': 'node/1447129151'}, 'geometry': {'type': 'Point', 'coordinates': [8.5335119, 47.3718077]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/1452431447', 'properties': {'barrier': 'gate', 'id': 'node/1452431447'}, 'geometry': {'type': 'Point', 'coordinates': [8.8464521, 47.4414451]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/1458754442', 'properties': {'barrier': 'gate', 'id': 'node/1458754442'}, 'geometry': {'type': 'Point', 'coordinates': [8.7613061, 47.4816926]}}"
Expand Down Expand Up @@ -5319,3 +5319,4 @@ FeatureCollection,"{'type': 'Feature', 'id': 'node/12087492276', 'properties': {
FeatureCollection,"{'type': 'Feature', 'id': 'node/12087492288', 'properties': {'barrier': 'gate', 'id': 'node/12087492288'}, 'geometry': {'type': 'Point', 'coordinates': [8.5199671, 47.3793167]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/12087492295', 'properties': {'barrier': 'lift_gate', 'lift_gate:type': 'single', 'locked': 'yes', 'id': 'node/12087492295'}, 'geometry': {'type': 'Point', 'coordinates': [8.5191523, 47.3797234]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/12088516446', 'properties': {'access': 'private', 'barrier': 'gate', 'id': 'node/12088516446'}, 'geometry': {'type': 'Point', 'coordinates': [8.6588323, 47.3842956]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/12091039265', 'properties': {'barrier': 'gate', 'id': 'node/12091039265'}, 'geometry': {'type': 'Point', 'coordinates': [8.8509497, 47.2998183]}}"
2 changes: 2 additions & 0 deletions data/csv/defis/defis_dispo_srz.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3635,3 +3635,5 @@ FeatureCollection,"{'type': 'Feature', 'id': 'node/12084475169', 'properties': {
FeatureCollection,"{'type': 'Feature', 'id': 'node/12084668769', 'properties': {'access': 'no', 'defibrillator:location': 'Produktionshalle', 'description': 'für internen Gebrauch bestimmt', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'yes', 'operator': 'Federnfabrik Schmid AG', 'phone': '+41 44 929 68 00', 'source': 'local_knowledge, defikarte.ch', 'id': 'node/12084668769'}, 'geometry': {'type': 'Point', 'coordinates': [8.7178659, 47.2702354]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/12084846169', 'properties': {'defibrillator:location': 'Hautzentrum Züri Oberland', 'description': 'Nur während den Öffnungszeiten zugänglich', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'yes', 'level': '1', 'opening_hours': 'We 08:00-12:00, 14:00-16:30; Fr 08:00-12:00, 14:00-15:30', 'operator': 'Hautzentrum Züri Oberland, Dr. med. Janosch Nowak', 'phone': '+41 55 524 08 08', 'source': 'local_knowledge, defikarte.ch', 'id': 'node/12084846169'}, 'geometry': {'type': 'Point', 'coordinates': [8.8510484, 47.2587646]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/12084955869', 'properties': {'defibrillator:location': 'Grüngasse 19, 8004 Zürich, Departementssekretariat Gesundheits- und Umweltdepartement Stadt Zürich', 'description': 'Während Öffnungszeiten verfügbar. Bitte im 4. Stock melden!', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'yes', 'level': '5', 'opening_hours': 'MO-TH ""08:00-12:00 13:00-17:00 FR 08:00-12:00 13:00-16:00""', 'operator': 'Stadt Zürich, Departementssekretariat', 'phone': '+41 44 412 45 80', 'source': 'local_knowledge, defikarte.ch', 'id': 'node/12084955869'}, 'geometry': {'type': 'Point', 'coordinates': [8.5249883, 47.3732955]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/12090325469', 'properties': {'access': 'yes', 'defibrillator:location': 'Draussen neben Tor 1 richtung Haupteingang (Gelbe AED Box)', 'description': '24/7', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'no', 'level': 'EG', 'opening_hours': '24/7', 'operator': 'Stadt Uster', 'id': 'node/12090325469'}, 'geometry': {'type': 'Point', 'coordinates': [8.7154709, 47.3536041]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/12091020469', 'properties': {'access': 'yes', 'defibrillator:location': 'Schulhaus Rebwiesen', 'description': 'Draussen', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'no', 'level': '0', 'operator': 'Stadt Winterthur', 'source': 'local_knowledge, defikarte.ch', 'id': 'node/12091020469'}, 'geometry': {'type': 'Point', 'coordinates': [8.7057799, 47.4947493]}}"
2 changes: 2 additions & 0 deletions data/csv/defis/defis_kt_zh.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2765,3 +2765,5 @@ FeatureCollection,"{'type': 'Feature', 'id': 'node/12084475169', 'properties': {
FeatureCollection,"{'type': 'Feature', 'id': 'node/12084668769', 'properties': {'access': 'no', 'defibrillator:location': 'Produktionshalle', 'description': 'für internen Gebrauch bestimmt', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'yes', 'operator': 'Federnfabrik Schmid AG', 'phone': '+41 44 929 68 00', 'source': 'local_knowledge, defikarte.ch', 'id': 'node/12084668769'}, 'geometry': {'type': 'Point', 'coordinates': [8.7178659, 47.2702354]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/12084846169', 'properties': {'defibrillator:location': 'Hautzentrum Züri Oberland', 'description': 'Nur während den Öffnungszeiten zugänglich', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'yes', 'level': '1', 'opening_hours': 'We 08:00-12:00, 14:00-16:30; Fr 08:00-12:00, 14:00-15:30', 'operator': 'Hautzentrum Züri Oberland, Dr. med. Janosch Nowak', 'phone': '+41 55 524 08 08', 'source': 'local_knowledge, defikarte.ch', 'id': 'node/12084846169'}, 'geometry': {'type': 'Point', 'coordinates': [8.8510484, 47.2587646]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/12084955869', 'properties': {'defibrillator:location': 'Grüngasse 19, 8004 Zürich, Departementssekretariat Gesundheits- und Umweltdepartement Stadt Zürich', 'description': 'Während Öffnungszeiten verfügbar. Bitte im 4. Stock melden!', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'yes', 'level': '5', 'opening_hours': 'MO-TH ""08:00-12:00 13:00-17:00 FR 08:00-12:00 13:00-16:00""', 'operator': 'Stadt Zürich, Departementssekretariat', 'phone': '+41 44 412 45 80', 'source': 'local_knowledge, defikarte.ch', 'id': 'node/12084955869'}, 'geometry': {'type': 'Point', 'coordinates': [8.5249883, 47.3732955]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/12090325469', 'properties': {'access': 'yes', 'defibrillator:location': 'Draussen neben Tor 1 richtung Haupteingang (Gelbe AED Box)', 'description': '24/7', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'no', 'level': 'EG', 'opening_hours': '24/7', 'operator': 'Stadt Uster', 'id': 'node/12090325469'}, 'geometry': {'type': 'Point', 'coordinates': [8.7154709, 47.3536041]}}"
FeatureCollection,"{'type': 'Feature', 'id': 'node/12091020469', 'properties': {'access': 'yes', 'defibrillator:location': 'Schulhaus Rebwiesen', 'description': 'Draussen', 'emergency': 'defibrillator', 'emergency:phone': '144', 'indoor': 'no', 'level': '0', 'operator': 'Stadt Winterthur', 'source': 'local_knowledge, defikarte.ch', 'id': 'node/12091020469'}, 'geometry': {'type': 'Point', 'coordinates': [8.7057799, 47.4947493]}}"
Loading

0 comments on commit 0304f58

Please sign in to comment.