@tikoci/centrs
    Preparing search index...

    Function deviceLocation

    • Read a device's location from parseRawCommentFacts-shaped output (every k=v comment token, unfiltered — see src/resolver/comment-kv.ts). Lenient by design: a missing or malformed lat/lon (e.g. a hand-edited comment) yields undefined rather than throwing — this is a read path, and write-time validation (validateCommentKvUpdates in src/devices.ts) is what keeps stored values well-formed. altitudeType defaults to MSL when altitude is present but no recognized altitude-type fact is stored.

      Parameters

      • facts: Record<string, string>

      Returns DeviceLocation | undefined