Search code examples
geocodingsemantic-webschema.org

What are the appropriate formats for the properties of http://schema.org/GeoShape?


It would be nice if the GeoShape page included examples or the individual properties were broken out instead of just being Text.

I'm specifically interested in the circle property. I want to define a circle of 20 mile (~ 32km) radius from Nottingham City Centre (52.953, -1.149).

<!DOCTYPE html>
<html>
<head>
<title>Nottingham City Neighbourhood</title>
</head>
<body>
<div itemscope itemtype="http://schema.org/Place">
  <div itemprop="geo" itemscope itemtype="http://schema.org/GeoShape">
    <meta itemprop="circle" content="52.953 -1.149 32186.88"/>
  </div>
</div>
</body>
</html>

The rich snippet tool does pick out the data, but I don't trust that I've used the right format. Especially since the parsed longitude is positive.

> The following structured data is viewable only in the XML results view
> in Custom Search. More information.
> 
> geoshape (source = MICRODATA)  circle = 52.953 -1.149 32186.88 
> 
> 
> The following structured data can be used to filter search results in
> Custom Search. More information.
> 
> more:pagemap:geoshape more:pagemap:geoshape-circle
> more:pagemap:geoshape-circle:1.149
> more:pagemap:geoshape-circle:32186.88
> more:pagemap:geoshape-circle:52.953
> more:pagemap:geoshape-circle:52.953_

As for the others, I think both box and polygon would be in the format "$lat1,$long1 $lat2,$long2 $lat3,$long3 $lat1,$long1" for a square.

Anybody have a definitive answer or reason?


Solution

  • I've done some archaeology, following a similar trail to others.

    Details: http://lists.w3.org/Archives/Public/public-vocabs/2012Jun/0116.html

    The compounding confusion seems to be (as Yves Martin points out) missing whitespace in the original rNews examples.

    We'll get this situation improved and I'll report back here.