IFClite TypeScript API
    Preparing search index...

    Function isLonLatInAreaOfUse

    • Whether a WGS84 longitude/latitude lies in an area of use, widened by marginDegrees on every side. Antimeridian-aware: longitudes are compared modulo 360, so -179 is inside a box 170..-170, and a margin never wraps past a pole.

      Non-finite input and |latitude| > 90 are outside (a margin cannot admit them). A negative or non-finite margin throws a RangeError.

      Parameters

      • area: Pick<EpsgAreaOfUse, "west" | "south" | "east" | "north">
      • longitude: number
      • latitude: number
      • OptionalmarginDegrees: number

      Returns boolean