https://github.com/schemaorg/schemaorg
Raw File
Tip revision: ae70d0a9dbab49c005fd8dd1fd522f7236b04be0 authored by Dan Brickley on 17 October 2023, 15:51:02 UTC
Version 23.0 release files
Tip revision: ae70d0a
sdo-service-examples.txt
TYPES: #eg-0421 Service, TaxiService, GeoCircle, geoMidpoint, geoRadius, providerMobility

PRE-MARKUP:

Car for hire driver #123 is within 50 meters of a given location, but is moving.

MICRODATA:

<div itemscope itemtype="https://schema.org/TaxiService">
  <div itemprop="provider" itemscope itemtype="https://schema.org/LocalBusiness">
    <span itemprop="name">driver #123</span>
    <div itemprop="location" itemscope itemtype="https://schema.org/Place">
      <div itemprop="geo" itemscope itemtype="https://schema.org/GeoCircle">
        <div itemprop="geoMidpoint" itemscope itemtype="https://schema.org/GeoCoordinates">
          <meta itemprop="latitude" content="42.362757" />
          <meta itemprop="longitude" content="-71.087109" />
        </div>
        <meta itemprop="geoRadius" content="50" />
      </div>
    </div>
  </div>
  <meta itemprop="providerMobility" content="dynamic" />
</div>

RDFA:

<div vocab="https://schema.org/" typeof="TaxiService">
  <div property="provider" typeof="LocalBusiness">
    <span property="name">driver #123</span>
    <div property="location" typeof="Place">
      <div property="geo" typeof="GeoCircle">
        <div property="geoMidpoint" typeof="GeoCoordinates">
          <meta property="latitude" content="42.362757" />
          <meta property="longitude" content="-71.087109" />
        </div>
        <meta property="geoRadius" content="50" />
      </div>
    </div>
  </div>
  <meta property="providerMobility" content="dynamic" />
</div>

JSON:

<script type="application/ld+json">
  {
    "@context": "https://schema.org/",
    "@type": "TaxiService",
    "provider": {
      "@type": "LocalBusiness",
      "name": "driver #123",
      "location": {
        "@type": "Place",
        "geo": {
          "@type": "GeoCircle",
          "geoMidpoint": {
            "@type": "GeoCoordinates",
            "latitude": "42.362757",
            "longitude": "-71.087109"
          },
          "geoRadius": "50"
        }
      }
    },
    "providerMobility": "dynamic"
  }
</script>

back to top