Skip to content
This repository has been archived by the owner on Aug 6, 2022. It is now read-only.

I.3. Geolocation

Andrey Bogdanov edited this page Feb 23, 2016 · 4 revisions

ololord.js uses IPInfoDB database for geolocation. You have to download the appropriate DB file (in CSV format) yourself and convert it into SQLite 3 database using the tools/geolocation.js script. The .csv file may be downloaded here (registration is required). If you use IPv6, you should download an IPv6 version of IPInfoDB database, otherwise IPv4 version should be used.

After downloading the file, run:

./tools/geolocation.js <path/to/file.csv>

Note: The operation may take some time (up to 10-20 minutes, depending on your hardware).

Note2: Geolocation is really fast (~5 milliseconds per query).

Clone this wiki locally