RikuloRikulo

Rikulo GeoIP

Rikulo GeoIP is a Dart bridge to the on-line geo-ip JavaScript service provided by smart-ip.net.

Services

Installation

Rikulo GeoIP is not part of Rikulo package. You have to add this to your pubspec.yaml (or create it):

dependencies:
  rikulo_geoip:

Then run the Pub Package Manager (comes with the Dart SDK):

pub install

A Simple Example

Following is an example that load the geo information per the caller's IP address.

import 'package:rikulo_geoip/smartip.dart';

void main() {

  new SmartIP().loadIPGeoInfo()
    .then((Map result) => print(result));
}