为什么Maxmind的GeoLite2 City数据库返回不存在的geoname_id?



我已经下载了Maxmind的GeoLite2 City数据库的最新更新(MaxMind DB二进制和CSV格式(。当我尝试查找"88.184.98.0"时,我得到了:

{"city":{"geoname_id":2982652,"names":{"de":"Rouen","en":"Rouen","es":"Ruan","fr":"Rouen","ja":"ルーアン","pt-BR":"Ruão","ru":"Руан","zh-CN":"鲁昂"}},"continent":{"code":"EU","geoname_id":6255148,"names":{"de":"Europa","en":"Europe","es":"Europa","fr":"Europe","ja":"ヨーロッパ","pt-BR":"Europa","ru":"Европа","zh-CN":"欧洲"}},"country":{"geoname_id":3017382,"is_in_european_union":true,"iso_code":"FR","names":{"de":"Frankreich","en":"France","es":"Francia","fr":"France","ja":"フランス共和国","pt-BR":"França","ru":"Франция","zh-CN":"法国"}},"location":{"accuracy_radius":5,"latitude":49.4431,"longitude":1.0993,"time_zone":"Europe/Paris"},"postal":{"code":"76100"},"registered_country":{"geoname_id":3017382,"is_in_european_union":true,"iso_code":"FR","names":{"de":"Frankreich","en":"France","es":"Francia","fr":"France","ja":"フランス共和国","pt-BR":"França","ru":"Франция","zh-CN":"法国"}},"subdivisions":[{"geoname_id":11071621,"iso_code":"NOR","names":{"de":"Normandie","en":"Normandy","es":"Normandía","fr":"Normandie"}},{"geoname_id":2975248,"iso_code":"76","names":{"de":"Seine-Maritime","en":"Seine-Maritime","es":"Sena Marítimo","fr":"Seine-Maritime","pt-BR":"Sena Marítimo"}}]}

但是,CSV 文件中返回的细分没有相应的geoname_id(例如 cat GeoLite2-City-Locations-en.csv | grep 11071621不返回任何内容(。

是错误还是预期行为?我在文档中找不到任何内容。

我已经

联系了支持人员,答案是这是设计使然。如果没有直接关联的 IP,则 CSV 文件不包括位置。

在此处阅读更多内容: https://github.com/maxmind/MaxMind-DB/issues/61

相关内容

  • 没有找到相关文章

最新更新