[types] Add emergency access points

Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
Yannik Bloscheck
2025-11-11 11:56:00 +01:00
committed by Yannik Bloscheck
parent 66609ff08b
commit a886270dda
24 changed files with 48 additions and 21 deletions

View File

@@ -337,6 +337,7 @@
<string name="type.cuisine.vegetarian">Vegetarisch</string> <string name="type.cuisine.vegetarian">Vegetarisch</string>
<string name="type.cuisine.vietnamese">Vietnamesisch</string> <string name="type.cuisine.vietnamese">Vietnamesisch</string>
<string name="type.emergency">Notfall</string> <string name="type.emergency">Notfall</string>
<string name="type.emergency.access_point">Rettungspunkt</string>
<string name="type.emergency.assembly_point">Notfall-Sammelpunkt</string> <string name="type.emergency.assembly_point">Notfall-Sammelpunkt</string>
<string name="type.emergency.defibrillator">Defibrillator</string> <string name="type.emergency.defibrillator">Defibrillator</string>
<string name="type.emergency.fire_hydrant">Hydrant</string> <string name="type.emergency.fire_hydrant">Hydrant</string>

View File

@@ -371,6 +371,7 @@
<string name="type.cuisine.vegetarian">Vegetarian</string> <string name="type.cuisine.vegetarian">Vegetarian</string>
<string name="type.cuisine.vietnamese">Vietnamese</string> <string name="type.cuisine.vietnamese">Vietnamese</string>
<string name="type.emergency">Emergency</string> <string name="type.emergency">Emergency</string>
<string name="type.emergency.access_point">Emergency Rescue Point</string>
<string name="type.emergency.assembly_point">Emergency Assembly Point</string> <string name="type.emergency.assembly_point">Emergency Assembly Point</string>
<string name="type.emergency.defibrillator">Defibrillator</string> <string name="type.emergency.defibrillator">Defibrillator</string>
<string name="type.emergency.fire_hydrant">Fire Hydrant</string> <string name="type.emergency.fire_hydrant">Fire Hydrant</string>

View File

@@ -397,6 +397,7 @@
"amenity-payment_terminal": "Bezahlterminal", "amenity-payment_terminal": "Bezahlterminal",
"amenity-public_bath": "Öffentliches Bad", "amenity-public_bath": "Öffentliches Bad",
"amenity-shower": "Dusche", "amenity-shower": "Dusche",
"emergency-access_point": "4Rettungspunkt|Notfallpunkt|Notfall-Rettungspunkt|Notfall-Treffpunkt",
"emergency-assembly_point": "Notfall-Sammelpunkt", "emergency-assembly_point": "Notfall-Sammelpunkt",
"emergency-defibrillator": "4Defibrillator", "emergency-defibrillator": "4Defibrillator",
"emergency-fire_hydrant": "4Hydrant", "emergency-fire_hydrant": "4Hydrant",

View File

@@ -427,6 +427,7 @@
"amenity-payment_centre": "Payment Centre", "amenity-payment_centre": "Payment Centre",
"amenity-public_bath": "Public Bath", "amenity-public_bath": "Public Bath",
"amenity-shower": "Shower", "amenity-shower": "Shower",
"emergency-access_point": "5Emergency Rescue Point|Emergency Location|Emergency Marker|Emergency Access Point",
"emergency-assembly_point": "Emergency Assembly Point", "emergency-assembly_point": "Emergency Assembly Point",
"emergency-defibrillator": "4Defibrillator|AED", "emergency-defibrillator": "4Defibrillator|AED",
"emergency-fire_hydrant": "4Fire Hydrant|Fire Plug", "emergency-fire_hydrant": "4Fire Hydrant|Fire Plug",

View File

@@ -169,7 +169,7 @@ highway|residential|bridge;[highway=residential][bridge?];;name;int_name;81;
# railway|rail|service|bridge;[railway=rail][service?][service!=spur][bridge?];... # railway|rail|service|bridge;[railway=rail][service?][service!=spur][bridge?];...
railway|rail|bridge;[railway=rail][bridge?][dont=match];;name;int_name;82; railway|rail|bridge;[railway=rail][bridge?][dont=match];;name;int_name;82;
deprecated:boundary|administrative|10:04.2024;[boundary=administrative][admin_level=10];x;name;int_name;83; deprecated:boundary|administrative|10:04.2024;[boundary=administrative][admin_level=10];x;name;int_name;83;
deprecated:boundary|administrative|6:04.2024;[boundary=administrative][admin_level=6];x;name;int_name;84; emergency|access_point;[emergency=access_point];;name;;84;
highway|secondary|bridge;[highway=secondary][bridge?];;name;int_name;85; highway|secondary|bridge;[highway=secondary][bridge?];;name;int_name;85;
highway|tertiary|bridge;[highway=tertiary][bridge?];;name;int_name;86; highway|tertiary|bridge;[highway=tertiary][bridge?];;name;int_name;86;
barrier|bollard;87; barrier|bollard;87;
Can't render this file because it contains an unexpected character in line 7 and column 16.

View File

@@ -77,6 +77,8 @@ vending=water : vending=drinks
vending=milk : vending=drinks vending=milk : vending=drinks
vending=bread : vending=food vending=bread : vending=food
highway=emergency_access_point : emergency=access_point
building=entrance : entrance=yes building=entrance : entrance=yes
ice_road=yes : highway=ice_road ice_road=yes : highway=ice_road

View File

@@ -242,6 +242,7 @@
@neutral_label: #51585E; @neutral_label: #51585E;
@healthcare_label: #983E44; @healthcare_label: #983E44;
@public_transport_label: #2F6499; @public_transport_label: #2F6499;
@emergency_label: #247F52;
/* 6.4 Road labels */ /* 6.4 Road labels */

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 6.4 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

View File

@@ -927,6 +927,7 @@ node|z16-[man_made=observatory],
node|z17-[amenity=fire_station], node|z17-[amenity=fire_station],
node|z18-[amenity=internet_cafe], node|z18-[amenity=internet_cafe],
node|z18-[emergency=defibrillator], node|z18-[emergency=defibrillator],
node|z18-[emergency=access_point],
node|z18-[emergency=assembly_point], node|z18-[emergency=assembly_point],
node|z18-[emergency=lifeguard], node|z18-[emergency=lifeguard],
node|z18-[amenity=toilets], node|z18-[amenity=toilets],
@@ -1525,6 +1526,9 @@ node|z19-[emergency=fire_hydrant],
node|z18-[emergency=defibrillator], node|z18-[emergency=defibrillator],
{icon-image: defibrillator-m.svg;font-size: 11;} {icon-image: defibrillator-m.svg;font-size: 11;}
node|z18-[emergency=access_point],
{icon-image: access_point-m.svg;font-size: 11;}
node|z18-[emergency=assembly_point], node|z18-[emergency=assembly_point],
{icon-image: assembly_point-m.svg;font-size: 11;} {icon-image: assembly_point-m.svg;font-size: 11;}

View File

@@ -158,3 +158,6 @@ node[healthcare],
node[amenity=bicycle_rental], node[amenity=bicycle_rental],
node[amenity=taxi], node[amenity=taxi],
{text-color: @public_transport_label;text-halo-radius: 0.1;text-halo-opacity: 0.7;text-halo-color: @label_halo_light;} {text-color: @public_transport_label;text-halo-radius: 0.1;text-halo-opacity: 0.7;text-halo-color: @label_halo_light;}
node[emergency=access_point],
{text-color: @emergency_label;text-halo-radius: 0.1;text-halo-opacity: 0.7;text-halo-color: @label_halo_light;}

View File

@@ -2360,6 +2360,7 @@ amenity-bench # icon z18- (also has captio
amenity-bench-backless # icon z18- (also has caption(optional) z19-) amenity-bench-backless # icon z18- (also has caption(optional) z19-)
amenity-lounger # icon z18- (also has caption(optional) z19-) amenity-lounger # icon z18- (also has caption(optional) z19-)
amenity-waste_disposal # icon z18- (also has caption(optional) z18-) amenity-waste_disposal # icon z18- (also has caption(optional) z18-)
emergency-access_point # icon z18- (also has caption(optional) z18-)
emergency-assembly_point # icon z18- (also has caption(optional) z18-) emergency-assembly_point # icon z18- (also has caption(optional) z18-)
emergency-defibrillator # icon z18- (also has caption(optional) z18-) emergency-defibrillator # icon z18- (also has caption(optional) z18-)
emergency-phone # icon z17- emergency-phone # icon z17-
@@ -2391,6 +2392,7 @@ amenity-loading_dock # icon z18- (also has captio
# amenity-vending_machine-sweets # caption(optional) z18- (also has icon z18-) # amenity-vending_machine-sweets # caption(optional) z18- (also has icon z18-)
# amenity-waste_basket # caption(optional) z19- (also has icon z18-) # amenity-waste_basket # caption(optional) z19- (also has icon z18-)
# amenity-waste_disposal # caption(optional) z18- (also has icon z18-) # amenity-waste_disposal # caption(optional) z18- (also has icon z18-)
# emergency-access_point # caption(optional) z18- (also has icon z18-)
# emergency-assembly_point # caption(optional) z18- (also has icon z18-) # emergency-assembly_point # caption(optional) z18- (also has icon z18-)
# emergency-defibrillator # caption(optional) z18- (also has icon z18-) # emergency-defibrillator # caption(optional) z18- (also has icon z18-)
# emergency-fire_hydrant # caption(optional) z19- (also has icon z19-) # emergency-fire_hydrant # caption(optional) z19- (also has icon z19-)

View File

@@ -240,6 +240,7 @@
@neutral_label: #494F54; @neutral_label: #494F54;
@healthcare_label: #A6454B; @healthcare_label: #A6454B;
@public_transport_label: #234B73; @public_transport_label: #234B73;
@emergency_label: #247F52;
/* 6.4 Road labels */ /* 6.4 Road labels */

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 6.4 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

View File

@@ -2366,6 +2366,7 @@ amenity-bench # icon z18- (also has captio
amenity-bench-backless # icon z18- (also has caption(optional) z19-) amenity-bench-backless # icon z18- (also has caption(optional) z19-)
amenity-lounger # icon z18- (also has caption(optional) z19-) amenity-lounger # icon z18- (also has caption(optional) z19-)
amenity-waste_disposal # icon z18- (also has caption(optional) z18-) amenity-waste_disposal # icon z18- (also has caption(optional) z18-)
emergency-access_point # icon z18- (also has caption(optional) z18-)
emergency-assembly_point # icon z18- (also has caption(optional) z18-) emergency-assembly_point # icon z18- (also has caption(optional) z18-)
emergency-defibrillator # icon z18- (also has caption(optional) z18-) emergency-defibrillator # icon z18- (also has caption(optional) z18-)
emergency-phone # icon z17- emergency-phone # icon z17-
@@ -2397,6 +2398,7 @@ amenity-loading_dock # icon z18- (also has captio
# amenity-vending_machine-sweets # caption(optional) z18- (also has icon z18-) # amenity-vending_machine-sweets # caption(optional) z18- (also has icon z18-)
# amenity-waste_basket # caption(optional) z19- (also has icon z18-) # amenity-waste_basket # caption(optional) z19- (also has icon z18-)
# amenity-waste_disposal # caption(optional) z18- (also has icon z18-) # amenity-waste_disposal # caption(optional) z18- (also has icon z18-)
# emergency-access_point # caption(optional) z18- (also has icon z18-)
# emergency-assembly_point # caption(optional) z18- (also has icon z18-) # emergency-assembly_point # caption(optional) z18- (also has icon z18-)
# emergency-defibrillator # caption(optional) z18- (also has icon z18-) # emergency-defibrillator # caption(optional) z18- (also has icon z18-)
# emergency-fire_hydrant # caption(optional) z19- (also has icon z19-) # emergency-fire_hydrant # caption(optional) z19- (also has icon z19-)

View File

@@ -180,6 +180,7 @@
@neutral_label: #51585E; @neutral_label: #51585E;
@healthcare_label: #983E44; @healthcare_label: #983E44;
@public_transport_label: #2F6499; @public_transport_label: #2F6499;
@emergency_label: #247F52;
/* 6.4 Road labels */ /* 6.4 Road labels */

View File

@@ -151,6 +151,7 @@
@neutral_label: #494F54; @neutral_label: #494F54;
@healthcare_label: #A6454B; @healthcare_label: #A6454B;
@public_transport_label: #234B73; @public_transport_label: #234B73;
@emergency_label: #247F52;
/* ROADS LABELS */ /* ROADS LABELS */
@shield_text: #000000; @shield_text: #000000;

View File

@@ -225,6 +225,11 @@ bool FeatureBuilder::PreSerialize()
}); });
m_params.name = std::move(nameWithRef); m_params.name = std::move(nameWithRef);
} }
else if (ftypes::IsEmergencyAccessPointChecker::Instance()(types))
{
m_params.name.Clear();
m_params.name.AddString(StringUtf8Multilang::kDefaultCode, m_params.ref);
}
m_params.ref.clear(); m_params.ref.clear();
} }

View File

@@ -359,6 +359,7 @@
"type.cuisine.vegetarian" = "Vegetarisch"; "type.cuisine.vegetarian" = "Vegetarisch";
"type.cuisine.vietnamese" = "Vietnamesisch"; "type.cuisine.vietnamese" = "Vietnamesisch";
"type.emergency" = "Notfall"; "type.emergency" = "Notfall";
"type.emergency.access_point" = "Rettungspunkt";
"type.emergency.assembly_point" = "Notfall-Sammelpunkt"; "type.emergency.assembly_point" = "Notfall-Sammelpunkt";
"type.emergency.defibrillator" = "Defibrillator"; "type.emergency.defibrillator" = "Defibrillator";
"type.emergency.fire_hydrant" = "Hydrant"; "type.emergency.fire_hydrant" = "Hydrant";

View File

@@ -367,6 +367,7 @@
"type.cuisine.vegetarian" = "Vegetarian"; "type.cuisine.vegetarian" = "Vegetarian";
"type.cuisine.vietnamese" = "Vietnamese"; "type.cuisine.vietnamese" = "Vietnamese";
"type.emergency" = "Emergency"; "type.emergency" = "Emergency";
"type.emergency.access_point" = "Emergency Rescue Point";
"type.emergency.assembly_point" = "Emergency Assembly Point"; "type.emergency.assembly_point" = "Emergency Assembly Point";
"type.emergency.defibrillator" = "Defibrillator"; "type.emergency.defibrillator" = "Defibrillator";
"type.emergency.fire_hydrant" = "Fire Hydrant"; "type.emergency.fire_hydrant" = "Fire Hydrant";

View File

@@ -386,6 +386,7 @@
"type.cuisine.vegetarian" = "Vegetarian"; "type.cuisine.vegetarian" = "Vegetarian";
"type.cuisine.vietnamese" = "Vietnamese"; "type.cuisine.vietnamese" = "Vietnamese";
"type.emergency" = "Emergency"; "type.emergency" = "Emergency";
"type.emergency.access_point" = "Emergency Rescue Point";
"type.emergency.assembly_point" = "Emergency Assembly Point"; "type.emergency.assembly_point" = "Emergency Assembly Point";
"type.emergency.defibrillator" = "Defibrillator"; "type.emergency.defibrillator" = "Defibrillator";
"type.emergency.fire_hydrant" = "Fire Hydrant"; "type.emergency.fire_hydrant" = "Fire Hydrant";

View File

@@ -854,6 +854,12 @@ IsPlatformChecker::IsPlatformChecker()
m_types.push_back(c.GetTypeByPath({"public_transport", "platform"})); m_types.push_back(c.GetTypeByPath({"public_transport", "platform"}));
} }
IsEmergencyAccessPointChecker::IsEmergencyAccessPointChecker()
{
Classificator const & c = classif();
m_types.push_back(c.GetTypeByPath({"emergency", "access_point"}));
}
IsAddressInterpolChecker::IsAddressInterpolChecker() : BaseChecker(1 /* level */) IsAddressInterpolChecker::IsAddressInterpolChecker() : BaseChecker(1 /* level */)
{ {
Classificator const & c = classif(); Classificator const & c = classif();

View File

@@ -629,6 +629,14 @@ public:
DECLARE_CHECKER_INSTANCE(IsPlatformChecker); DECLARE_CHECKER_INSTANCE(IsPlatformChecker);
}; };
class IsEmergencyAccessPointChecker : public BaseChecker
{
IsEmergencyAccessPointChecker();
public:
DECLARE_CHECKER_INSTANCE(IsEmergencyAccessPointChecker);
};
class IsAddressInterpolChecker : public BaseChecker class IsAddressInterpolChecker : public BaseChecker
{ {
IsAddressInterpolChecker(); IsAddressInterpolChecker();