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

    Interface CityRecord

    City-level data associated with an IP address.

    interface CityRecord {
        confidence?: number;
        geonameId: number;
        names: Names;
    }
    Index

    Properties

    confidence?: number

    A value from 0-100 indicating MaxMind's confidence that the city is correct. This value is only set when using the Insights web service or the Enterprise database.

    geonameId: number

    The GeoName ID for the city.

    names: Names

    An object of locale codes to the name in that locale. Don't use any of these names as a database or dictionary key. Use the ID or relevant code instead.