<% geolite_data = network_range.network_data_for(:geolite) %> <% if geolite_data.present? %>

MaxMind GeoLite2 Data

<% if geolite_data['asn'].present? %>
ASN (MaxMind)
AS<%= geolite_data['asn']['autonomous_system_number'] %> <% if geolite_data['asn']['autonomous_system_organization'].present? %>
<%= geolite_data['asn']['autonomous_system_organization'] %>
<% end %>
<% end %> <% if geolite_data['country'].present? %>
Country (MaxMind)
<%= geolite_data['country']['country_name'] || geolite_data['country']['country_iso_code'] %> <% if geolite_data['country']['country_iso_code'].present? %> <%= country_flag(geolite_data['country']['country_iso_code']) %> <% end %>
<% if geolite_data['country']['continent_name'].present? %>
Continent
<%= geolite_data['country']['continent_name'] %> (<%= geolite_data['country']['continent_code'] %>)
<% end %> <% if geolite_data['country']['geoname_id'].present? %>
GeoName ID
<%= geolite_data['country']['geoname_id'] %>
<% end %>
MaxMind Flags
<% if geolite_data['country']['is_anonymous_proxy'] %> Anonymous Proxy <% end %> <% if geolite_data['country']['is_satellite_provider'] %> Satellite Provider <% end %> <% if geolite_data['country']['is_anycast'] %> Anycast <% end %> <% if geolite_data['country']['is_in_european_union'] == "1" %> 🇪🇺 EU Member <% end %>
<% end %>
Show Raw MaxMind Data
<%= JSON.pretty_generate(geolite_data) %>
<% end %>