RaliPosition class

///////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////

Constructors

RaliPosition.new(double lng, double lat)
//////////// ////////////
RaliPosition.fromCoordinates(List coordinates)
Create from a List of coordinates
factory
RaliPosition.fromFirebaseGeoPoint(GeoPoint geoPoint)
Create from a Firebase GeoPoint
factory
RaliPosition.fromGeolocator(Position position)
Create from a Geolocator Position
factory
RaliPosition.fromMapboxPoint(Point point)
Create from a Mapbox Point
factory
RaliPosition.fromMapboxPosition(Position position)
Create from a Mapbox Position
factory
RaliPosition.withBearing(double lng, double lat, double bearing)
Create a position with a specific bearing

Properties

bearing double
Get current bearing (direction of travel) in degrees
no setter
coordinates List<double>
Get coordinates as a list lng, lat
no setter
hashCode int
The hash code for this object.
no setteroverride
lat double
final
lng double
//////////// ////////////
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bearingTo(RaliPosition other) double
Calculate bearing to another position in degrees
distanceTo(RaliPosition other) double
//////////// //////////// Calculate distance to another position in meters
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toFirebaseGeoPoint() GeoPoint
Convert to Firebase GeoPoint
toMapboxPoint() Point
//////////// //////////// Convert to a Mapbox Point
toMapboxPosition() Position
Convert to Mapbox Position
toString() String
Convert to string representation
override

Operators

operator ==(Object other) bool
//////////// ////////////
override