ip2location-d 8.0.2

IP2Location D Library


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

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, and usage type 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, and usage type 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 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.

Installation

To install this library using dub:

"dependencies": {

"ip2location-d": "~master"

}

Example

See app.d for sample code.

Dependencies

The complete database is available at http://www.ip2location.com under subscription package.

Copyright (C) 2016 by IP2Location.com, [email protected]

Authors:
  • IP2Location
Dependencies:
none
Versions:
8.7.0 2023-Apr-04
8.6.0 2022-Jun-23
8.5.0 2021-Nov-18
8.4.1 2021-Jul-05
8.4.0 2021-Jun-17
Show all 13 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 72 downloads total

Score:
1.2
Short URL:
ip2location-d.dub.pm