lat_lng_to_timezone 0.2.0
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
We analyzed this package 2 days ago, and awarded it 150 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: MIT
.
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
.
10/10 points: Package has an example
20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
-
✓ Web
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.
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
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
.
10/10 points: Package supports latest stable Dart and Flutter SDKs
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.