DO.COM.04 GeoLocation
The spdci:GeoLocation object represents a GooglePlus Code
Conversion of latitude and longitude to a plus code (including the bounding box and the centre); and Conversion of a plus code to the bounding box and centre.
Reference: OpenID Location Code
The following two requests show how to convert a latitude and longitude to a code, or how to get the geometry of a global code:
The GeoLocation object represents a structured entity encompassing the details and various components of a specific location.
Geo Location
Property Key | Data Type (and Restrictions) | Cardinality | Description |
---|---|---|---|
plus_code | 0...1 | contains the plus code information for the location. |
Plus Code
The PlusCode object represents a structured entity encompassing the details and various components of a specific location.
Property Key | Data Type (and Restrictions) | Cardinality | Description |
---|---|---|---|
global_code | 0...1 | provides the global code for the latitude/longitude | |
geometry | 0...1 | Contains the Geometry Object. |
Geometry
The Geometry object represents a structured entity encompassing the details and various components of a specific location
Property Key | Data Type (and Restrictions) | Cardinality | Description |
---|---|---|---|
bounds | 0...1 | provides the bounding box of the code, with the north east and south west coordinates. | |
location | 0...1 | provides the centre of the bounding box. |
Bounds
The Bounds object represents a structured entity encompassing the details and various components of a specific location
Property Key | Data Type (and Restrictions) | Cardinality | Description |
---|---|---|---|
northeast | 0...1 | provides the centre of the bounding box. | |
southwest | 0...1 | provides the centre of the bounding box. |
Example of Use
Example
JSON-LD File on GitHub
Last updated