geolocation_ip 0.0.1 copy "geolocation_ip: ^0.0.1" to clipboard
geolocation_ip: ^0.0.1 copied to clipboard

A Dart package leverages the IP-API.com service to provide geolocation data based on IP addresses.

geolocation_ip #

A Dart package leverages the IP-API.com service to provide geolocation data based on IP addresses. This package allows developers to easily integrate IP-based geolocation into their Dart or Flutter applications. It supports fetching detailed location information such as country, region, city, latitude, longitude, and more, without requiring an API key for non-commercial use.

Example #

import 'package:ip_geolocation/ip_geolocation.dart';

...
Future<void> getLocationInfo() async {
  String ip = '24.48.0.1';
  
  LocationInfo? locationInfo = await GeolocationIP.getInfo(ip, lang: Lang.en);

  print(locationInfo?.toJson());
  
  info = locationInfo;
  setState(() {});
}
...
1
likes
150
pub points
56%
popularity

Publisher

verified publisherelriztechnology.com

A Dart package leverages the IP-API.com service to provide geolocation data based on IP addresses.

Repository (GitHub)
View/report issues

Topics

#ip-geolocation #geolocation #ip-api #location

Documentation

API reference

License

MIT (license)

Dependencies

http

More

Packages that depend on geolocation_ip