@h3t1 opened this Issue on May 19th 2019

Hi, I'm using matomo 3.9.1 with GeoIP 2 (PHP)
The problem is that Moroccan cities are not matching regions (also the map is showing incorrect regions for cities) as you can see in the picture below :
I also tested some IP address here:
and seems like everything is OK, so I do not know where the problem comes from.
PS: I can help correct Moroccan cities to match their regions

@sgiehl commented on July 29th 2019 Member

Hi there. Sorry for the delay. What exactly is wrong with the regions? We actually only use the data provided by Maxmind in this case. Only the region names are stored within in Matomo, but I don't think the mapping from ISO codes to region names has changed. See https://github.com/matomo-org/matomo/blob/3.x-dev/plugins/GeoIp2/data/isoRegionNames.php#L2979-L3060

@h3t1 commented on July 29th 2019

Hi! Thank you for your reply,
I think the ISO mapping may have changed because Morocco has recently changed its regions from 16 to 12 regions.
source : https://en.wikipedia.org/wiki/Regions_of_Morocco

@h3t1 commented on July 29th 2019

here is a demo that shows the difference between Maxmind and Matomo for the same address ip:
IP address:

@sgiehl commented on July 29th 2019 Member

ah ok. so we need to update our region mapping. Will have a look at that

@r3tr0sp3c commented on November 1st 2022

Also for greek city / region combinations


Larisa and Volos belong to Thessaly, in the mainlands , not Zakynthos which is an island.

This Issue was closed on July 31st 2019
Powered by GitHub Issue Mirror