DO.COM.05 GooglePlusCode
The spdci:GooglePlusCode object represents a GooglePlus Code.
As GooglePlusCodes are frequently used to describe locations, this data object provides the representation of a location in the format of a Google Plus Code, which can be embedded into the existing DO.COM.04 GeoLocation object.
For a more detailed reference, please look at the official Google Documentation for Plus Codes here.
Reference: Google Plus Codes, Google Documentation for Plus Codes
Hint
GooglePlusCode
The GooglePlusCode object represents a structured entity encompassing the details and various components of a specific location.
Plus_code
The plus_code object represents a structured entity encompassing the details and various components of a specific location.
Geometry
The geometry object represents a structured entity encompassing the details and various components of a specific location.
Location
Bounds
The bounds object represents a structured entity encompassing the details and various components of a specific location.
Example of Use
Example
{
"@context": {
"spdci": "https://schema.spdci.org/common/v1/",
"google-plus" : "https://github.com/google/open-location-code/wiki/Plus-codes-API",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"schema": "http://schema.org/",
"xsd": "http://www.w3.org/2001/XMLSchema#"
},
"@id": "spdci:GooglePlusCode1",
"@type": "spdci:GooglePlusCode",
"plus_code": {
"@id": "plus_code1",
"@type": "google-plus:plus_code",
"global_code": "8FW4V900+",
"geometry": {
"@id": "geometry1",
"@type": "google-plus:geometry",
"bounds": {
"@id": "bounds1",
"@type": "google-plus:bounds",
"northeast": {
"@id": "northeast1",
"@type": "google-plus:location",
"lat": 48.900000000000006,
"lng": 2.4000000000000057
},
"southwest": {
"@id": "southwest1",
"@type": "google-plus:location",
"lat": 48.849999999999994,
"lng": 2.3499999999999943
}
},
"location": {
"@id": "location1",
"@type": "google-plus:location",
"lat": 14.917312500000008,
"lng": -23.511312500000017
}
}
}
}
Last updated
Was this helpful?