Skip to content

Instantly share code, notes, and snippets.

@kayaelle
Created May 29, 2015 13:29
Show Gist options
  • Save kayaelle/d223bc9ceeffddbdc0a8 to your computer and use it in GitHub Desktop.
Save kayaelle/d223bc9ceeffddbdc0a8 to your computer and use it in GitHub Desktop.
GeoCoordinates Extension index.md

GeoCoordinates

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 %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment