Giter VIP home page Giter VIP logo

dart-latlong's People

Contributors

alfanhui avatar jifalops avatar mihaimartalogu avatar mikemitterer avatar mootw avatar officiallysomeguy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dart-latlong's Issues

LatLngBounds grow by distance/buffer

I don't know if it would be outside the scope of this library, but I have situations related to flutter_map where I grab the LatLngBounds of FlutterMap-view to filter vector data from a source and would like to load a bit more than just the viewport so if user pans around a bit, it is already loaded, but also not loading the entire world.

For that something that can grow LatLngBounds in all directions would be helpful. Although I understand it then becomes a matter of what projection is used, distance units and might make it to complicated for the scope of this library? But for my use case even just growing it by X % would be enough as it is not a precise buffer operation, just to manage buffering of data.

Initialize LatLng using DMS value

Add constructor to a LatLng object to allow initializing object from Degree Minutes Seconds (DMS).

eg:

var p1 = LatLng.fromDMS(.....),

Upgrade to 6.0.2 failed because of dependency issues

Because vector_map_tiles >=5.0.0 depends on latlong2 ^0.9.0 and szwtracktrace depends on latlong2 ^0.8.0, vector_map_tiles >=5.0.0 is forbidden.
So, because szwtracktrace depends on vector_map_tiles ^6.0.2, version solving failed.

Upraded latlong2 to ^0.9.0. Now I get the following:

Because vector_map_tiles >=5.0.0 depends on flutter_map ^5.0.0 and szwtracktrace depends on flutter_map ^6.0.1, vector_map_tiles >=5.0.0 is forbidden.
So, because szwtracktrace depends on vector_map_tiles ^6.0.2, version solving failed.

Bearing between two points

Is calculating the bearing between two points within scope of this library?

Is it implemented?

If not, is there a known algorithm that will accurately calculate the bearing between two points?

Use case: I'm standing at point A, what compass bearing should I use to walk in a straight line to reach point B?

toSexagesimal broken

the longitude's second number is one higher than expected
I tested by putting the input into google maps -> correct
output into google maps -> off by a bit
then created by own calculator and that was it

Lat long null error

`: Error: The parameter 'center' can't have a value of 'null' because of its type 'LatLng', but the implicit default value is 'null'.

  • 'LatLng' is from 'package:latlong2/latlong.dart' ('/Users/myname/.pub-cache/hosted/pub.dartlang.org/latlong2-0.8.1/lib/latlong.dart').
    Try adding either an explicit non-'null' default value or the 'required' modifier.
    LatLng center,
    ^^^^^^
    /Users/myame/.pub-cache/hosted/pub.dartlang.org/flutter_map-0.14.0/lib/flutter_map.dart:294:18: Warning: Operand of null-aware operation '??' has type 'LatLng' which excludes null.
  • 'LatLng' is from 'package:latlong2/latlong.dart' ('/Users/mynamme/.pub-cache/hosted/pub.dartlang.org/latlong2-0.8.1/lib/latlong.dart').
    }) : center = center ?? LatLng(50.5, 30.51),`

Distance._round (Unsupported operation: Infinity or NaN toInt)

It is a regressed issue on Firebase Crashlytics with the following details.

Non-fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: Unsupported operation: Infinity or NaN toInt. Error thrown null.
at Distance._round(Distance.dart)
at Distance.as(Distance.dart:83)

It is used with the Haversine calculator

Distance from Point to LineString

Tthis library can calculate the distance between two points:

final Distance distance = new Distance(calculator: Haversine());
distance(
    LatLng(x1,y1),
    LatLng(x2,y2),
);

How to calculate the distance from point (LatLng) to the route line (LineString: List)?

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.