HCoord class

HBool defines singletons for true/false tag values.

See Project Haystack

Inheritance

Constructors

HCoord(num lat, num lng)
factory
HCoord.fromString(String s)
Parse from string fomat "C(lat,lng)" or raise ParseException
factory

Properties

hashCode int
Hash is based on lat/lng
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
ulat int
Latitude in micro-degrees
final
ulng int
Longitude in micro-degrees
final

Methods

compareTo(Object that) int
Returns sort order as negative, 0, or positive.
inherited
lat() double
Latitude in decimal degrees
lng() double
Longtitude in decimal degrees
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
Returns "c:lat,lng"
override
toString() String
String format is for human consumption only.
inherited
toZinc() String
Represented as "C(lat,lng)"
override

Operators

operator ==(Object that) bool
Equality is based on lat/lng
override

Static Methods

isLat(double lat) bool
Returns if given latitude is legal value between -90.0 and +90.0
isLng(double lng) bool
Returns if given is longtitude is legal value between -180.0 and +180.0