Schema.org · Schema

Schema.org GeoCoordinates

The geographic coordinates of a place or event.

Schema.orgStructured DataLinked DataJSON-LDVocabularySEOWeb StandardsRDFOntology

Properties

Name Type Description
@type string The Schema.org type.
@context string
latitude number The latitude of a location.
longitude number The longitude of a location.
elevation object The elevation of a location in meters.
address object Physical address of the location.
addressCountry string The country. Use the two-letter ISO 3166-1 alpha-2 country code.
postalCode string The postal code.
View JSON Schema on GitHub

JSON Schema

schema-org-geo-coordinates-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://schema.org/schemas/geo-coordinates.json",
  "title": "Schema.org GeoCoordinates",
  "description": "The geographic coordinates of a place or event.",
  "type": "object",
  "required": ["@type", "latitude", "longitude"],
  "properties": {
    "@type": {
      "type": "string",
      "const": "GeoCoordinates",
      "description": "The Schema.org type."
    },
    "@context": {
      "type": "string",
      "default": "https://schema.org"
    },
    "latitude": {
      "type": "number",
      "description": "The latitude of a location.",
      "minimum": -90,
      "maximum": 90
    },
    "longitude": {
      "type": "number",
      "description": "The longitude of a location.",
      "minimum": -180,
      "maximum": 180
    },
    "elevation": {
      "oneOf": [
        { "type": "number" },
        { "type": "string" }
      ],
      "description": "The elevation of a location in meters."
    },
    "address": {
      "oneOf": [
        { "type": "string" },
        { "$ref": "schema-org-postal-address-schema.json" }
      ],
      "description": "Physical address of the location."
    },
    "addressCountry": {
      "type": "string",
      "description": "The country. Use the two-letter ISO 3166-1 alpha-2 country code."
    },
    "postalCode": {
      "type": "string",
      "description": "The postal code."
    }
  }
}