Questions tagged [geoip2]

64 questions
0
votes
1 answer

GeoIP in Matomo, previous Piwik map Tokyo wards

According to https://dev.maxmind.com/geoip/legacy/release-notes/ Effective July 24th, we will be mapping more IP addresses to special wards of Tokyo instead of Tokyo itself. Matomo that I use has enabled GeoIP2 plugin and I have downloaded the…
Hao
  • 6,291
  • 9
  • 39
  • 88
0
votes
1 answer

Does GeoLite2 provide coordinates?

I'm confused, does the free GeoLite2 database provide coordinates (latitude, longitude) anymore? I have been using GeoLite and was able to use Geo::IP and ->latitude calls to get coordinates. I've looked through the documentation and grepped…
Friedrich
  • 41
  • 3
0
votes
0 answers

GroIP Discontinuation

I use the GeoIP legacy code on my site. The way I'm reading this page is that the database for that version will no longer be updated. They say to use the GeoLite2 databases and the GeoLite2 databases are free. However, you will need to update…
user3052443
  • 758
  • 1
  • 7
  • 22
0
votes
1 answer

Getting errors in using GeoIP2 in django

I am trying to use GeoIP2 to get user's cities and countries using their IP when they view my website. I have downloaded 2 files from https://dev.maxmind.com/geoip/legacy/geolite/ , GeoLite Country and GeoLite City Binary/gzip files. After that I…
A.Stvt
  • 23
  • 5
0
votes
1 answer

Where is the documentation and code synopsis for the GeoIP2 module?

I am trying to update my old Perl script to use the new GeoIP2 module but I can't find any documentation of the actual API calls anywhere. The README on github, metacpan and the man pages are all the same and don't contain any sample code that I can…
Russell Fulton
  • 570
  • 4
  • 17
0
votes
1 answer

Performance difference on loading maxmind mmbd into memory as a hashmap

I am using GeoIP2 mmdb file to find the location of the user in real time. However, I wish to load the file into memory and then query on the hashmap instead of querying on the database every time. Is it possible to do that.? If yes, How so.? Also,…
0
votes
0 answers

Lookup CIDR on database with ip adress and take the closesd match

For my system i like to make a small country location detection. So i found this database: https://github.com/datasets/geoip2 There are values…
delato468
  • 474
  • 4
  • 18
0
votes
1 answer

Containing a jar file and dependency in your exported jar file with maven

I am trying to program a plugin for BungeeCord (Minecraft) with geoip2. I am trying to contain the dependency "com.maxmind.geoip2" and the BungeeCord API jar file in my jar file because I'm getting a java.lang.NoClassDefFoundError:…
Frank
  • 1
  • 4
0
votes
1 answer

"[Errno 12] Cannot allocate memory" on Geoip2() in Django with uWSGI

The following code runs successfully in manage.py shell: from django.contrib.gis.geoip2 import GeoIP2 g = GeoIP2() If I start the server manually with manage.py runserver and put the code in my Django view, it also runs fine. My Django application…
katericata
  • 1,008
  • 3
  • 14
  • 33
0
votes
1 answer

Can we read the geoip2 database file with .mmdb format like normal file in Python?

I need to read the whole geoip2 database and insert that data into SQL lite database. I tried to read the .mmdb file in the normal way but it prints random characters.
Sachin Aryal
  • 781
  • 14
  • 36
0
votes
1 answer

MaxMind's GeoIPCity for a single country only?

Recently I have stumbled upon a problem - MaxMind's GeoIPCity file is way too big for our needs and contains A LOT of data we don't need and won't need. The question is: is there a way to limit the City database to a single country? let's say,…
Rossitten
  • 1,140
  • 1
  • 16
  • 34
0
votes
2 answers

How to get the country code for multiple IP addresses at a time (5 or more) using geoip2 database?

This is how I've been getting the country name for one IP address at a time, but I need to be able to do multiple, sometimes over 50 at a time. >>>import geoip2.database >>> >>>reader =…
RachelW
  • 1
  • 1
0
votes
1 answer

Java Geoip2: Getting "java.lang.reflect.InvocationTargetException" Exception

I'm using GeoIP2 in Java to convert IP address to location information from maxmind database. My java code: try { ClassLoader classLoader = getClass().getClassLoader(); File database = new…
Arif Acar
  • 1,461
  • 2
  • 19
  • 33
-1
votes
1 answer

How can i access the GeoLite database in nginx?

I run a Nginx proxy and want to use the GeoLite2-Country/city databases. I followed the instructions on "https://docs.nginx.com/nginx/admin-guide/dynamic-modules/geoip2/" and "https://github.com/leev/ngx_http_geoip2_module". So I have the required…
-1
votes
1 answer

Retrive Lat Long from ZipCode

Is their is a way to get Lat Long from MaxmindDb through ZipCode rather than Ipaddress. As i cannot find any method to fetch details through zipcode. I don't want to use Google Maps Api. using (var reader = new…
sejal
  • 1
  • 1