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) 298 B
import*as o from"ramda";const r=r=>{const p=o.mergeAll(r.map(o.prop("levels"))),l=o=>p[o],e=p=>o.find(o.path(["levels",p]),r);return{floorIdToOrdinal:o.pipe(l,o.prop("ordinal")),floorIdToFloor:l,floorIdToStructureId:o.pipe(e,o.prop("id")),floorIdToStructure:e}};export{r as buildStructuresLookup};