Adapted from the official C library for .NET Core
There are two versions:
- For Memory mapped binary file such as IP2LOCATION-LITE-DB5.BIN.
- For CSV file (very slow at startup), just for references.
only DB5 is supported
Please refer to the official C library regarding license.
INetworkAddressLocator << NetworkAddressLocator_IP2LocationBin
<< NetworkAddressLocator_IP2LocationCsv
The INetworkAddressLocator has a single method Lookup(IPAddress) which returns a Location. Missing and invalid locations are represented by "-" in every fields in IP2Location database, instead of NULL.