Class: GOBL::Org::Coordinates

Inherits:
GOBL::Object show all
Defined in:
lib/generated/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'

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)


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

property :geohash, String

#latFloat (readonly)

Decimal latitude coordinate.

Returns:

  • (Float)


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

property :lat, Float

#lonFloat (readonly)

Decimal longitude coordinate.

Returns:

  • (Float)


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

property :lon, Float

#w3wString (readonly)

What 3 Words text coordinates.

Returns:

  • (String)


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

property :w3w, String