An extension allowing for the addition of the geographic coordinates associated with a badge object. For example, geolocation could represent where a Badge Class is available, where a badge was earned or the location of an issuer. The required description property allows implementers to be more specific about the reason location is included.
{::options parse_block_html="true" /}
Property | Type | Value Description |
---|---|---|
@context | context IRI | https://openbadgespec.org/extensions/geoCoordinatesExtension/context.json |
type | type IRI array | ['Extension', 'extensions:GeoCoordinates'] |
description | string | A description of the location |
geo | object | The GeoCoordinates of a location (containing the following properties) |
elevation | text | The elevation of a location |
latitude | number | The latitude of a location |
longitude | number | The longitude of a location |
Extendable Badge Objects: Assertion, BadgeClass, Issuer
Example implementation: {% highlight json %} { "schema:location": { "@context":"https://openbadgespec.org/extensions/geoCoordinatesExtension/context.json", "type": ["Extension", "extensions:GeoCoordinates", "schema:Place"], "description": "Stadium of Light, Sunderland", "geo": { "elevation": 3500ft, "latitude": 54.914440, "longitude": -1.387721 } } } {% endhighlight %}