Function
| Arg | Description | Type | 
|---|---|---|
| ip | IP Address to lookup. | string (required) | 
| db | Path to the MaxMind GeoIP Database. | string (required) | 
Lookup an IP Address using the MaxMind GeoIP database.
You can get a copy of the database from https://www.maxmind.com/ .
The database must be locally accessible so geoip lookup is typically done only on the server.