Giter Club home page Giter Club logo

haversine.dart's Introduction

Hi there ๐Ÿ‘‹

haversine.dart's People

Contributors

antsher avatar yeradis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

haversine.dart's Issues

Rename constant PI to pi

Apparently Dart has renamed the PI constant in 'dart:math', it is now named pi.

See: https://api.dart.dev/stable/2.4.0/dart-math/pi-constant.html

When using haversine package I am getting this error:

Compiler message:
file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/haversine-1.0.2/lib/src/haversine_base.dart:72:68: Error: Getter not found: 'PI'.
    double _radiansFromDegrees(final double degrees) => degrees * (PI / 180.0);
                                                                   ^^
file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/haversine-1.0.2/lib/src/haversine_base.dart:72:68: Error: The getter 'PI' isn't defined for the class 'Haversine'.
 - 'Haversine' is from 'package:haversine/src/haversine_base.dart' ('file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/haversine-1.0.2/lib/src/haversine_base.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'PI'.
    double _radiansFromDegrees(final double degrees) => degrees * (PI / 180.0);
                                                                   ^^

Link this repo to the pub page

Hi,

I discovered this package through pub.dev: https://pub.dev/packages/haversine

Unfortunately for whatever reason the source GitHub repo (this one) is not linked in the sidebar, it usually is for all other packages. It may have to do with how relatively early this package was published.

I like visiting the package's repo before installing mainly to triage how severe its issues are; this one seems fine apart from #3 which should be a very simple fix.

@yeradis is this package still being maintained? Would you like me to PR a fix for #3 or can you do it?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.