@maxmind/geoip2-node
    Preparing search index...

    Class ReaderModel

    Class representing the ReaderModel *

    Index

    Constructors

    Methods

    • Returns the Anonymous IP db data for an IP address

      Parameters

      • ipAddress: string

        The IP Address you want to query the Anonymous IP db with

      Returns AnonymousIP

      Throws an error when the DB doesn't support Anonymous IP queries

      Throws an error when the IP address isn't found in the database

      Throws an error when the IP address isn't valid

    • Returns the Anonymous Plus db data for an IP address

      Parameters

      • ipAddress: string

        The IP Address you want to query the Anonymous Plus db with

      Returns AnonymousPlus

      Throws an error when the DB doesn't support Anonymous Plus queries

      Throws an error when the IP address isn't found in the database

      Throws an error when the IP address isn't valid

    • Returns the ASN db data for an IP address

      Parameters

      • ipAddress: string

        The IP Address you want to query the ASN db with

      Returns Asn

      Throws an error when the DB doesn't support ASN queries

      Throws an error when the IP address isn't found in the database

      Throws an error when the IP address isn't valid

    • Returns the City db data for an IP address

      Parameters

      • ipAddress: string

        The IP Address you want to query the City db with

      Returns City

      Throws an error when the DB doesn't support City queries

      Throws an error when the IP address isn't found in the database

      Throws an error when the IP address isn't valid

    • Returns the Connection-Type db data for an IP address

      Parameters

      • ipAddress: string

        The IP Address you want to query the Connection-Type db with

      Returns ConnectionType

      Throws an error when the DB doesn't support Connection-Type queries

      Throws an error when the IP address isn't found in the database

      Throws an error when the IP address isn't valid

    • Returns the Country db data for an IP address

      Parameters

      • ipAddress: string

        The IP Address you want to query the Country db with

      Returns Country

      Throws an error when the DB doesn't support City queries

      Throws an error when the IP address isn't found in the database

      Throws an error when the IP address isn't valid

    • Returns the Domain db data for an IP address

      Parameters

      • ipAddress: string

        The IP Address you want to query the Domain db with

      Returns Domain

      Throws an error when the DB doesn't support Domain queries

      Throws an error when the IP address isn't found in the database

      Throws an error when the IP address isn't valid

    • Returns the Enterprise db data for an IP address

      Parameters

      • ipAddress: string

        The IP Address you want to query the Enterprise db with

      Returns City

      Throws an error when the DB doesn't support Enterprise queries

      Throws an error when the IP address isn't found in the database

      Throws an error when the IP address isn't valid

    • Returns the ISP db data for an IP address

      Parameters

      • ipAddress: string

        The IP Address you want to query the ISP db with

      Returns Isp

      Throws an error when the DB doesn't support ISP queries

      Throws an error when the IP address isn't found in the database

      Throws an error when the IP address isn't valid