@botmesh/core - v2.0.0-alpha.2
    Preparing search index...

    Function toInboundLocation

    • Build a normalized InboundLocation, or undefined when the coordinates are missing, not finite or out of range (latitude −90…90, longitude −180…180). Numeric strings are accepted; empty name/address strings are dropped; live is set only when true.

      Parameters

      Returns InboundLocation | undefined

      const location = toInboundLocation({ latitude: msg.location?.latitude, longitude: msg.location?.longitude, name: msg.location?.name })