maxmind-geoip2 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/README.md +10 -5
  4. data/lib/maxmind/geoip2/client.rb +18 -9
  5. data/lib/maxmind/geoip2/model/city.rb +4 -5
  6. data/lib/maxmind/geoip2/model/connection_type.rb +3 -2
  7. data/lib/maxmind/geoip2/model/enterprise.rb +2 -3
  8. data/lib/maxmind/geoip2/model/insights.rb +3 -5
  9. data/lib/maxmind/geoip2/record/traits.rb +39 -27
  10. data/lib/maxmind/geoip2/version.rb +8 -0
  11. data/maxmind-geoip2.gemspec +7 -2
  12. data/test/data/cmd/write-test-data/main.go +68 -0
  13. data/test/data/go.mod +13 -0
  14. data/test/data/go.sum +16 -0
  15. data/test/data/perltidyrc +6 -0
  16. data/test/data/pkg/writer/decoder.go +178 -0
  17. data/test/data/pkg/writer/geoip2.go +182 -0
  18. data/test/data/pkg/writer/ip.go +39 -0
  19. data/test/data/pkg/writer/maxmind.go +245 -0
  20. data/test/data/pkg/writer/nestedstructures.go +73 -0
  21. data/test/data/pkg/writer/writer.go +58 -0
  22. data/test/data/source-data/GeoIP2-City-Test.json +322 -1
  23. data/test/data/source-data/GeoIP2-Connection-Type-Test.json +15 -10
  24. data/test/data/source-data/GeoIP2-Country-Test.json +99 -0
  25. data/test/data/source-data/GeoIP2-Domain-Test.json +5 -0
  26. data/test/data/source-data/GeoIP2-Enterprise-Test.json +347 -1
  27. data/test/data/source-data/GeoIP2-Precision-Enterprise-Sandbox-Test.json +296 -0
  28. data/test/data/source-data/GeoIP2-Precision-Enterprise-Test.json +412 -2
  29. data/test/data/source-data/GeoIP2-Static-IP-Score-Test.json +15 -0
  30. data/test/data/source-data/GeoIP2-User-Count-Test.json +18 -0
  31. data/test/data/source-data/GeoLite2-City-Test.json +168 -0
  32. data/test/data/source-data/GeoLite2-Country-Test.json +92 -0
  33. data/test/data/test-data/GeoIP2-Anonymous-IP-Test.mmdb +0 -0
  34. data/test/data/test-data/GeoIP2-City-Test-Broken-Double-Format.mmdb +0 -0
  35. data/test/data/test-data/GeoIP2-City-Test-Invalid-Node-Count.mmdb +0 -0
  36. data/test/data/test-data/GeoIP2-City-Test.mmdb +0 -0
  37. data/test/data/test-data/GeoIP2-Connection-Type-Test.mmdb +0 -0
  38. data/test/data/test-data/GeoIP2-Country-Test.mmdb +0 -0
  39. data/test/data/test-data/GeoIP2-DensityIncome-Test.mmdb +0 -0
  40. data/test/data/test-data/GeoIP2-Domain-Test.mmdb +0 -0
  41. data/test/data/test-data/GeoIP2-Enterprise-Test.mmdb +0 -0
  42. data/test/data/test-data/GeoIP2-ISP-Test.mmdb +0 -0
  43. data/test/data/test-data/GeoIP2-Precision-Enterprise-Test.mmdb +0 -0
  44. data/test/data/test-data/GeoIP2-Static-IP-Score-Test.mmdb +0 -0
  45. data/test/data/test-data/GeoIP2-User-Count-Test.mmdb +0 -0
  46. data/test/data/test-data/GeoLite2-ASN-Test.mmdb +0 -0
  47. data/test/data/test-data/GeoLite2-City-Test.mmdb +0 -0
  48. data/test/data/test-data/GeoLite2-Country-Test.mmdb +0 -0
  49. data/test/data/test-data/MaxMind-DB-no-ipv4-search-tree.mmdb +0 -0
  50. data/test/data/test-data/MaxMind-DB-string-value-entries.mmdb +0 -0
  51. data/test/data/test-data/MaxMind-DB-test-broken-pointers-24.mmdb +0 -0
  52. data/test/data/test-data/MaxMind-DB-test-broken-search-tree-24.mmdb +0 -0
  53. data/test/data/test-data/MaxMind-DB-test-decoder.mmdb +0 -0
  54. data/test/data/test-data/MaxMind-DB-test-ipv4-24.mmdb +0 -0
  55. data/test/data/test-data/MaxMind-DB-test-ipv4-28.mmdb +0 -0
  56. data/test/data/test-data/MaxMind-DB-test-ipv4-32.mmdb +0 -0
  57. data/test/data/test-data/MaxMind-DB-test-ipv6-24.mmdb +0 -0
  58. data/test/data/test-data/MaxMind-DB-test-ipv6-28.mmdb +0 -0
  59. data/test/data/test-data/MaxMind-DB-test-ipv6-32.mmdb +0 -0
  60. data/test/data/test-data/MaxMind-DB-test-metadata-pointers.mmdb +0 -0
  61. data/test/data/test-data/MaxMind-DB-test-mixed-24.mmdb +0 -0
  62. data/test/data/test-data/MaxMind-DB-test-mixed-28.mmdb +0 -0
  63. data/test/data/test-data/MaxMind-DB-test-mixed-32.mmdb +0 -0
  64. data/test/data/test-data/MaxMind-DB-test-nested.mmdb +0 -0
  65. data/test/data/test-data/MaxMind-DB-test-pointer-decoder.mmdb +0 -0
  66. data/test/data/test-data/README.md +28 -12
  67. data/test/test_client.rb +18 -2
  68. data/test/test_reader.rb +19 -1
  69. metadata +16 -7
  70. data/test/data/source-data/README +0 -15
  71. data/test/data/test-data/write-test-data.pl +0 -695
@@ -558,7 +558,7 @@
558
558
  ],
559
559
  "traits" : {
560
560
  "static_ip_score" : 0.63,
561
- "user_type" : "dialup"
561
+ "user_type" : "residential"
562
562
  }
563
563
  }
564
564
  },
@@ -726,6 +726,352 @@
726
726
  }
727
727
  }
728
728
  },
729
+ {
730
+ "2001:480::/64" : {
731
+ "continent" : {
732
+ "code" : "AS",
733
+ "geoname_id" : 6255147,
734
+ "names" : {
735
+ "de" : "Asien",
736
+ "en" : "Asia",
737
+ "es" : "Asia",
738
+ "fr" : "Asie",
739
+ "ja" : "アジア",
740
+ "pt-BR" : "Ásia",
741
+ "ru" : "Азия",
742
+ "zh-CN" : "亚洲"
743
+ }
744
+ },
745
+ "country" : {
746
+ "geoname_id" : 1861060,
747
+ "iso_code" : "JP",
748
+ "names" : {
749
+ "de" : "Japan",
750
+ "en" : "Japan",
751
+ "es" : "Japón",
752
+ "fr" : "Japon",
753
+ "ja" : "日本",
754
+ "pt-BR" : "Japão",
755
+ "ru" : "Япония",
756
+ "zh-CN" : "日本"
757
+ }
758
+ },
759
+ "location" : {
760
+ "accuracy_radius" : 100,
761
+ "latitude" : 35.68536,
762
+ "longitude" : 139.75309,
763
+ "time_zone" : "Asia/Tokyo"
764
+ },
765
+ "registered_country" : {
766
+ "geoname_id" : 1861060,
767
+ "iso_code" : "JP",
768
+ "names" : {
769
+ "de" : "Japan",
770
+ "en" : "Japan",
771
+ "es" : "Japón",
772
+ "fr" : "Japon",
773
+ "ja" : "日本",
774
+ "pt-BR" : "Japão",
775
+ "ru" : "Япония",
776
+ "zh-CN" : "日本"
777
+ }
778
+ }
779
+ }
780
+ },
781
+ {
782
+ "214.1.1.0/24" : {
783
+ "traits": {
784
+ "is_anycast": true
785
+ }
786
+ }
787
+ },
788
+ {
789
+ "214.78.0.0/23" : {
790
+ "city" : {
791
+ "confidence" : 99,
792
+ "geoname_id" : 5391811,
793
+ "names" : {
794
+ "de" : "San Diego",
795
+ "en" : "San Diego",
796
+ "es" : "San Diego",
797
+ "fr" : "San Diego",
798
+ "ja" : "サンディエゴ",
799
+ "pt-BR" : "San Diego",
800
+ "ru" : "Сан-Диего"
801
+ }
802
+ },
803
+ "continent" : {
804
+ "code" : "NA",
805
+ "geoname_id" : 6255149,
806
+ "names" : {
807
+ "de" : "Nordamerika",
808
+ "en" : "North America",
809
+ "es" : "Norteamérica",
810
+ "fr" : "Amérique du Nord",
811
+ "ja" : "北アメリカ",
812
+ "pt-BR" : "América do Norte",
813
+ "ru" : "Северная Америка",
814
+ "zh-CN" : "北美洲"
815
+ }
816
+ },
817
+ "country" : {
818
+ "confidence" : 99,
819
+ "geoname_id" : 6252001,
820
+ "iso_code" : "US",
821
+ "names" : {
822
+ "de" : "Vereinigte Staaten",
823
+ "en" : "United States",
824
+ "es" : "Estados Unidos",
825
+ "fr" : "États Unis",
826
+ "ja" : "アメリカ",
827
+ "pt-BR" : "EUA",
828
+ "ru" : "США",
829
+ "zh-CN" : "美国"
830
+ }
831
+ },
832
+ "location" : {
833
+ "accuracy_radius" : 10,
834
+ "latitude" : 32.7449,
835
+ "longitude" : -117.165,
836
+ "metro_code" : 825,
837
+ "time_zone" : "America/Los_Angeles"
838
+ },
839
+ "postal" : {
840
+ "code" : "92103",
841
+ "confidence" : 90
842
+ },
843
+ "registered_country" : {
844
+ "geoname_id" : 6252001,
845
+ "iso_code" : "US",
846
+ "names" : {
847
+ "de" : "Vereinigte Staaten",
848
+ "en" : "United States",
849
+ "es" : "Estados Unidos",
850
+ "fr" : "États Unis",
851
+ "ja" : "アメリカ",
852
+ "pt-BR" : "EUA",
853
+ "ru" : "США",
854
+ "zh-CN" : "美国"
855
+ }
856
+ },
857
+ "subdivisions" : [
858
+ {
859
+ "confidence" : 99,
860
+ "geoname_id" : 5332921,
861
+ "iso_code" : "CA",
862
+ "names" : {
863
+ "de" : "Kalifornien",
864
+ "en" : "California",
865
+ "es" : "California",
866
+ "fr" : "Californie",
867
+ "ja" : "カリフォルニア州",
868
+ "pt-BR" : "Califórnia",
869
+ "ru" : "Калифорния",
870
+ "zh-CN" : "加州"
871
+ }
872
+ }
873
+ ],
874
+ "traits" : {
875
+ "autonomous_system_number" : 5972,
876
+ "autonomous_system_organization" : "DNIC-ASBLK-05800-06055",
877
+ "connection_type" : "Cable/DSL",
878
+ "domain" : "health.mil",
879
+ "isp" : "US Air Force",
880
+ "organization" : "US Department of Defense",
881
+ "user_type" : "military"
882
+ }
883
+ }
884
+ },
885
+ {
886
+ "214.78.120.0/22" : {
887
+ "city" : {
888
+ "geoname_id" : 5391811,
889
+ "names" : {
890
+ "de" : "San Diego",
891
+ "en" : "San Diego",
892
+ "es" : "San Diego",
893
+ "fr" : "San Diego",
894
+ "ja" : "サンディエゴ",
895
+ "pt-BR" : "San Diego",
896
+ "ru" : "Сан-Диего"
897
+ }
898
+ },
899
+ "continent" : {
900
+ "code" : "NA",
901
+ "geoname_id" : 6255149,
902
+ "names" : {
903
+ "de" : "Nordamerika",
904
+ "en" : "North America",
905
+ "es" : "Norteamérica",
906
+ "fr" : "Amérique du Nord",
907
+ "ja" : "北アメリカ",
908
+ "pt-BR" : "América do Norte",
909
+ "ru" : "Северная Америка",
910
+ "zh-CN" : "北美洲"
911
+ }
912
+ },
913
+ "country" : {
914
+ "geoname_id" : 6252001,
915
+ "iso_code" : "US",
916
+ "names" : {
917
+ "de" : "Vereinigte Staaten",
918
+ "en" : "United States",
919
+ "es" : "Estados Unidos",
920
+ "fr" : "États Unis",
921
+ "ja" : "アメリカ",
922
+ "pt-BR" : "EUA",
923
+ "ru" : "США",
924
+ "zh-CN" : "美国"
925
+ }
926
+ },
927
+ "location" : {
928
+ "accuracy_radius" : 100,
929
+ "latitude" : 32.7405,
930
+ "longitude" : -117.0935,
931
+ "metro_code" : 825,
932
+ "time_zone" : "America/Los_Angeles"
933
+ },
934
+ "postal" : {
935
+ "code" : "92105"
936
+ },
937
+ "registered_country" : {
938
+ "geoname_id" : 6252001,
939
+ "iso_code" : "US",
940
+ "names" : {
941
+ "de" : "Vereinigte Staaten",
942
+ "en" : "United States",
943
+ "es" : "Estados Unidos",
944
+ "fr" : "États Unis",
945
+ "ja" : "アメリカ",
946
+ "pt-BR" : "EUA",
947
+ "ru" : "США",
948
+ "zh-CN" : "美国"
949
+ }
950
+ },
951
+ "subdivisions" : [
952
+ {
953
+ "geoname_id" : 5332921,
954
+ "iso_code" : "CA",
955
+ "names" : {
956
+ "de" : "Kalifornien",
957
+ "en" : "California",
958
+ "es" : "California",
959
+ "fr" : "Californie",
960
+ "ja" : "カリフォルニア州",
961
+ "pt-BR" : "Califórnia",
962
+ "ru" : "Калифорния",
963
+ "zh-CN" : "加州"
964
+ }
965
+ }
966
+ ],
967
+ "traits" : {
968
+ "autonomous_system_number" : 14593,
969
+ "autonomous_system_organization" : "SPACEX-STARLINK",
970
+ "connection_type" : "Satellite",
971
+ "domain" : "starlinkisp.net",
972
+ "isp" : "Starlink",
973
+ "organization" : "Starlink",
974
+ "user_type" : "residential"
975
+ }
976
+ }
977
+ },
978
+ {
979
+ "2001:480:10::/49" : {
980
+ "city" : {
981
+ "confidence" : 40,
982
+ "geoname_id" : 5391811,
983
+ "names" : {
984
+ "de" : "San Diego",
985
+ "en" : "San Diego",
986
+ "es" : "San Diego",
987
+ "fr" : "San Diego",
988
+ "ja" : "サンディエゴ",
989
+ "pt-BR" : "San Diego",
990
+ "ru" : "Сан-Диего"
991
+ }
992
+ },
993
+ "continent" : {
994
+ "code" : "NA",
995
+ "geoname_id" : 6255149,
996
+ "names" : {
997
+ "de" : "Nordamerika",
998
+ "en" : "North America",
999
+ "es" : "Norteamérica",
1000
+ "fr" : "Amérique du Nord",
1001
+ "ja" : "北アメリカ",
1002
+ "pt-BR" : "América do Norte",
1003
+ "ru" : "Северная Америка",
1004
+ "zh-CN" : "北美洲"
1005
+ }
1006
+ },
1007
+ "country" : {
1008
+ "confidence" : 99,
1009
+ "geoname_id" : 6252001,
1010
+ "iso_code" : "US",
1011
+ "names" : {
1012
+ "de" : "Vereinigte Staaten",
1013
+ "en" : "United States",
1014
+ "es" : "Estados Unidos",
1015
+ "fr" : "États Unis",
1016
+ "ja" : "アメリカ",
1017
+ "pt-BR" : "EUA",
1018
+ "ru" : "США",
1019
+ "zh-CN" : "美国"
1020
+ }
1021
+ },
1022
+ "location" : {
1023
+ "accuracy_radius" : 20,
1024
+ "latitude" : 32.7203,
1025
+ "longitude" : -117.1552,
1026
+ "metro_code" : 825,
1027
+ "time_zone" : "America/Los_Angeles"
1028
+ },
1029
+ "postal" : {
1030
+ "code" : "92101",
1031
+ "confidence" : 1
1032
+ },
1033
+ "registered_country" : {
1034
+ "geoname_id" : 6252001,
1035
+ "iso_code" : "US",
1036
+ "names" : {
1037
+ "de" : "Vereinigte Staaten",
1038
+ "en" : "United States",
1039
+ "es" : "Estados Unidos",
1040
+ "fr" : "États Unis",
1041
+ "ja" : "アメリカ",
1042
+ "pt-BR" : "EUA",
1043
+ "ru" : "США",
1044
+ "zh-CN" : "美国"
1045
+ }
1046
+ },
1047
+ "subdivisions" : [
1048
+ {
1049
+ "confidence" : 70,
1050
+ "geoname_id" : 5332921,
1051
+ "iso_code" : "CA",
1052
+ "names" : {
1053
+ "de" : "Kalifornien",
1054
+ "en" : "California",
1055
+ "es" : "California",
1056
+ "fr" : "Californie",
1057
+ "ja" : "カリフォルニア州",
1058
+ "pt-BR" : "Califórnia",
1059
+ "ru" : "Калифорния",
1060
+ "zh-CN" : "加州"
1061
+ }
1062
+ }
1063
+ ],
1064
+ "traits" : {
1065
+ "autonomous_system_number" : 22,
1066
+ "autonomous_system_organization" : "DNIC-AS-00022",
1067
+ "connection_type" : "Cable/DSL",
1068
+ "domain" : "navy.mil",
1069
+ "isp" : "US Department of Defense",
1070
+ "organization" : "DNIC",
1071
+ "user_type" : "military"
1072
+ }
1073
+ }
1074
+ },
729
1075
  {
730
1076
  "::212.47.235.81/128" : {
731
1077
  "traits" : {
@@ -0,0 +1,296 @@
1
+ [
2
+ {
3
+ "::23.10.87.103/32" : {
4
+ "city" : {
5
+ "confidence" : 40,
6
+ "geoname_id" : 5368361,
7
+ "names" : {
8
+ "de" : "Los Angeles",
9
+ "en" : "Los Angeles",
10
+ "es" : "Los Ángeles",
11
+ "fr" : "Los Angeles",
12
+ "ja" : "ロサンゼルス",
13
+ "pt-BR" : "Los Angeles",
14
+ "ru" : "Лос-Анджелес",
15
+ "zh-CN" : "洛杉矶"
16
+ }
17
+ },
18
+ "continent" : {
19
+ "code" : "NA",
20
+ "geoname_id" : 6255149,
21
+ "names" : {
22
+ "de" : "Nordamerika",
23
+ "en" : "North America",
24
+ "es" : "Norteamérica",
25
+ "fr" : "Amérique du Nord",
26
+ "ja" : "北アメリカ",
27
+ "pt-BR" : "América do Norte",
28
+ "ru" : "Северная Америка",
29
+ "zh-CN" : "北美洲"
30
+ }
31
+ },
32
+ "country" : {
33
+ "confidence" : 99,
34
+ "geoname_id" : 6252001,
35
+ "iso_code" : "US",
36
+ "names" : {
37
+ "de" : "USA",
38
+ "en" : "United States",
39
+ "es" : "Estados Unidos",
40
+ "fr" : "États-Unis",
41
+ "ja" : "アメリカ合衆国",
42
+ "pt-BR" : "Estados Unidos",
43
+ "ru" : "США",
44
+ "zh-CN" : "美国"
45
+ }
46
+ },
47
+ "location" : {
48
+ "accuracy_radius" : 20,
49
+ "latitude" : 34.0544,
50
+ "longitude" : -118.244,
51
+ "metro_code" : 803,
52
+ "time_zone" : "America/Los_Angeles"
53
+ },
54
+ "postal" : {
55
+ "code" : "90009",
56
+ "confidence" : 1
57
+ },
58
+ "registered_country" : {
59
+ "geoname_id" : 6252001,
60
+ "iso_code" : "US",
61
+ "names" : {
62
+ "de" : "USA",
63
+ "en" : "United States",
64
+ "es" : "Estados Unidos",
65
+ "fr" : "États-Unis",
66
+ "ja" : "アメリカ合衆国",
67
+ "pt-BR" : "Estados Unidos",
68
+ "ru" : "США",
69
+ "zh-CN" : "美国"
70
+ }
71
+ },
72
+ "subdivisions" : [
73
+ {
74
+ "confidence" : 90,
75
+ "geoname_id" : 5332921,
76
+ "iso_code" : "CA",
77
+ "names" : {
78
+ "de" : "Kalifornien",
79
+ "en" : "California",
80
+ "es" : "California",
81
+ "fr" : "Californie",
82
+ "ja" : "カリフォルニア州",
83
+ "pt-BR" : "Califórnia",
84
+ "ru" : "Калифорния",
85
+ "zh-CN" : "加利福尼亚州"
86
+ }
87
+ }
88
+ ],
89
+ "traits" : {
90
+ "autonomous_system_number" : 33224,
91
+ "autonomous_system_organization" : "Towerstream I, Inc.",
92
+ "connection_type" : "Corporate",
93
+ "isp" : "Towerstream I",
94
+ "organization" : "Towerstream I",
95
+ "static_ip_score" : 0.34,
96
+ "user_type" : "business"
97
+ }
98
+ }
99
+ },
100
+ {
101
+ "::152.216.7.110/32" : {
102
+ "city" : {
103
+ "confidence" : 40,
104
+ "geoname_id" : 5368361,
105
+ "names" : {
106
+ "de" : "Los Angeles",
107
+ "en" : "Los Angeles",
108
+ "es" : "Los Ángeles",
109
+ "fr" : "Los Angeles",
110
+ "ja" : "ロサンゼルス",
111
+ "pt-BR" : "Los Angeles",
112
+ "ru" : "Лос-Анджелес",
113
+ "zh-CN" : "洛杉矶"
114
+ }
115
+ },
116
+ "continent" : {
117
+ "code" : "NA",
118
+ "geoname_id" : 6255149,
119
+ "names" : {
120
+ "de" : "Nordamerika",
121
+ "en" : "North America",
122
+ "es" : "Norteamérica",
123
+ "fr" : "Amérique du Nord",
124
+ "ja" : "北アメリカ",
125
+ "pt-BR" : "América do Norte",
126
+ "ru" : "Северная Америка",
127
+ "zh-CN" : "北美洲"
128
+ }
129
+ },
130
+ "country" : {
131
+ "confidence" : 99,
132
+ "geoname_id" : 6252001,
133
+ "iso_code" : "US",
134
+ "names" : {
135
+ "de" : "USA",
136
+ "en" : "United States",
137
+ "es" : "Estados Unidos",
138
+ "fr" : "États-Unis",
139
+ "ja" : "アメリカ合衆国",
140
+ "pt-BR" : "Estados Unidos",
141
+ "ru" : "США",
142
+ "zh-CN" : "美国"
143
+ }
144
+ },
145
+ "location" : {
146
+ "accuracy_radius" : 20,
147
+ "latitude" : 34.0544,
148
+ "longitude" : -118.244,
149
+ "metro_code" : 803,
150
+ "time_zone" : "America/Los_Angeles"
151
+ },
152
+ "postal" : {
153
+ "code" : "90009",
154
+ "confidence" : 1
155
+ },
156
+ "registered_country" : {
157
+ "geoname_id" : 6252001,
158
+ "iso_code" : "US",
159
+ "names" : {
160
+ "de" : "USA",
161
+ "en" : "United States",
162
+ "es" : "Estados Unidos",
163
+ "fr" : "États-Unis",
164
+ "ja" : "アメリカ合衆国",
165
+ "pt-BR" : "Estados Unidos",
166
+ "ru" : "США",
167
+ "zh-CN" : "美国"
168
+ }
169
+ },
170
+ "subdivisions" : [
171
+ {
172
+ "confidence" : 90,
173
+ "geoname_id" : 5332921,
174
+ "iso_code" : "CA",
175
+ "names" : {
176
+ "de" : "Kalifornien",
177
+ "en" : "California",
178
+ "es" : "California",
179
+ "fr" : "Californie",
180
+ "ja" : "カリフォルニア州",
181
+ "pt-BR" : "Califórnia",
182
+ "ru" : "Калифорния",
183
+ "zh-CN" : "加利福尼亚州"
184
+ }
185
+ }
186
+ ],
187
+ "traits" : {
188
+ "autonomous_system_number" : 33224,
189
+ "autonomous_system_organization" : "Towerstream I, Inc.",
190
+ "connection_type" : "Corporate",
191
+ "isp" : "Towerstream I",
192
+ "organization" : "Towerstream I",
193
+ "static_ip_score" : 0.34,
194
+ "user_type" : "business"
195
+ }
196
+ }
197
+ },
198
+ {
199
+ "::146.243.121.22/32" : {
200
+ "city" : {
201
+ "confidence" : 40,
202
+ "geoname_id" : 5368361,
203
+ "names" : {
204
+ "de" : "Los Angeles",
205
+ "en" : "Los Angeles",
206
+ "es" : "Los Ángeles",
207
+ "fr" : "Los Angeles",
208
+ "ja" : "ロサンゼルス",
209
+ "pt-BR" : "Los Angeles",
210
+ "ru" : "Лос-Анджелес",
211
+ "zh-CN" : "洛杉矶"
212
+ }
213
+ },
214
+ "continent" : {
215
+ "code" : "NA",
216
+ "geoname_id" : 6255149,
217
+ "names" : {
218
+ "de" : "Nordamerika",
219
+ "en" : "North America",
220
+ "es" : "Norteamérica",
221
+ "fr" : "Amérique du Nord",
222
+ "ja" : "北アメリカ",
223
+ "pt-BR" : "América do Norte",
224
+ "ru" : "Северная Америка",
225
+ "zh-CN" : "北美洲"
226
+ }
227
+ },
228
+ "country" : {
229
+ "confidence" : 99,
230
+ "geoname_id" : 6252001,
231
+ "iso_code" : "US",
232
+ "names" : {
233
+ "de" : "USA",
234
+ "en" : "United States",
235
+ "es" : "Estados Unidos",
236
+ "fr" : "États-Unis",
237
+ "ja" : "アメリカ合衆国",
238
+ "pt-BR" : "Estados Unidos",
239
+ "ru" : "США",
240
+ "zh-CN" : "美国"
241
+ }
242
+ },
243
+ "location" : {
244
+ "accuracy_radius" : 20,
245
+ "latitude" : 34.0544,
246
+ "longitude" : -118.244,
247
+ "metro_code" : 803,
248
+ "time_zone" : "America/Los_Angeles"
249
+ },
250
+ "postal" : {
251
+ "code" : "90009",
252
+ "confidence" : 1
253
+ },
254
+ "registered_country" : {
255
+ "geoname_id" : 6252001,
256
+ "iso_code" : "US",
257
+ "names" : {
258
+ "de" : "USA",
259
+ "en" : "United States",
260
+ "es" : "Estados Unidos",
261
+ "fr" : "États-Unis",
262
+ "ja" : "アメリカ合衆国",
263
+ "pt-BR" : "Estados Unidos",
264
+ "ru" : "США",
265
+ "zh-CN" : "美国"
266
+ }
267
+ },
268
+ "subdivisions" : [
269
+ {
270
+ "confidence" : 90,
271
+ "geoname_id" : 5332921,
272
+ "iso_code" : "CA",
273
+ "names" : {
274
+ "de" : "Kalifornien",
275
+ "en" : "California",
276
+ "es" : "California",
277
+ "fr" : "Californie",
278
+ "ja" : "カリフォルニア州",
279
+ "pt-BR" : "Califórnia",
280
+ "ru" : "Калифорния",
281
+ "zh-CN" : "加利福尼亚州"
282
+ }
283
+ }
284
+ ],
285
+ "traits" : {
286
+ "autonomous_system_number" : 33224,
287
+ "autonomous_system_organization" : "Towerstream I, Inc.",
288
+ "connection_type" : "Corporate",
289
+ "isp" : "Towerstream I",
290
+ "organization" : "Towerstream I",
291
+ "static_ip_score" : 0.34,
292
+ "user_type" : "business"
293
+ }
294
+ }
295
+ }
296
+ ]