C Library
PHP Module
Perl Module
Ruby Library
Python Library
Apache Module
Nginx Module
Node.js Module
Cocoa / Objective C Library
Pascal Library
D Library
Go Package
Erlang Module
Haskell Package
Debian Package
Lua Package
Kotlin Module
Scala Library
OpenResty Package
Splunk Add-on
Apache Kafka Transform
OCaml Module
Deno Module
R Package
.NET Component
Java Component
HTTP Module
ActiveX / COM DLL
IP2Location IP Geolocation Pascal Library
This IP Geolocation library is a Pascal library to support all IP2Location™ database products. It has been optimized for speed and memory utilization. Developers can use this library to query all IP2Location™ binary databases for applications written in Pascal/Delphi.
- Download pascal library ip2location-pascal-x.x.x.zip and sample database sample.bin.dbx.zip.
- Unzip the library.
- Run the sample code provided inside the zip file.
#import <Foundation/Foundation.h>
#import <ip2location/IP2Location.h>
int main(int argc, const char * argv[])
{
@autoreleasepool {
//open database
IPLocation *locationDB = [[IPLocation alloc] initWithDataPath: @"data/IP-COUNTRY-SAMPLE.BIN"];
//set memory cache type
[locationDB setMemoryType: IP2LOCATION_MEMORY_CACHE];
//search
IPLocationRecord *rec = [locationDB recordWithIP: @"8.8.8.8"];
NSLog(@"%@", rec.countryShort);
}
return 0;
}
Discover Your User Locations
Retrieve geolocation data for FREE now!