GithubHelp home page GithubHelp logo

ip2location / ip2location-d Goto Github PK

View Code? Open in Web Editor NEW
6.0 5.0 0.0 68 KB

Use IP2Location geolocation database to lookup for accurate visitor location with D Library. It enables the user to find the country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather, MCC, MNC, mobile brand name, elevation, usage type, address type and IAB category that any IP address or hostname originates from.

Home Page: https://www.ip2location.com/developers/d

License: MIT License

D 100.00%
ip2location database ip-database ip-lookup ip-address-lookup ip-geolocation geolocation ip-address d-library

ip2location-d's Introduction

IP2Location D Library

This D library 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 and IAB category from IP address by using IP2Location database. This library 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) and autonomous system (AS) as values. It supports both IP address in IPv4 and IPv6.

This library 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 on a monthly basis for 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.

As an alternative, this library can also call the IP2Location Web Service. This requires an API key. If you don't have an existing API key, you can subscribe for one at the below:

https://www.ip2location.com/web-service/ip2location

Developer Documentation

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

ip2location-d's People

Contributors

aberba avatar ip2location avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ip2location-d's Issues

Error compiling in Ubuntu 14.04, x86 - DMD32 D Compiler v2.072.1

I get the error:

ip2location-d 8.0.3: building configuration "library"...
/usr/include/dmd/phobos/std/internal/math/biguintx86.d(231,14): Error: asm statements cannot be interpreted at compile time
/usr/include/dmd/phobos/std/internal/math/biguintcore.d(1758,52):        called from here: multibyteIncrementAssign(data[0..hi], cast(uint)(y & 4294967295LU))
/usr/include/dmd/phobos/std/internal/math/biguintcore.d(448,40):        called from here: biguintFromDecimal(tmp, s)
/usr/include/dmd/phobos/std/bigint.d(112,40):        called from here: this.data.fromDecimalString(filterBidirectional(codeUnits))
../../../../.dub/packages/ip2location-d-8.0.3/ip2location-d/source/ip2location-d/ip2location.d(78,47):        called from here: BigInt(BigUint([0u]), false).this("340282366920938463463374607431768211455")
dmd failed with exit code 1.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.