ip_geolocation_io 1.0.1 icon indicating copy to clipboard operation
ip_geolocation_io: ^1.0.1 copied to clipboard

Gets the geolocation with ipgeolocation.io API

wrapper around https://ipgeolocation.io/ api to get the geolocation with an http request. Useful for when permissions are not granted.

Features #

Getting started #

Usage #

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 = IpGeoLocationService(apiKey);
  final response = await geolocation.getUserLocation();
  print(response);
}
1
likes
120
pub points
39%
popularity

Publisher

unverified uploader

Gets the geolocation with ipgeolocation.io API

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

http

More

Packages that depend on ip_geolocation_io