https://github.com/ip2location/ip2location-dart
Use IP2Location geolocation database to lookup the geolocation information with IP2Location Dart 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, usage type, address type and IAB category for any IP address.
https://github.com/ip2location/ip2location-dart
Last synced: 10 months ago
JSON representation
Use IP2Location geolocation database to lookup the geolocation information with IP2Location Dart 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, usage type, address type and IAB category for any IP address.
- Host: GitHub
- URL: https://github.com/ip2location/ip2location-dart
- Owner: ip2location
- License: mit
- Created: 2025-08-15T02:28:11.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-09-09T04:58:58.000Z (11 months ago)
- Last Synced: 2025-09-09T06:57:59.090Z (11 months ago)
- Language: Dart
- Size: 69.3 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://pub.dev/packages/ip2location)
# IP2Location Dart Package
This Dart package 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, IAB category, district, autonomous system number (ASN) and autonomous system (AS) from IP address by using IP2Location database. This package 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), autonomous system (AS), AS domain, AS usage type and AS CIDR as values. It supports both IP address in IPv4 and IPv6.
This package 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.
Developer Documentation
=====================
To learn more about installation, usage, and code examples, please visit the developer documentation at [https://ip2location-dart.readthedocs.io/en/latest/](https://ip2location-dart.readthedocs.io/en/latest/).