schemaorg-coda :: Example

eg-0005

From v29.4

JSON-LD

{
  "@context": "https://schema.org",
  "@type": "Place",
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": "40.75",
    "longitude": "-73.98"
  },
  "name": "Empire State Building"
}

RDFa

<div vocab="https://schema.org/" typeof="Place">
  <h1>What is the latitude and longitude of the <span property="name">Empire State Building</span>?</h1>
  Answer:
  <div property="geo" typeof="GeoCoordinates">
    Latitude: 40 deg 44 min 54.36 sec N
    Longitude: 73 deg 59 min 8.5 dec W
    <meta property="latitude" content="40.75" />
    <meta property="longitude" content="-73.98" />
  </div>
</div>

Microdata

<div itemscope itemtype="https://schema.org/Place">
  <h1>What is the latitude and longitude of the <span itemprop="name">Empire State Building</span>?</h1>
  Answer:
  <div itemprop="geo" itemscope itemtype="https://schema.org/GeoCoordinates">
    Latitude: 40 deg 44 min 54.36 sec N
    Longitude: 73 deg 59 min 8.5 dec W
    <meta itemprop="latitude" content="40.75" />
    <meta itemprop="longitude" content="-73.98" />
  </div>
</div>

Pre-Markup

<h1>What is the latitude and longitude of the Empire State Building?</h1>
Answer:
Latitude: 40 deg 44 min 54.36 sec N
Longitude: 73 deg 59 min 8.5 sec W