GeoPosition class

Position coordinated in Degrees (i.e. GPS-style).

Inheritance
Annotations

Constructors

GeoPosition(double latitude, double longitude)
GeoPosition.fromJson(Map<String, dynamic> json)
factory
GeoPosition.fromLocationDto(LocationDto location)

Properties

$type String
The runtime class name (type) of this object. Used for deserialization from JSON objects.
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, override
latitude double
Latitude in GPS coordinates.
final
longitude double
Longitude in GPS coordinates.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

distanceTo(GeoPosition destination) double
Returns the approximate distance in meters between this location and the given location. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
registerFromJson(Function fromJsonFunction) → void
Use this method to register a custom fromJson function for this class in the FromJsonFactory.
inherited
toJson() Map<String, dynamic>
Return a JSON encoding of this object.
override
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
override

Static Properties

fromJsonFunction Function
read-only