Created
May 29, 2015 14:43
-
-
Save kayaelle/7f780a227b1e47eb36f4 to your computer and use it in GitHub Desktop.
GeoCoordinates Extension Schema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$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