All Projects → phuslu → Iploc

phuslu / Iploc

Licence: mit
Fastest IP To Country Library

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Iploc

Shiny geoip
IP to location API service
Stars: ✭ 172 (-23.21%)
Mutual labels:  geolocation, geoip
locus
MMDB reader for geolocation and ASN lookup of IP addresses
Stars: ✭ 93 (-58.48%)
Mutual labels:  geolocation, geoip
GeoLite.mmdb
MaxMind's GeoIP2 GeoLite2 Country, City, and ASN databases
Stars: ✭ 690 (+208.04%)
Mutual labels:  geolocation, geoip
nodejs-geoip2ws
Maxmind GeoIP2 Web Services for Node.js
Stars: ✭ 47 (-79.02%)
Mutual labels:  geolocation, geoip
Maxminddb Golang
MaxMind DB Reader for Go
Stars: ✭ 319 (+42.41%)
Mutual labels:  geolocation, geoip
Country Ip Blocks
CIDR country-level IP data, straight from the Regional Internet Registries, updated hourly.
Stars: ✭ 100 (-55.36%)
Mutual labels:  geolocation, geoip
tinygeoip
🐉 tiny geoip microservice
Stars: ✭ 13 (-94.2%)
Mutual labels:  geolocation, geoip
express-ip
An Express Middleware for getting IP information
Stars: ✭ 28 (-87.5%)
Mutual labels:  geolocation, geoip
country
IP to country
Stars: ✭ 32 (-85.71%)
Mutual labels:  geolocation, geoip
Geoip2 Golang
Unofficial MaxMind GeoIP2 Reader for Go
Stars: ✭ 1,074 (+379.46%)
Mutual labels:  geolocation, geoip
Geo ip
Retreive the geolocation of an IP address based on the ipinfodb.com webservice
Stars: ✭ 103 (-54.02%)
Mutual labels:  geolocation, geoip
React Native Android Location Services Dialog Box
React Native Android Location Services Dialog Box
Stars: ✭ 175 (-21.87%)
Mutual labels:  geolocation
Geoip2 Php
PHP API for GeoIP2 webservice client and database reader
Stars: ✭ 1,956 (+773.21%)
Mutual labels:  geoip
Track Ip
Advanced Ip Tracker Tool
Stars: ✭ 150 (-33.04%)
Mutual labels:  geolocation
Geolocation
Flutter geolocation plugin for Android and iOS.
Stars: ✭ 205 (-8.48%)
Mutual labels:  geolocation
Geo Three
Tile based geographic world map visualization library for threejs
Stars: ✭ 146 (-34.82%)
Mutual labels:  geolocation
Ip2location Go
Use IP2Location geolocation database to lookup the geolocation information with IP2Location Go Package. It can be used to determine country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather, MCC, MNC, mobile brand name, elevation and usage type that any IP address or hostname originates from.
Stars: ✭ 142 (-36.61%)
Mutual labels:  geolocation
Georaptor
Python Geohash Compression Tool
Stars: ✭ 143 (-36.16%)
Mutual labels:  geolocation
Whereami
📍 Get your geolocation information using freegeoip.app
Stars: ✭ 137 (-38.84%)
Mutual labels:  geolocation
Ios
OwnTracks' iPhone App
Stars: ✭ 222 (-0.89%)
Mutual labels:  geolocation

iploc - fastest ip country library

godoc release goreport coverage

Getting Started

try on https://play.golang.org/p/T_7jfSr0cE1

package main

import (
	"fmt"
	"net"
	"github.com/phuslu/iploc"
)

func main() {
	fmt.Printf("%s", iploc.Country(net.IP{1,1,1,1}))
}

// Output: US

Command Tool

$ go get github.com/phuslu/iploc/cmd/iploc
$ iploc 2001:4860:4860::8888
US

Benchmarks

BenchmarkCountryForIPv4-8   	20.8 ns/op	       0 B/op	       0 allocs/op
BenchmarkCountryForIPv6-8   	38.2 ns/op	       0 B/op	       0 allocs/op

Acknowledgment

This site or product includes IP2Location LITE data available from http://www.ip2location.com.

How often are the database(iploc_db.go) updated?

Following IP2Location Lite Database, usually monthly.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].