Class: GOBL::Org::Coordinates

Inherits:
GOBL::Object show all
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

Hashme::Boolean

Instance Attribute Summary collapse

Method Summary

Methods inherited from GOBL::Object

new

Methods inherited from Struct

#as_json, from_data, from_json!, #to_json

Instance Attribute Details

#geohashString (readonly)

Single string coordinate based on geohash standard.

Returns:

  • (String)


34
# File 'lib/gobl/org/coordinates.rb', line 34

property :geohash, String

#latFloat (readonly)

Decimal latitude coordinate.

Returns:

  • (Float)


19
# File 'lib/gobl/org/coordinates.rb', line 19

property :lat, Float

#lonFloat (readonly)

Decimal longitude coordinate.

Returns:

  • (Float)


24
# File 'lib/gobl/org/coordinates.rb', line 24

property :lon, Float

#w3wString (readonly)

Text coordinates compose of three words.

Returns:

  • (String)


29
# File 'lib/gobl/org/coordinates.rb', line 29

property :w3w, String