Class: GOBL::Org::Coordinates
- Inherits:
-
GOBL::Object
- Object
- Struct
- GOBL::Object
- GOBL::Org::Coordinates
- Defined in:
- lib/gobl/org/coordinates.rb
Overview
Coordinates describes an exact geographical location in the world.
Constant Summary collapse
- SCHEMA_ID =
The Schema ID of the GOBL Coordinates structure
'https://gobl.org/draft-0/org/coordinates'
Constants included from Hashme
Instance Attribute Summary collapse
-
#geohash ⇒ String
readonly
Single string coordinate based on geohash standard.
-
#lat ⇒ Float
readonly
Decimal latitude coordinate.
-
#lon ⇒ Float
readonly
Decimal longitude coordinate.
-
#w3w ⇒ String
readonly
Text coordinates compose of three words.
Method Summary
Methods inherited from GOBL::Object
Methods inherited from Struct
#as_json, from_data, from_json!, #to_json
Instance Attribute Details
#geohash ⇒ String (readonly)
Single string coordinate based on geohash standard.
34 |
# File 'lib/gobl/org/coordinates.rb', line 34 property :geohash, String |
#lat ⇒ Float (readonly)
Decimal latitude coordinate.
19 |
# File 'lib/gobl/org/coordinates.rb', line 19 property :lat, Float |
#lon ⇒ Float (readonly)
Decimal longitude coordinate.
24 |
# File 'lib/gobl/org/coordinates.rb', line 24 property :lon, Float |
#w3w ⇒ String (readonly)
Text coordinates compose of three words.
29 |
# File 'lib/gobl/org/coordinates.rb', line 29 property :w3w, String |