geoMidpoint
A Schema.org Property
- Canonical URL: https://schema.org/geoMidpoint
- Check for open issues.
Indicates the GeoCoordinates at the centre of a GeoShape, e.g. GeoCircle.
Examples
Example 1
Copied
Example notes or example HTML without markup.
- Car for hire driver #123 is within 50 meters of a given location, but is moving.
Example encoded as Microdata embedded in HTML.
- <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>
Example encoded as RDFa embedded in HTML.
- <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>
Example encoded as JSON-LD in a HTML script tag.
- <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>
Structured representation of the JSON-LD example.