NAME

Geo::DetailsCore - Module to represent details of an IP returned by the Core API

SYNOPSIS

use Geo::DetailsCore;

my $data = {
    ip   => '8.8.8.8',
    geo  => {
        city => 'Mountain View',
        country => 'United States',
        country_code => 'US',
    },
    as => {
        asn => 'AS15169',
        name => 'Google LLC',
    },
    is_anycast => 1,
};

my $details = Geo::DetailsCore->new($data);
print $details->ip;              # Output: 8.8.8.8
print $details->geo->city;       # Output: Mountain View
print $details->as->name;        # Output: Google LLC

DESCRIPTION

Geo::DetailsCore represents details of an IP returned by the IPinfo Core API.

AUTHOR

IPinfo <support@ipinfo.io>

COPYRIGHT AND LICENSE

Copyright (c) 2025 IPinfo

Licensed under the Apache License, Version 2.0.