forked from MapComplete/MapComplete
Themes(charging_stations): add NACS, hide tesla related items from options that can be chosen, fix #2444
This commit is contained in:
parent
f3495639d2
commit
721e8e89c3
11 changed files with 320 additions and 426 deletions
|
@ -852,32 +852,7 @@
|
|||
"path": "./assets/layers/charging_station/Tesla-hpwc-model-s.svg",
|
||||
"class": "medium"
|
||||
},
|
||||
"hideInAnswer": {
|
||||
"or": [
|
||||
{
|
||||
"and": [
|
||||
"car=no",
|
||||
"motorcar=no",
|
||||
"hgv=no",
|
||||
"bus=no"
|
||||
]
|
||||
},
|
||||
{
|
||||
"and": [
|
||||
{
|
||||
"or": [
|
||||
"bicycle=yes",
|
||||
"scooter=yes"
|
||||
]
|
||||
},
|
||||
"car!=yes",
|
||||
"motorcar!=yes",
|
||||
"hgv!=yes",
|
||||
"bus!=yes"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
"hideInAnswer": true
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
|
@ -1112,32 +1087,7 @@
|
|||
"path": "./assets/layers/charging_station/Type2_CCS.svg",
|
||||
"class": "medium"
|
||||
},
|
||||
"hideInAnswer": {
|
||||
"or": [
|
||||
{
|
||||
"and": [
|
||||
"car=no",
|
||||
"motorcar=no",
|
||||
"hgv=no",
|
||||
"bus=no"
|
||||
]
|
||||
},
|
||||
{
|
||||
"and": [
|
||||
{
|
||||
"or": [
|
||||
"bicycle=yes",
|
||||
"scooter=yes"
|
||||
]
|
||||
},
|
||||
"car!=yes",
|
||||
"motorcar!=yes",
|
||||
"hgv!=yes",
|
||||
"bus!=yes"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
"hideInAnswer": true
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
|
@ -1177,44 +1127,13 @@
|
|||
"path": "./assets/layers/charging_station/Tesla-hpwc-model-s.svg",
|
||||
"class": "medium"
|
||||
},
|
||||
"hideInAnswer": {
|
||||
"or": [
|
||||
{
|
||||
"and": [
|
||||
"car=no",
|
||||
"motorcar=no",
|
||||
"hgv=no",
|
||||
"bus=no"
|
||||
]
|
||||
},
|
||||
{
|
||||
"and": [
|
||||
{
|
||||
"or": [
|
||||
"bicycle=yes",
|
||||
"scooter=yes"
|
||||
]
|
||||
},
|
||||
"car!=yes",
|
||||
"motorcar!=yes",
|
||||
"hgv!=yes",
|
||||
"bus!=yes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"and": [
|
||||
"_country!=us"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
"hideInAnswer": true
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"socket:tesla_destination~*",
|
||||
"socket:tesla_destination!=1",
|
||||
"_country=us"
|
||||
"socket:tesla_destination!=1"
|
||||
]
|
||||
},
|
||||
"then": {
|
||||
|
@ -1232,77 +1151,6 @@
|
|||
"class": "medium"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "socket:tesla_destination=1",
|
||||
"ifnot": "socket:tesla_destination=",
|
||||
"then": {
|
||||
"en": "<b>Tesla supercharger (destination)</b> (A Type 2 with cable branded as tesla)",
|
||||
"nl": "<b>Tesla supercharger (destination</b> (Een Type 2 met kabel en Tesla-logo)",
|
||||
"ca": "<b>Tesla supercharger (destinació)</b> (Un tipus 2 amb cable de la marca Tesla)",
|
||||
"cs": "<b>Tesla supercharger</b> (Typ 2 s kabelem pod značkou Tesla)",
|
||||
"de": "<b>Tesla Supercharger (Destination)</b> (Typ 2 mit Kabel von Tesla)",
|
||||
"es": "<b>Supercargador Tesla (destino)</b> (Un tipo 2 con cable de marca Tesla)",
|
||||
"it": "<b>Tesla supercharger (destination)</b> (Un Tipo 2 con cavo brandizzato come tesla)"
|
||||
},
|
||||
"icon": {
|
||||
"path": "./assets/layers/charging_station/Type2_tethered.svg",
|
||||
"class": "medium"
|
||||
},
|
||||
"hideInAnswer": {
|
||||
"or": [
|
||||
{
|
||||
"and": [
|
||||
"car=no",
|
||||
"motorcar=no",
|
||||
"hgv=no",
|
||||
"bus=no"
|
||||
]
|
||||
},
|
||||
{
|
||||
"and": [
|
||||
{
|
||||
"or": [
|
||||
"bicycle=yes",
|
||||
"scooter=yes"
|
||||
]
|
||||
},
|
||||
"car!=yes",
|
||||
"motorcar!=yes",
|
||||
"hgv!=yes",
|
||||
"bus!=yes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"or": [
|
||||
"_country=us"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"socket:tesla_destination~*",
|
||||
"socket:tesla_destination!=1",
|
||||
"_country!=us"
|
||||
]
|
||||
},
|
||||
"then": {
|
||||
"en": "<b>Tesla supercharger (destination)</b> (A Type 2 with cable branded as tesla)",
|
||||
"nl": "<b>Tesla supercharger (destination</b> (Een Type 2 met kabel en Tesla-logo)",
|
||||
"ca": "<b>Tesla supercharger (destinació)</b> (Un tipus 2 amb cable de la marca tesla)",
|
||||
"cs": "<b>Tesla supercharger</b> (Typ 2 s kabelem pod značkou Tesla)",
|
||||
"de": "<b>Tesla supercharger (Destination)</b> (Typ 2 mit Kabel von Tesla)",
|
||||
"es": "<b>Supercargador Tesla (destino)</b> (Un tipo 2 con cable de marca Tesla)",
|
||||
"it": "<b>Tesla supercharger (destination)</b> (Un Tipo 2 con cavo brandizzato come tesla)"
|
||||
},
|
||||
"hideInAnswer": true,
|
||||
"icon": {
|
||||
"path": "./assets/layers/charging_station/Type2_tethered.svg",
|
||||
"class": "medium"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "socket:USB-A=1",
|
||||
"ifnot": "socket:USB-A=",
|
||||
|
@ -1840,6 +1688,69 @@
|
|||
"path": "./assets/layers/charging_station/nema-5-20.svg",
|
||||
"class": "medium"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "socket:nacs=1",
|
||||
"ifnot": "socket:nacs=",
|
||||
"then": {
|
||||
"en": "<b>NACS</b>(North-American Charging System)",
|
||||
"nl": "<b>NACS</b>(Noord-Amerikaanse oplaadstandaard)"
|
||||
},
|
||||
"icon": {
|
||||
"path": "./assets/layers/charging_station/Tesla-hpwc-model-s.svg",
|
||||
"class": "medium"
|
||||
},
|
||||
"hideInAnswer": {
|
||||
"or": [
|
||||
{
|
||||
"and": [
|
||||
"car=no",
|
||||
"motorcar=no",
|
||||
"hgv=no",
|
||||
"bus=no"
|
||||
]
|
||||
},
|
||||
{
|
||||
"and": [
|
||||
{
|
||||
"or": [
|
||||
"bicycle=yes",
|
||||
"scooter=yes"
|
||||
]
|
||||
},
|
||||
"car!=yes",
|
||||
"motorcar!=yes",
|
||||
"hgv!=yes",
|
||||
"bus!=yes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"and": [
|
||||
"_country!=mx",
|
||||
"_country!=us:jp",
|
||||
"_country!=kr",
|
||||
"_country!=ca"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"socket:nacs~*",
|
||||
"socket:nacs!=1"
|
||||
]
|
||||
},
|
||||
"then": {
|
||||
"en": "<b>NACS</b>(North-American Charging System)",
|
||||
"nl": "<b>NACS</b>(Noord-Amerikaanse oplaadstandaard)"
|
||||
},
|
||||
"hideInAnswer": true,
|
||||
"icon": {
|
||||
"path": "./assets/layers/charging_station/Tesla-hpwc-model-s.svg",
|
||||
"class": "medium"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -2161,8 +2072,8 @@
|
|||
]
|
||||
],
|
||||
[
|
||||
"socket:tesla_destination",
|
||||
"socket:tesla_destination",
|
||||
"socket:USB-A",
|
||||
"socket:USB-A",
|
||||
{
|
||||
"en": "<b>Tesla supercharger (destination)</b> (A Type 2 with cable branded as tesla)",
|
||||
"nl": "<b>Tesla supercharger (destination</b> (Een Type 2 met kabel en Tesla-logo)",
|
||||
|
@ -2172,33 +2083,6 @@
|
|||
"es": "<b>Supercargador Tesla (destino)</b> (Un tipo 2 con cable de marca Tesla)",
|
||||
"it": "<b>Tesla supercharger (destination)</b> (A Type 2 with cable branded as tesla)"
|
||||
},
|
||||
"Type2_tethered.svg",
|
||||
[
|
||||
"230",
|
||||
"400"
|
||||
],
|
||||
[
|
||||
"16",
|
||||
"32"
|
||||
],
|
||||
[
|
||||
"11 kW",
|
||||
"22 kW"
|
||||
]
|
||||
],
|
||||
[
|
||||
"socket:USB-A",
|
||||
"socket:USB-A",
|
||||
{
|
||||
"en": "<b>USB</b> to charge phones and small electronics",
|
||||
"nl": "<b>USB</b> om GSMs en kleine electronica op te laden",
|
||||
"ca": "<b>USB</b> per carregar telèfons i dispositius electrònics petits",
|
||||
"cs": "<b>USB</b> k nabíjení telefonů a drobné elektroniky",
|
||||
"de": "<b>USB</b> zum Aufladen von Handys und kleinen Elektrogeräten",
|
||||
"es": "<b>USB</b> para cargar teléfonos y pequeños dispositivos electrónicos",
|
||||
"it": "<b>USB</b> to charge phones and small electronics",
|
||||
"uk": "<b>USB</b> для зарядки телефонів і дрібної електроніки"
|
||||
},
|
||||
"usb_port.svg",
|
||||
[
|
||||
"5"
|
||||
|
@ -2216,13 +2100,14 @@
|
|||
"socket:bosch_3pin",
|
||||
"socket:bosch_3pin",
|
||||
{
|
||||
"en": "<b>Bosch Active Connect with 3 pins</b> and cable",
|
||||
"nl": "<b>Bosch Active Connect met 3 pinnen</b> aan een kabel",
|
||||
"ca": "<b>Bosch Active Connect amb 3 pins</b> i cable",
|
||||
"cs": "<b>Bosch Active Connect se 3 kolíky</b> a kabelem",
|
||||
"de": "<b> Bosch Active Connect mit 3 Pins </b> und Kabel",
|
||||
"es": "<b>Bosch Active Connect con 3 pines</b> y cable",
|
||||
"it": "<b>Bosch Active Connect with 3 pins</b> and cable"
|
||||
"en": "<b>USB</b> to charge phones and small electronics",
|
||||
"nl": "<b>USB</b> om GSMs en kleine electronica op te laden",
|
||||
"ca": "<b>USB</b> per carregar telèfons i dispositius electrònics petits",
|
||||
"cs": "<b>USB</b> k nabíjení telefonů a drobné elektroniky",
|
||||
"de": "<b>USB</b> zum Aufladen von Handys und kleinen Elektrogeräten",
|
||||
"es": "<b>USB</b> para cargar teléfonos y pequeños dispositivos electrónicos",
|
||||
"it": "<b>USB</b> to charge phones and small electronics",
|
||||
"uk": "<b>USB</b> для зарядки телефонів і дрібної електроніки"
|
||||
},
|
||||
"bosch-3pin.svg",
|
||||
[],
|
||||
|
@ -2233,13 +2118,13 @@
|
|||
"socket:bosch_5pin",
|
||||
"socket:bosch_5pin",
|
||||
{
|
||||
"en": "<b>Bosch Active Connect with 5 pins</b> and cable",
|
||||
"nl": "<b>Bosch Active Connect met 5 pinnen</b> aan een kabel",
|
||||
"ca": "<b>Bosch Active Connect amb 5 pins</b> i cable",
|
||||
"cs": "<b>Bosch Active Connect s 5 kolíny</b> a kabelem",
|
||||
"de": "<b> Bosch Active Connect mit 5 Pins </b> und Kabel",
|
||||
"es": "<b>Bosch Active Connect con 5 pines</b> y cable",
|
||||
"it": "<b>Bosch Active Connect with 5 pins</b> and cable"
|
||||
"en": "<b>Bosch Active Connect with 3 pins</b> and cable",
|
||||
"nl": "<b>Bosch Active Connect met 3 pinnen</b> aan een kabel",
|
||||
"ca": "<b>Bosch Active Connect amb 3 pins</b> i cable",
|
||||
"cs": "<b>Bosch Active Connect se 3 kolíky</b> a kabelem",
|
||||
"de": "<b> Bosch Active Connect mit 3 Pins </b> und Kabel",
|
||||
"es": "<b>Bosch Active Connect con 3 pines</b> y cable",
|
||||
"it": "<b>Bosch Active Connect with 3 pins</b> and cable"
|
||||
},
|
||||
"bosch-5pin.svg",
|
||||
[],
|
||||
|
@ -2250,13 +2135,13 @@
|
|||
"socket:bs1363",
|
||||
"socket:bs1363",
|
||||
{
|
||||
"en": "<b>BS1363</b> (Type G)",
|
||||
"nl": "<b>BS1363</b> (VK 3-pin)",
|
||||
"ca": "<b>BS1363</b> (Tipus G)",
|
||||
"cs": "<b>BS1363</b> (Typ G)",
|
||||
"de": "<b>BS1363</b> (Typ G)",
|
||||
"es": "<b>BS1363</b> (Tipo G)",
|
||||
"it": "<b>BS1363</b> (Type G)"
|
||||
"en": "<b>Bosch Active Connect with 5 pins</b> and cable",
|
||||
"nl": "<b>Bosch Active Connect met 5 pinnen</b> aan een kabel",
|
||||
"ca": "<b>Bosch Active Connect amb 5 pins</b> i cable",
|
||||
"cs": "<b>Bosch Active Connect s 5 kolíny</b> a kabelem",
|
||||
"de": "<b> Bosch Active Connect mit 5 Pins </b> und Kabel",
|
||||
"es": "<b>Bosch Active Connect con 5 pines</b> y cable",
|
||||
"it": "<b>Bosch Active Connect with 5 pins</b> and cable"
|
||||
},
|
||||
"bs1363.svg",
|
||||
[
|
||||
|
@ -2273,13 +2158,13 @@
|
|||
"socket:nema5_15",
|
||||
"socket:nema5_15",
|
||||
{
|
||||
"en": "<b>NEMA 5-15</b> (Type B)",
|
||||
"nl": "<b>NEMA 5-15</b> (VS 3-pin)",
|
||||
"ca": "<b>NEMA 5-15</b> (Tipus B)",
|
||||
"cs": "<b>NEMA 5-15</b> (Typ B)",
|
||||
"de": "<b>NEMA 5-15</b> (Typ B)",
|
||||
"es": "<b>NEMA 5-15</b> (Tipo B)",
|
||||
"it": "<b>NEMA 5-15</b> (Type B)"
|
||||
"en": "<b>BS1363</b> (Type G)",
|
||||
"nl": "<b>BS1363</b> (VK 3-pin)",
|
||||
"ca": "<b>BS1363</b> (Tipus G)",
|
||||
"cs": "<b>BS1363</b> (Typ G)",
|
||||
"de": "<b>BS1363</b> (Typ G)",
|
||||
"es": "<b>BS1363</b> (Tipo G)",
|
||||
"it": "<b>BS1363</b> (Type G)"
|
||||
},
|
||||
"nema-5-15.svg",
|
||||
[
|
||||
|
@ -2296,13 +2181,13 @@
|
|||
"socket:sev1011_t23",
|
||||
"socket:sev1011_t23",
|
||||
{
|
||||
"en": "<b>SEV 1011 T23</b> (Type J)",
|
||||
"nl": "<b>SEV 1011 T23</b> (Zwitserse 3-pin)",
|
||||
"ca": "<b>SEV 1011 T23</b> (Tipus J)",
|
||||
"cs": "<b>SEV 1011 T23</b> (Typ J)",
|
||||
"de": "<b>SEV 1011 T23</b> (Typ J)",
|
||||
"es": "<b>SEV 1011 T23</b> (Tipo J)",
|
||||
"it": "<b>SEV 1011 T23</b> (Type J)"
|
||||
"en": "<b>NEMA 5-15</b> (Type B)",
|
||||
"nl": "<b>NEMA 5-15</b> (VS 3-pin)",
|
||||
"ca": "<b>NEMA 5-15</b> (Tipus B)",
|
||||
"cs": "<b>NEMA 5-15</b> (Typ B)",
|
||||
"de": "<b>NEMA 5-15</b> (Typ B)",
|
||||
"es": "<b>NEMA 5-15</b> (Tipo B)",
|
||||
"it": "<b>NEMA 5-15</b> (Type B)"
|
||||
},
|
||||
"typej.svg",
|
||||
[
|
||||
|
@ -2319,13 +2204,13 @@
|
|||
"socket:as3112",
|
||||
"socket:as3112",
|
||||
{
|
||||
"en": "<b>AS3112</b> (Type I)",
|
||||
"nl": "<b>AS3112</b> (Australische 3-pin)",
|
||||
"ca": "<b>AS3112</b> (Tipus I)",
|
||||
"cs": "<b>AS3112</b> (Typ I)",
|
||||
"de": "<b>AS3112</b> (Typ I)",
|
||||
"es": "<b>AS3112</b> (Tipo I)",
|
||||
"it": "<b>AS3112</b> (Type I)"
|
||||
"en": "<b>SEV 1011 T23</b> (Type J)",
|
||||
"nl": "<b>SEV 1011 T23</b> (Zwitserse 3-pin)",
|
||||
"ca": "<b>SEV 1011 T23</b> (Tipus J)",
|
||||
"cs": "<b>SEV 1011 T23</b> (Typ J)",
|
||||
"de": "<b>SEV 1011 T23</b> (Typ J)",
|
||||
"es": "<b>SEV 1011 T23</b> (Tipo J)",
|
||||
"it": "<b>SEV 1011 T23</b> (Type J)"
|
||||
},
|
||||
"as3112.svg",
|
||||
[
|
||||
|
@ -2342,13 +2227,13 @@
|
|||
"socket:nema_5_20",
|
||||
"socket:nema_5_20",
|
||||
{
|
||||
"en": "<b>NEMA 5-20</b> (Type B)",
|
||||
"nl": "<b>NEMA 5-20</b> (VS 3-pin)",
|
||||
"ca": "<b>NEMA 5-20</b> (Tipus B)",
|
||||
"cs": "<b>NEMA 5-20</b> (Typ B)",
|
||||
"de": "<b>NEMA 5-20</b> (Typ B)",
|
||||
"es": "<b>NEMA 5-20</b> (Tipo B)",
|
||||
"it": "<b>NEMA 5-20</b> (Type B)"
|
||||
"en": "<b>AS3112</b> (Type I)",
|
||||
"nl": "<b>AS3112</b> (Australische 3-pin)",
|
||||
"ca": "<b>AS3112</b> (Tipus I)",
|
||||
"cs": "<b>AS3112</b> (Typ I)",
|
||||
"de": "<b>AS3112</b> (Typ I)",
|
||||
"es": "<b>AS3112</b> (Tipo I)",
|
||||
"it": "<b>AS3112</b> (Type I)"
|
||||
},
|
||||
"nema-5-20.svg",
|
||||
[
|
||||
|
@ -2360,6 +2245,23 @@
|
|||
[
|
||||
"2.4 kW"
|
||||
]
|
||||
],
|
||||
[
|
||||
"socket:nacs",
|
||||
"socket:nacs",
|
||||
{
|
||||
"en": "<b>NEMA 5-20</b> (Type B)",
|
||||
"nl": "<b>NEMA 5-20</b> (VS 3-pin)",
|
||||
"ca": "<b>NEMA 5-20</b> (Tipus B)",
|
||||
"cs": "<b>NEMA 5-20</b> (Typ B)",
|
||||
"de": "<b>NEMA 5-20</b> (Typ B)",
|
||||
"es": "<b>NEMA 5-20</b> (Tipo B)",
|
||||
"it": "<b>NEMA 5-20</b> (Type B)"
|
||||
},
|
||||
"Tesla-hpwc-model-s.svg",
|
||||
[],
|
||||
[],
|
||||
[]
|
||||
]
|
||||
]
|
||||
},
|
||||
|
@ -3753,7 +3655,7 @@
|
|||
"es": "Tiene un conector <div style='display: inline-block'><b><b>Supercargador Tesla (destino)</b> (Un tipo 2 con cable de marca Tesla)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Type2_tethered.svg'/></div>",
|
||||
"it": "Ha un <div style='display: inline-block'><b><b>Tesla supercharger (destination)</b> (Un Tipo 2 con cavo brandizzato come tesla)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Type2_tethered.svg'/></div> connettore"
|
||||
},
|
||||
"osmTags": "socket:tesla_destination~*"
|
||||
"osmTags": "socket:USB-A~*"
|
||||
},
|
||||
{
|
||||
"question": {
|
||||
|
@ -3766,7 +3668,7 @@
|
|||
"it": "Ha un <div style='display: inline-block'><b><b>USB</b> per caricare telefoni e piccoli dispositivi elettronici</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/usb_port.svg'/></div> connettore",
|
||||
"uk": "Має <div style='display: inline-block'><b><b>USB</b> для зарядки телефонів і малої електроніки</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/usb_port.svg'/></div> роз'єм"
|
||||
},
|
||||
"osmTags": "socket:USB-A~*"
|
||||
"osmTags": "socket:bosch_3pin~*"
|
||||
},
|
||||
{
|
||||
"question": {
|
||||
|
@ -3778,7 +3680,7 @@
|
|||
"es": "Tiene un conector <div style='display: inline-block'><b><b>Bosch Active Connect con 3 pines</b> y cable</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/bosch-3pin.svg'/></div>",
|
||||
"it": "Ha un <div style='display: inline-block'><b><b>Bosch Active Connect con 3 pin</b> e cavo</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/bosch-3pin.svg'/></div> connettore"
|
||||
},
|
||||
"osmTags": "socket:bosch_3pin~*"
|
||||
"osmTags": "socket:bosch_5pin~*"
|
||||
},
|
||||
{
|
||||
"question": {
|
||||
|
@ -3790,7 +3692,7 @@
|
|||
"es": "Tiene un conector <div style='display: inline-block'><b><b>Bosch Active Connect con 5 pines</b> y cable</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/bosch-5pin.svg'/></div>",
|
||||
"it": "Ha un <div style='display: inline-block'><b><b>Bosch Active Connect con 5 pin</b> e cavo</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/bosch-5pin.svg'/></div> connettore"
|
||||
},
|
||||
"osmTags": "socket:bosch_5pin~*"
|
||||
"osmTags": "socket:bs1363~*"
|
||||
},
|
||||
{
|
||||
"question": {
|
||||
|
@ -3802,7 +3704,7 @@
|
|||
"es": "Tiene un conector <div style='display: inline-block'><b><b>BS1363</b> (Tipo G)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/bs1363.svg'/></div>",
|
||||
"it": "Ha un <div style='display: inline-block'><b><b>BS1363</b> (Tipo G)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/bs1363.svg'/></div> connettore"
|
||||
},
|
||||
"osmTags": "socket:bs1363~*"
|
||||
"osmTags": "socket:nema5_15~*"
|
||||
},
|
||||
{
|
||||
"question": {
|
||||
|
@ -3814,7 +3716,7 @@
|
|||
"es": "Tiene un conector <div style='display: inline-block'><b><b>NEMA 5-15</b> (Tipo B)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/nema-5-15.svg'/></div>",
|
||||
"it": "Ha un <div style='display: inline-block'><b><b>NEMA 5-15</b> (Tipo B)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/nema-5-15.svg'/></div> connettore"
|
||||
},
|
||||
"osmTags": "socket:nema5_15~*"
|
||||
"osmTags": "socket:sev1011_t23~*"
|
||||
},
|
||||
{
|
||||
"question": {
|
||||
|
@ -3826,7 +3728,7 @@
|
|||
"es": "Tiene un conector <div style='display: inline-block'><b><b>SEV 1011 T23</b> (Tipo J)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/typej.svg'/></div>",
|
||||
"it": "Ha un <div style='display: inline-block'><b><b>SEV 1011 T23</b> (Tipo J)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/typej.svg'/></div> connettore"
|
||||
},
|
||||
"osmTags": "socket:sev1011_t23~*"
|
||||
"osmTags": "socket:as3112~*"
|
||||
},
|
||||
{
|
||||
"question": {
|
||||
|
@ -3838,7 +3740,7 @@
|
|||
"es": "Tiene un conector <div style='display: inline-block'><b><b>AS3112</b> (Tipo I)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/as3112.svg'/></div>",
|
||||
"it": "Ha un <div style='display: inline-block'><b><b>AS3112</b> (Tipo I)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/as3112.svg'/></div> connettore"
|
||||
},
|
||||
"osmTags": "socket:as3112~*"
|
||||
"osmTags": "socket:nema_5_20~*"
|
||||
},
|
||||
{
|
||||
"question": {
|
||||
|
@ -3850,7 +3752,7 @@
|
|||
"es": "Tiene un conector <div style='display: inline-block'><b><b>NEMA 5-20</b> (Tipo B)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/nema-5-20.svg'/></div>",
|
||||
"it": "Ha un <div style='display: inline-block'><b><b>NEMA 5-20</b> (Tipo B)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/nema-5-20.svg'/></div> connettore"
|
||||
},
|
||||
"osmTags": "socket:nema_5_20~*"
|
||||
"osmTags": "socket:nacs~*"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -4046,6 +3948,15 @@
|
|||
"kW",
|
||||
"MW"
|
||||
]
|
||||
},
|
||||
"socket:nacs:voltage": "voltage",
|
||||
"socket:nacs:current": "current",
|
||||
"socket:nacs:output": {
|
||||
"quantity": "power",
|
||||
"denominations": [
|
||||
"kW",
|
||||
"MW"
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
|
@ -4062,4 +3973,4 @@
|
|||
},
|
||||
"neededChangesets": 10
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,12 +6,7 @@ import FilterConfigJson from "../../../src/Models/ThemeConfig/Json/FilterConfigJ
|
|||
import RewritableConfigJson from "../../../src/Models/ThemeConfig/Json/RewritableConfigJson"
|
||||
import { TagRenderingConfigJson } from "../../../src/Models/ThemeConfig/Json/TagRenderingConfigJson"
|
||||
|
||||
|
||||
function colonSplit(value: string): string[] {
|
||||
return value.split(";").map(v => v.replace(/"/g, "").trim()).filter(s => s !== "")
|
||||
}
|
||||
|
||||
function loadCsv(file): {
|
||||
interface ChargingStandard {
|
||||
key: string,
|
||||
id: string,
|
||||
image: string,
|
||||
|
@ -23,8 +18,15 @@ function loadCsv(file): {
|
|||
commonOutputs?: string[],
|
||||
associatedVehicleTypes?: string[],
|
||||
neverAssociatedWith?: string[],
|
||||
extraVisualisationCondition: string
|
||||
}[] {
|
||||
extraVisualisationCondition: string,
|
||||
overrideHideInAnswer: string
|
||||
}
|
||||
|
||||
function colonSplit(value: string): string[] {
|
||||
return value.split(";").map(v => v.replace(/"/g, "").trim()).filter(s => s !== "")
|
||||
}
|
||||
|
||||
function loadCsv(file): ChargingStandard[] {
|
||||
const entries: string[] = Utils.NoNull(readFileSync(file, "utf8").split("\n").map(str => str.trim()))
|
||||
const header = entries.shift().split(",")
|
||||
|
||||
|
@ -72,7 +74,7 @@ function run(file, protojson) {
|
|||
},
|
||||
]
|
||||
|
||||
const entries = loadCsv(file)
|
||||
const entries: ChargingStandard[] = loadCsv(file)
|
||||
|
||||
const protoString = readFileSync(protojson, "utf8")
|
||||
const proto = <LayerConfigJson>JSON.parse(protoString)
|
||||
|
@ -142,6 +144,17 @@ function run(file, protojson) {
|
|||
|
||||
}
|
||||
|
||||
if (e.overrideHideInAnswer) {
|
||||
if (e.overrideHideInAnswer.toLowerCase() === "true") {
|
||||
json["hideInAnswer"] = true
|
||||
} else if (e.overrideHideInAnswer.toLowerCase() === "false") {
|
||||
json["hideInAnswer"] = false
|
||||
|
||||
} else {
|
||||
json["hideInAnswer"] = e.overrideHideInAnswer
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
overview_question_answers.push(json)
|
||||
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
key,id,image,description:en,countryWhiteList,countryBlackList,commonVoltages,commonCurrents,commonOutputs,description:nl,associatedVehicleTypes,neverAssociatedWith,extraVisualisationCondition
|
||||
socket:schuko,,CEE7_4F.svg,<b>Schuko wall plug</b> without ground pin (CEE7/4 type F),af;al;dz;as;ad;ao;am;aw;az;by;bt;ba;bg;cv;td;cl;hr;dk;eg;ee;et;fo;fr;pf;ge;gr;gl;gn;gw;is;id;ir;jo;kz;kg;la;lv;lr;ly;lt;lu;mo;mr;md;mc;mn;me;mz;nl;nc;ne;kp;mk;pt;qa;ro;ru;rw;sm;sk;si;kr;es;sr;tj;th;tl;tr;tm;ua;uy;uz;vn,,230,16,3.6 kW,<b>Schuko stekker</b> zonder aardingspin (CEE7/4 type F),*,,
|
||||
socket:typee,,TypeE.svg,<b>European wall plug</b> with ground pin (CEE7/4 type E),be;bj;bf;bi;cm;cf;td;km;cz;dk;dj;gq;et;fo;fr;gf;pf;gl;gp;gw;la;lr;mg;ml;mq;mr;mu;mc;mn;ma;ne;pl;pt;rw;mf;pm;sn;sk;sy;tl;tn;uz,,230,16,3 kW;22 kW;,<b>Europese stekker</b> met aardingspin (CEE7/4 type E),*,,
|
||||
socket:chademo,,Chademo_type4.svg,<b>Chademo</b>,,,500,120,50 kW,<b>Chademo</b>,car;motorcar;hgv;bus,bicycle;scooter,
|
||||
socket:type1_cable,,Type1_J1772.svg,<b>Type 1 with cable</b> (J1772),,,200;240,32,3.7 kW;7 kW,<b>Type 1 met kabel</b> (J1772),car;motorcar;hgv;bus,bicycle;scooter,
|
||||
socket:type1,,Type1_J1772.svg,<b>Type 1 <i>without</i> cable</b> (J1772),,,200;240,32,3.7 kW;6.6 kW;7 kW;7.2 kW,<b>Type 1 <i>zonder</i> kabel</b> (J1772),car;motorcar;hgv;bus,bicycle;scooter,
|
||||
socket:type1_combo,,Type1-ccs.svg,<b>Type 1 CCS</b> (aka Type 1 Combo),,,400;1000,50;125,50 kW;62.5 kW;150 kW;350 kW;,<b>Type 1 CCS</b> (ook gekend als Type 1 Combo),car;motorcar;hgv;bus,bicycle;scooter,
|
||||
socket:tesla_supercharger,,Tesla-hpwc-model-s.svg,<b>Tesla Supercharger</b>,,,480,125;350,120 kW;150 kW;250 kW,<b>Tesla Supercharger</b>,car;motorcar;hgv;bus,bicycle;scooter,
|
||||
socket:type2,,Type2_socket.svg,<b>Type 2</b> (mennekes),,,230;400,16;32,11 kW;22 kW,<b>Type 2</b> (mennekes),car;motorcar;hgv;bus,bicycle;scooter,
|
||||
socket:type2_combo,,Type2_CCS.svg,<b>Type 2 CCS</b> (mennekes),,,500;920,125;350,50 kW,<b>Type 2 CCS</b> (mennekes),car;motorcar;hgv;bus,bicycle;scooter,
|
||||
socket:type2_cable,,Type2_tethered.svg,<b>Type 2 with cable</b> (mennekes),,,230;400,16;32,11 kW;22 kW,<b>Type 2 met kabel</b> (J1772),car;motorcar;hgv;bus,bicycle;scooter,
|
||||
socket:tesla_supercharger_ccs,,Type2_CCS.svg,<b>Tesla Supercharger CCS</b> (a branded type2_css),,,500;920,125;350,50 kW,<b>Tesla Supercharger CCS</b> (een type2 CCS met Tesla-logo),car;motorcar;hgv;bus,bicycle;scooter,
|
||||
socket:tesla_destination,socket:tesla_destination_us,Tesla-hpwc-model-s.svg,<b>Tesla Supercharger (destination)</b>,us,,480,125;350,120 kW;150 kW;250 kW,<b>Tesla Supercharger (destination)</b>,car;motorcar;hgv;bus,bicycle;scooter,_country=us
|
||||
socket:tesla_destination,,Type2_tethered.svg,<b>Tesla supercharger (destination)</b> (A Type 2 with cable branded as tesla),,us,230;400,16;32,11 kW;22 kW,<b>Tesla supercharger (destination</b> (Een Type 2 met kabel en Tesla-logo),car;motorcar;hgv;bus,bicycle;scooter,_country!=us
|
||||
socket:USB-A,,usb_port.svg,<b>USB</b> to charge phones and small electronics,,,5,1;2,5W;10W,<b>USB</b> om GSMs en kleine electronica op te laden,*,,
|
||||
socket:bosch_3pin,,bosch-3pin.svg,<b>Bosch Active Connect with 3 pins</b> and cable,,,,,,<b>Bosch Active Connect met 3 pinnen</b> aan een kabel,bicycle,car;motorcar;hgv;bus,
|
||||
socket:bosch_5pin,,bosch-5pin.svg,<b>Bosch Active Connect with 5 pins</b> and cable,,,,,,<b>Bosch Active Connect met 5 pinnen</b> aan een kabel,bicycle,car;motorcar;hgv;bus,
|
||||
socket:bs1363,,bs1363.svg,<b>BS1363</b> (Type G),bh;bd;bz;bt;bw;bn;kh;cy;dm;gh;gi;gd;gg;gy;id;iq;ie;im;je;jo;ke;kw;lb;mo;mw;mv;mt;mu;ng;om;pk;qa;rw;sa;sc;sl;sb;lk;sd;tz;ug;vu;vn;ye;zm;zw,,230,13,3kW,<b>BS1363</b> (VK 3-pin),*,,
|
||||
socket:nema5_15,,nema-5-15.svg,<b>NEMA 5-15</b> (Type B),as;ai;ag;aw;bb;bz;bm;bo;vg;ky;co;cr;cu;do;ec;sv;pf;gu;gt;gy;ht;hn;jm;jp;jo;la;lb;lr;mx;fm;ms;ni;ne;pw;pa;py;pe;ph;pr;sr;th;tt;tm;ve;vn,,120,15,1.8 kW,<b>NEMA 5-15</b> (VS 3-pin),*,,
|
||||
socket:sev1011_t23,,typej.svg,<b>SEV 1011 T23</b> (Type J),jo;li;mg;mv;rw;ch,,230,16,3.7 kW,<b>SEV 1011 T23</b> (Zwitserse 3-pin),*,,
|
||||
socket:as3112,,as3112.svg,<b>AS3112</b> (Type I),as;ar;au;cn;ck;fj;ki;nr;nz;nu;pg;sb;tj;to;tv;uy;uz;vu,,230,10,2.3 kW,<b>AS3112</b> (Australische 3-pin),*,,
|
||||
socket:nema_5_20,,nema-5-20.svg,<b>NEMA 5-20</b> (Type B),as;ai;ag;aw;bb;bz;bm;bo;vg;ky;co;cr;cu;do;ec;sv;pf;gu;gt;gy;ht;hn;jm;jp;jo;la;lb;lr;mx;fm;ms;ni;ne;pw;pa;py;pe;ph;pr;sr;th;tt;tm;ve;vn,,120,20,2.4 kW,<b>NEMA 5-20</b> (VS 3-pin),*,,
|
||||
key,id,image,description:en,countryWhiteList,countryBlackList,commonVoltages,commonCurrents,commonOutputs,description:nl,associatedVehicleTypes,neverAssociatedWith,extraVisualisationCondition,overrideHideInAnswer
|
||||
socket:schuko,,CEE7_4F.svg,<b>Schuko wall plug</b> without ground pin (CEE7/4 type F),af;al;dz;as;ad;ao;am;aw;az;by;bt;ba;bg;cv;td;cl;hr;dk;eg;ee;et;fo;fr;pf;ge;gr;gl;gn;gw;is;id;ir;jo;kz;kg;la;lv;lr;ly;lt;lu;mo;mr;md;mc;mn;me;mz;nl;nc;ne;kp;mk;pt;qa;ro;ru;rw;sm;sk;si;kr;es;sr;tj;th;tl;tr;tm;ua;uy;uz;vn,,230,16,3.6 kW,<b>Schuko stekker</b> zonder aardingspin (CEE7/4 type F),*,,,
|
||||
socket:typee,,TypeE.svg,<b>European wall plug</b> with ground pin (CEE7/4 type E),be;bj;bf;bi;cm;cf;td;km;cz;dk;dj;gq;et;fo;fr;gf;pf;gl;gp;gw;la;lr;mg;ml;mq;mr;mu;mc;mn;ma;ne;pl;pt;rw;mf;pm;sn;sk;sy;tl;tn;uz,,230,16,3 kW;22 kW;,<b>Europese stekker</b> met aardingspin (CEE7/4 type E),*,,,
|
||||
socket:chademo,,Chademo_type4.svg,<b>Chademo</b>,,,500,120,50 kW,<b>Chademo</b>,car;motorcar;hgv;bus,bicycle;scooter,,
|
||||
socket:type1_cable,,Type1_J1772.svg,<b>Type 1 with cable</b> (J1772),,,200;240,32,3.7 kW;7 kW,<b>Type 1 met kabel</b> (J1772),car;motorcar;hgv;bus,bicycle;scooter,,
|
||||
socket:type1,,Type1_J1772.svg,<b>Type 1 <i>without</i> cable</b> (J1772),,,200;240,32,3.7 kW;6.6 kW;7 kW;7.2 kW,<b>Type 1 <i>zonder</i> kabel</b> (J1772),car;motorcar;hgv;bus,bicycle;scooter,,
|
||||
socket:type1_combo,,Type1-ccs.svg,<b>Type 1 CCS</b> (aka Type 1 Combo),,,400;1000,50;125,50 kW;62.5 kW;150 kW;350 kW;,<b>Type 1 CCS</b> (ook gekend als Type 1 Combo),car;motorcar;hgv;bus,bicycle;scooter,,
|
||||
socket:tesla_supercharger,,Tesla-hpwc-model-s.svg,<b>Tesla Supercharger</b>,,,480,125;350,120 kW;150 kW;250 kW,<b>Tesla Supercharger</b>,car;motorcar;hgv;bus,bicycle;scooter,,true
|
||||
socket:type2,,Type2_socket.svg,<b>Type 2</b> (mennekes),,,230;400,16;32,11 kW;22 kW,<b>Type 2</b> (mennekes),car;motorcar;hgv;bus,bicycle;scooter,,
|
||||
socket:type2_combo,,Type2_CCS.svg,<b>Type 2 CCS</b> (mennekes),,,500;920,125;350,50 kW,<b>Type 2 CCS</b> (mennekes),car;motorcar;hgv;bus,bicycle;scooter,,
|
||||
socket:type2_cable,,Type2_tethered.svg,<b>Type 2 with cable</b> (mennekes),,,230;400,16;32,11 kW;22 kW,<b>Type 2 met kabel</b> (J1772),car;motorcar;hgv;bus,bicycle;scooter,,
|
||||
socket:tesla_supercharger_ccs,,Type2_CCS.svg,<b>Tesla Supercharger CCS</b> (a branded type2_css),,,500;920,125;350,50 kW,<b>Tesla Supercharger CCS</b> (een type2 CCS met Tesla-logo),car;motorcar;hgv;bus,bicycle;scooter,,true
|
||||
socket:tesla_destination,socket:tesla_destination_us,Tesla-hpwc-model-s.svg,<b>Tesla Supercharger (destination)</b>,us,,480,125;350,120 kW;150 kW;250 kW,<b>Tesla Supercharger (destination)</b>,car;motorcar;hgv;bus,bicycle;scooter,,true
|
||||
socket:USB-A,,usb_port.svg,<b>USB</b> to charge phones and small electronics,,,5,1;2,5W;10W,<b>USB</b> om GSMs en kleine electronica op te laden,*,,,
|
||||
socket:bosch_3pin,,bosch-3pin.svg,<b>Bosch Active Connect with 3 pins</b> and cable,,,,,,<b>Bosch Active Connect met 3 pinnen</b> aan een kabel,bicycle,car;motorcar;hgv;bus,,
|
||||
socket:bosch_5pin,,bosch-5pin.svg,<b>Bosch Active Connect with 5 pins</b> and cable,,,,,,<b>Bosch Active Connect met 5 pinnen</b> aan een kabel,bicycle,car;motorcar;hgv;bus,,
|
||||
socket:bs1363,,bs1363.svg,<b>BS1363</b> (Type G),bh;bd;bz;bt;bw;bn;kh;cy;dm;gh;gi;gd;gg;gy;id;iq;ie;im;je;jo;ke;kw;lb;mo;mw;mv;mt;mu;ng;om;pk;qa;rw;sa;sc;sl;sb;lk;sd;tz;ug;vu;vn;ye;zm;zw,,230,13,3kW,<b>BS1363</b> (VK 3-pin),*,,,
|
||||
socket:nema5_15,,nema-5-15.svg,<b>NEMA 5-15</b> (Type B),as;ai;ag;aw;bb;bz;bm;bo;vg;ky;co;cr;cu;do;ec;sv;pf;gu;gt;gy;ht;hn;jm;jp;jo;la;lb;lr;mx;fm;ms;ni;ne;pw;pa;py;pe;ph;pr;sr;th;tt;tm;ve;vn,,120,15,1.8 kW,<b>NEMA 5-15</b> (VS 3-pin),*,,,
|
||||
socket:sev1011_t23,,typej.svg,<b>SEV 1011 T23</b> (Type J),jo;li;mg;mv;rw;ch,,230,16,3.7 kW,<b>SEV 1011 T23</b> (Zwitserse 3-pin),*,,,
|
||||
socket:as3112,,as3112.svg,<b>AS3112</b> (Type I),as;ar;au;cn;ck;fj;ki;nr;nz;nu;pg;sb;tj;to;tv;uy;uz;vu,,230,10,2.3 kW,<b>AS3112</b> (Australische 3-pin),*,,,
|
||||
socket:nema_5_20,,nema-5-20.svg,<b>NEMA 5-20</b> (Type B),as;ai;ag;aw;bb;bz;bm;bo;vg;ky;co;cr;cu;do;ec;sv;pf;gu;gt;gy;ht;hn;jm;jp;jo;la;lb;lr;mx;fm;ms;ni;ne;pw;pa;py;pe;ph;pr;sr;th;tt;tm;ve;vn,,120,20,2.4 kW,<b>NEMA 5-20</b> (VS 3-pin),*,,,
|
||||
socket:nacs,,Tesla-hpwc-model-s.svg,<b>NACS</b>(North-American Charging System),mx;us:jp;kr;ca,,,,,<b>NACS</b>(Noord-Amerikaanse oplaadstandaard),car;motorcar;hgv;bus,bicycle;scooter,,
|
||||
|
|
|
Loading…
Add table
Add a link
Reference in a new issue