Skip to content

Instantly share code, notes, and snippets.

@kayaelle
Created May 29, 2015 14:43
Show Gist options
  • Save kayaelle/7f780a227b1e47eb36f4 to your computer and use it in GitHub Desktop.
Save kayaelle/7f780a227b1e47eb36f4 to your computer and use it in GitHub Desktop.
GeoCoordinates Extension Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "GeoCoordinates",
"description": "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.",
"type": "object",
"properties": {
"description": { "type": "string" },
"geo": {
"type": "object",
"properties": {
"elevation": { "type": "text" },
"latitude": { "type": "number" },
"longitude": { "type": "number" }
},
"required": ["latitude", "longitude"]
},
"required": ["description", "geo"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment