lat_lng_to_timezone 0.2.0 copy "lat_lng_to_timezone: ^0.2.0" to clipboard
lat_lng_to_timezone: ^0.2.0 copied to clipboard

Lat/long to timezone mapper in Dart. Does not require web services or data files

25
likes
150/ 160
pub points
4.82k
downloads

We analyzed this package 2 days ago, and awarded it 150 pub points (of a possible 160):

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Passed report section
Provide documentation
20 / 20trigger folding of the section

Passed check 10/10 points: 20% or more of the public API has dartdoc comments

1 out of 4 API elements (25.0 %) have documentation comments.

Some symbols that are missing documentation: lat_lng_to_timezone, lat_lng_to_timezone.initPolyArray, lat_lng_to_timezone.poly.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

  • ✓ Web

Passed check 0/0 points: WASM compatibility

This package is compatible with runtime wasm, and will be rewarded additional points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

Found 5481 issues. Showing the first 2:

INFO: Dangling library doc comment.

lib/src/lat_lng_to_timezone.dart:5:1

  ╷
5 │ ┌ /** The provided code is written by Tim Cooper:   tim@edval.com.au
6 │ └ This code is available under the MIT licence:  https://opensource.org/licenses/MIT  */
  ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/lat_lng_to_timezone.dart

INFO: Statements in an if should be enclosed in a block.

lib/src/lat_lng_to_timezone.dart:445:24

    ╷
445 │     if (lng < 40.227580) if (lng < -74.790449) if (lat < 11.948729) if (lng < -148.915052) if (lat < -15.365572) if (lng <
    │ ┌────────────────────────^
446 │ │       -162.907168) if (lat < -22.132469) if (lat < -31.152578) if (lat < -75.000000)
447 │ │     return 205;
448 │ │   else if (lat < -37.433796)
449 │ │     return 390;
450 │ │   else
451 │ │     return 392;
452 │ │   else if (lat < -29.030330)
453 │ │     return 390;
454 │ │   else
455 │ │     return 424;
456 │ │   else if (lat < -18.370291) if (lat < -19.391686) if (lng < -178.018393)
457 │ │     return 398;
458 │ │   else
459 │ │     return 424;
460 │ │   else if (lng < -174.409124) if (lng < -176.450182)
461 │ │     return 398;
    │ └───────────^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/lat_lng_to_timezone.dart

Passed report section
Support up-to-date dependencies
40 / 40trigger folding of the section

Passed check 10/10 points: All of the package dependencies are supported in the latest version

No dependencies.

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.21, Dart 3.8.1.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
25
likes
150
points
4.82k
downloads

Publisher

unverified uploader

Weekly Downloads

Lat/long to timezone mapper in Dart. Does not require web services or data files

Repository (GitHub)

Documentation

API reference

License

MIT (license)

More

Packages that depend on lat_lng_to_timezone