Go MIT

ip2location-go

The IP2Location Go Package retrieves comprehensive geolocation data from any IP address or hostname. It accurately determines the visitor's country, region, city, coordinates, zip code, time zone, ISP, connection type, mobile network details, weather, and usage type.

I

ip2location

Dernière activité 22 juil. 2026
ip2location/ip2location-go

560

étoiles

108

forks

0

issues ouvertes

geolocationgeolocation-databasegolangip-databaseip-geolocationip-lookupip2location

Ce README est souvent en anglais.

PkgGoDev

IP2Location Go Package

This Go package provides a fast lookup of country, region, city, latitude, longitude, ZIP code, time zone, ISP, domain name, connection type, IDD code, area code, weather station code, station name, mcc, mnc, mobile brand, elevation, usage type, address type, IAB category, district, autonomous system number (ASN) and autonomous system (AS) from IP address by using IP2Location database. This package uses a file based database available at IP2Location.com. This database simply contains IP blocks as keys, and other information such as country, region, city, latitude, longitude, ZIP code, time zone, ISP, domain name, connection type, IDD code, area code, weather station code, station name, mcc, mnc, mobile brand, elevation, usage type, address type, IAB category, district, autonomous system number (ASN), autonomous system (AS), AS domain, AS usage type and AS CIDR as values. It supports both IP address in IPv4 and IPv6.

This package can be used in many types of projects such as:

  • select the geographically closest mirror
  • analyze your web server logs to determine the countries of your visitors
  • credit card fraud detection
  • software export controls
  • display native language and currency
  • prevent password sharing and abuse of service
  • geotargeting in advertisement

The database will be updated in monthly basis for the greater accuracy. Free LITE databases are available at https://lite.ip2location.com/ upon registration.

The paid databases are available at https://www.ip2location.com under Premium subscription package.

Developer Documentation

To learn more about installation, usage, and code examples, please visit the developer documentation at https://ip2location-go.readthedocs.io/en/latest/.

Projets similaires

Ip2region is an offline IP-to-Region localization library and IP data management framework with both IPv4 and IPv6 supports, 10-microsecond level query efficiency, xdb search client for many programming languages

Goip-addressip-address-databaseip-address-location
Llionsoul2014
19,6 k étoiles3,1 k

A simple IP address lookup service.

Gogeoipgoip-address-lookup
Mmpolden
4,4 k étoiles565

Unofficial MaxMind GeoIP2 Reader for Go

Godatabasegeoipgeoip2
Ooschwald
2,3 k étoiles220