OptionalcityDbPath: stringPath to a GeoLite2/GeoIP2 City mmdb file.
OptionalasnDbPath: stringPath to a GeoLite2/GeoIP2 ASN mmdb file.
Reset the cached readers so the mmdb files can be reopened on the next lookup.
Resolve the combined geolocation and ASN enrichment for an IP address.
City and ASN lookups run in parallel and their partial results are merged.
Resolve ASN metadata for an IP address.
Returns an empty object when the ASN database is unavailable or the lookup fails.
Resolve city-level geolocation data for an IP address.
Returns an empty object when the city database is unavailable or the lookup fails.
Open the configured MaxMind databases once.
Safe to call multiple times; subsequent calls reuse the cached promise.
MaxMind-backed geolocation and ASN enricher for IP addresses.
The enricher lazily opens the configured City and ASN mmdb files on first use. Missing databases and lookup failures degrade to empty partial results rather than throwing, which keeps enrichment non-fatal during request processing.