Geolocation class
Represents a Geo Location in latitude and longitude.
Constructors
- Geolocation(num _latitude, num _longitude)
Properties
Methods
-
asPoint(
) → Point< num> - As Point(latitude , longitude).
-
googleMapsDirectionsURL(
Geolocation destinationGeo) → String - Generates a Google Maps Directions URL with coordinates.
-
googleMapsURL(
) → String - Generates a Google Maps URL with coordinates.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
windowID(
String prefix) → String - Generates a browser windoe ID with coordinates.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- geolocationFormat → RegExp
-
final
Static Methods
-
formatGeolocation(
Point< num> geo) → String -
formatLatitude(
num lat) → String -
formatLongitude(
num long) → String -
fromCoords(
String? coords, [bool onlyWithCardinals = false]) → Geolocation? -
parseLatitudeOrLongitudeValue(
String? s, [bool onlyWithCardinals = false]) → num?