profileAccessibleCalculation = el => {
const entr = el.properties.accessibility.entrances[0];
return (
entr.width.value >= profile.profileQuestionMinimumWidth &&
(entr.stairs && !hasEquipmenCategory(el, 'elevator')
? entr.stairs.stepHeight.value <=
profile.profileQuestionMaxStepHeight / 100
: true) &&
(el.properties.transportMode === 'tram'
? el.properties.accessibility.ground.elevation.value >=
profile.profileMinimalPlatformHeightTram
: true) &&
(hasEquipmenCategory(el, 'elevator') ||
el.properties.accessibility.ground.level === 0 ||
!profile.profileQuestionElevator) &&
(hasEquipmenCategory(el, 'seating') || !profile.profileQuestionSeating) &&
(hasEquipmenCategory(el, 'shelter') || !profile.profileQuestionCover)
);
}