MCPcopy Create free account
hub / github.com/comaps/comaps / GetReadableWheelchairType

Function GetReadableWheelchairType

libs/indexer/feature_utils.cpp:252–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252string GetReadableWheelchairType(TypesHolder const & types)
253{
254 auto const value = ftraits::Wheelchair::GetValue(types);
255 if (!value.has_value())
256 return "";
257
258 switch (*value)
259 {
260 case ftraits::WheelchairAvailability::No: return "wheelchair-no";
261 case ftraits::WheelchairAvailability::Yes: return "wheelchair-yes";
262 case ftraits::WheelchairAvailability::Limited: return "wheelchair-limited";
263 }
264 UNREACHABLE();
265}
266
267std::optional<ftraits::WheelchairAvailability> GetWheelchairType(TypesHolder const & types)
268{

Callers 2

SetFromFeatureTypeMethod · 0.85

Calls 2

GetValueFunction · 0.85
has_valueMethod · 0.80

Tested by

no test coverage detected