我们一直在为我们的产品使用GeoLiteCityv6并迁移到GeoLite2-City。
不幸的是,在使用两个数据库解析相同的IP地址时,我们看到了巨大的差GeoLite2-City提供的细节较少,特别是对于地区。
E.g。在解析IP地址2.139.175.146时,我们使用GeoLiteCityv6获得 Country = Spain,Region = Catalonia,City = Barcelona 但仅 Country = Spain,Region = - ,City = Barcelona 与GeoLite2-City。我们检查了西班牙的几个IP地址,甚至没有获得一个地区信息。 我担心其他许多国家也是如此。
有没有人遇到过类似的问题? maxmind是否有关于免费版本中任何模糊的声明?
感谢任何评论! 布鲁诺
答案 0 :(得分:0)
GeoLite2确实具有该IP地址的细分信息。这是完整的记录:
{
"city":
{
"geoname_id":
3128760 <uint32>
"names":
{
"de":
"Barcelona" <utf8_string>
"en":
"Barcelona" <utf8_string>
"es":
"Barcelona" <utf8_string>
"fr":
"Barcelone" <utf8_string>
"ja":
"バルセロナ" <utf8_string>
"pt-BR":
"Barcelona" <utf8_string>
"ru":
"Барселона" <utf8_string>
"zh-CN":
"巴塞罗那" <utf8_string>
}
}
"continent":
{
"code":
"EU" <utf8_string>
"geoname_id":
6255148 <uint32>
"names":
{
"de":
"Europa" <utf8_string>
"en":
"Europe" <utf8_string>
"es":
"Europa" <utf8_string>
"fr":
"Europe" <utf8_string>
"ja":
"ヨーロッパ" <utf8_string>
"pt-BR":
"Europa" <utf8_string>
"ru":
"Европа" <utf8_string>
"zh-CN":
"欧洲" <utf8_string>
}
}
"country":
{
"geoname_id":
2510769 <uint32>
"iso_code":
"ES" <utf8_string>
"names":
{
"de":
"Spanien" <utf8_string>
"en":
"Spain" <utf8_string>
"es":
"España" <utf8_string>
"fr":
"Espagne" <utf8_string>
"ja":
"スペイン" <utf8_string>
"pt-BR":
"Espanha" <utf8_string>
"ru":
"Испания" <utf8_string>
"zh-CN":
"西班牙" <utf8_string>
}
}
"location":
{
"latitude":
41.388800 <double>
"longitude":
2.159000 <double>
"time_zone":
"Europe/Madrid" <utf8_string>
}
"postal":
{
"code":
"08001" <utf8_string>
}
"registered_country":
{
"geoname_id":
2510769 <uint32>
"iso_code":
"ES" <utf8_string>
"names":
{
"de":
"Spanien" <utf8_string>
"en":
"Spain" <utf8_string>
"es":
"España" <utf8_string>
"fr":
"Espagne" <utf8_string>
"ja":
"スペイン" <utf8_string>
"pt-BR":
"Espanha" <utf8_string>
"ru":
"Испания" <utf8_string>
"zh-CN":
"西班牙" <utf8_string>
}
}
"subdivisions":
[
{
"geoname_id":
3336901 <uint32>
"iso_code":
"CT" <utf8_string>
"names":
{
"de":
"Katalonien" <utf8_string>
"en":
"Catalonia" <utf8_string>
"es":
"Cataluña" <utf8_string>
"fr":
"Catalogne" <utf8_string>
"ja":
"カタロニア" <utf8_string>
"pt-BR":
"Catalunha" <utf8_string>
"ru":
"Каталония" <utf8_string>
}
}
{
"geoname_id":
3128759 <uint32>
"iso_code":
"B" <utf8_string>
"names":
{
"de":
"Provinz Barcelona" <utf8_string>
"en":
"Barcelona" <utf8_string>
"es":
"Barcelona" <utf8_string>
"fr":
"Province de Barcelone" <utf8_string>
"ja":
"ばるせろな" <utf8_string>
}
}
]
}
正如你所看到的,细分是“加泰罗尼亚”,其次要细分为“巴塞罗那”。也许在执行该查找的代码中存在错误。