KOSMIndoorMap::Localization

KOSMIndoorMap::Localization Namespace Reference

Enumerations

enum  TranslationOption { ReturnUnknownKey , ReturnEmptyOnUnknownKey }
 

Functions

QString amenityType (const char *value, Localization::TranslationOption opt=Localization::ReturnUnknownKey)
 
QString amenityTypes (const QByteArray &value, Localization::TranslationOption opt=Localization::ReturnUnknownKey)
 
QString cuisineTypes (const QByteArray &value, Localization::TranslationOption opt=Localization::ReturnUnknownKey)
 
QString genderSegregation (OSM::Element element)
 
bool hasAmenityTypeTranslation (const char *value)
 
bool hasGenderSegregrationKey (OSM::Element element)
 

Detailed Description

Translations of various OSM tag values.

Enumeration Type Documentation

◆ TranslationOption

Control how unknown elements get translated.

Definition at line 23 of file localization.h.

Function Documentation

◆ amenityType()

QString KOSMIndoorMap::Localization::amenityType ( const char * value,
Localization::TranslationOption opt = Localization::ReturnUnknownKey )

Translated name for an amenity tag value (after list splitting).

This also covers values of similar/overlapping tags (office, tourism, leisure, historic, room, building, etc).

Definition at line 18 of file localization.cpp.

◆ amenityTypes()

QString KOSMIndoorMap::Localization::amenityTypes ( const QByteArray & value,
Localization::TranslationOption opt = Localization::ReturnUnknownKey )

Translated list of amenity tag values (including list splitting).

This also covers values of similar/overlapping tags (office, tourism, leisure, historic, room, building, etc).

Definition at line 23 of file localization.cpp.

◆ cuisineTypes()

QString KOSMIndoorMap::Localization::cuisineTypes ( const QByteArray & value,
Localization::TranslationOption opt = Localization::ReturnUnknownKey )

Translated values of the cuisine tag (does list splitting).

Definition at line 36 of file localization.cpp.

◆ genderSegregation()

QString KOSMIndoorMap::Localization::genderSegregation ( OSM::Element element)
nodiscard

Translated gender segregation information e.g.

for toilets.

Definition at line 41 of file localization.cpp.

◆ hasAmenityTypeTranslation()

bool KOSMIndoorMap::Localization::hasAmenityTypeTranslation ( const char * value)

Returns true if we can translate value.

Definition at line 13 of file localization.cpp.

◆ hasGenderSegregrationKey()

bool KOSMIndoorMap::Localization::hasGenderSegregrationKey ( OSM::Element element)
nodiscard

Checks whether element contains a known key for gender segregation information.

Definition at line 54 of file localization.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:55:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.