UNPKG

atriusmaps-node-sdk

Version:

This project provides an API to Atrius Personal Wayfinder maps within a Node environment. See the README.md for more information

2 lines (1 loc) 296 B
import*as o from"ramda";const r=r=>{const l=o.mergeAll(r.map(o.prop("levels"))),e=o=>l[o],d=o.pipe(e,o.prop("ordinal")),p=l=>o.find(o=>o.levels&&o.levels[l])(r);return{floorIdToOrdinal:d,floorIdToFloor:e,floorIdToStructureId:o=>p(o)?.id,floorIdToStructure:p}};export{r as buildStructuresLookup};