ip_geolocation_io 1.1.1 copy "ip_geolocation_io: ^1.1.1" to clipboard
ip_geolocation_io: ^1.1.1 copied to clipboard

Gets the geolocation with ipgeolocation.io API

example/ip_geolocation_io_example.dart

import 'package:ip_geolocation_io/ip_geolocation_io.dart';

void main(List<String> arguments) async {
  if (arguments.isEmpty) {
    throw 'You must give your api key as first argument, get one at https://app.ipgeolocation.io/';
  }

  final apiKey = arguments.first;
  final geolocation = IpGeoLocationIO(apiKey);
  final response = await geolocation.getUserLocation();
  print(response);
}
5
likes
120
pub points
53%
popularity

Publisher

unverified uploader

Gets the geolocation with ipgeolocation.io API

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

http

More

Packages that depend on ip_geolocation_io