forked from schemaorg/schemaorg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsdo-service-examples.txt
67 lines (59 loc) · 2 KB
/
sdo-service-examples.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
TYPES: #service-1 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="http://schema.org/TaxiService">
<div itemprop="provider" itemscope itemtype="http://schema.org/LocalBusiness">
<span itemprop="name">driver #123</span>
<div itemprop="location" itemscope itemtype="http://schema.org/Place">
<div itemprop="geo" itemscope itemtype="http://schema.org/GeoCircle">
<div itemprop="geoMidpoint" itemscope itemtype="http://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="http://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": "http://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>