An open API service indexing awesome lists of open source software.

https://github.com/chrislim2888/ip2location-cocoa-library

This is a Cocoa library that enables the user to find the country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather station name, mobile, usage types, etc that any IP address or hostname originates from.
https://github.com/chrislim2888/ip2location-cocoa-library

area-code c city cocoa-library country domain elevation geolocation ip-address ip-location ip-lookup ip2location ipv4 ipv6 isp mobile-info region timezone weather-station zip-code

Last synced: 8 months ago
JSON representation

This is a Cocoa library that enables the user to find the country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather station name, mobile, usage types, etc that any IP address or hostname originates from.

Awesome Lists containing this project

README

          

# IP2Location Cocoa 7.0.0
This is IP2Location Cocoa library that enables the user to find the country, region (state), city, latitude, longitude, zip code, time zone, ISP, domain name, connection type, area code, weather, mobile network, elevation, and usage type by IP address or hostname originates from. The library reads the geo location information
from **IP2Location BIN data** file.

Supported IPv4 and IPv6 address.

For more details, please visit:
[https://www.ip2location.com/developers/cocoa](https://www.ip2location.com/developers/cocoa)

#Installation (Mac OS X)
1. Download and decompress ip2location-cocoa-x.x.x.zip
2. For Xcode usage:
1. Add ip2location.framework to your Xcode project by dragging and dropping it into Project Navigator
2. In your appropriate target, under "Build Settings", select "Runpath Search Paths" in the "Linking" category, and enter "@loader_path/../Frameworks" (without the quotes).
3. Build your project
3. For build from command line or makefile
1. Copy ip2location.framework to your working directory
2. Build and link your target with following options added (without the quotes): "-F. -L. -Wl,-framework,ip2location -Wl,-framework,Foundation"
3. Change linked framework path in your binary: "install_name_tool -change @rpath/ip2location.framework/Versions/A/ip2location ip2location.framework/Versions/A/ip2location binary_executable"

# Sample BIN Databases
* Download free IP2Location LITE databases at [https://lite.ip2location.com](https://lite.ip2location.com)
* Download IP2Location sample databases at [https://www.ip2location.com/developers](https://www.ip2location.com/developers)

# IPv4 BIN vs IPv6 BIN
* Use the IPv4 BIN file if you just need to query IPv4 addresses.
* Use the IPv6 BIN file if you need to query BOTH IPv4 and IPv6 addresses.

# Support
Email: support@ip2location.com.
URL: [https://www.ip2location.com](https://www.ip2location.com)