def METHOD_NAME(self, name: str) -> "Airways":
    """
    Selects the subset of airways matching name in the route name or in the
    passed navigational beacon.
    >>> airways.extent('Switzerland').search("Z50")  # doctest: +SKIP
      route   id   navaid   latitude   longitude
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
      Z50     7    GERSA    47.04      8.532
      Z50     8    KELIP    46.96      8.762
      Z50     9    SOPER    46.89      8.944
      Z50     10   PELAD    46.6       9.726
      Z50     11   RESIA    46.48      10.04
    >>> airways.search("NARAK")  # doctest: +SKIP
      route   id   navaid   latitude   longitude
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
      N869    88   NARAK    44.3       1.749
      UN859   15   NARAK    44.3       1.749
      UN869   23   NARAK    44.3       1.749
      UT122   15   NARAK    44.3       1.749
      UY155   2    NARAK    44.3       1.749
      UZ365   3    NARAK    44.3       1.749
    """
    output = self.__class__(
        self.data.query("route == @name.upper() or navaid == @name.upper()")
    )
    return output