dart_where39 1.0.0
dart_where39: ^1.0.0

Dart native js
Flutter Android iOS web

Use BIP39 words to locate anywhere in the world - Dart version!

Where93 - Dart Version #

This is the Dart version for the original where39 library for the web: Where39

Example #

See the example folder for a more in depth example.

final LatLng latLng = LatLng(52.49303704, 13.41792593);

    // create a Where39 instance without shuffle
    final Where39 w39 = Where39();

    // convert the coordinates to words
    List<String> words = w39.toWords(latLng);
    print(words);
    // prints: [slush extend until layer arch]

    LatLng coords = w39.fromWords([
      'slush',
      'extend',
      'until',
      'layer',
      'arch',
    ]);
    print(coords);
    // prints: LatLng(latitude:52.493037, longitude:13.417926)

    // shuffle the seed
    w39.shuffle = 1337;
    words = w39.toWords(latLng);
    print(words);
    // prints: [small, extra, unusual, lazy, accident]

Issues #

File any issues to the github issue tracker

License #

See LICENSE file

0
likes
90
pub points
0%
popularity

Publisher

sendmany.app

Use BIP39 words to locate anywhere in the world - Dart version!

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL 3.0 (LICENSE)

Dependencies

latlong

More

Packages that depend on dart_where39