Sarebbe bello se la pagina GeoShape includesse degli esempi o che le singole proprietà fossero scomposte invece di essere semplicemente testo.Quali sono i formati appropriati per le proprietà di http://schema.org/GeoShape?
Sono interessato in particolare alla proprietà del cerchio. Voglio definire un raggio di 20 miglia (~ 32 km) dal centro di Nottingham (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>
Il ricco strumento frammento fa scegliere i dati, ma non mi fido che ho usato il formato giusto. Soprattutto perché la longitudine analizzata è positiva.
> 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_
Per quanto riguarda gli altri, penso che sia scatola e poligoni sarebbero in formato "$ LAT1, $ long1 $ Lat2, $ long2 $ LAT3, $ long3 $ LAT1, $ long1" per una piazza.
Chiunque ha una risposta o una ragione definitiva?
La pagina schema.org dice che GeoShape è basato su [rNews] (http://dev.iptc.org/rNews), e la documentazione rNews applicabile sembra essere [questo] (http: // dev .iptc.org/rnews-10-The-Geo-coordinate-Class). Ma gli esempi ci sono ancora più confusi o completamente spezzati. – cygri
Non l'ho nemmeno visto. Quindi, rNews potrebbe aver basato i suoi geocoordinati sui documenti su http://www.georss.org/simple. Questo fa sembrare che sto usando il formato giusto. Potrebbe essere un errore nel parser snippet di Google? –
Potrebbe essere. Potrebbe valere la pena provare ciò che fa per altre geometrie (scatola, ecc.) E se l'uscita per le cerchie ha più senso alla luce di ciò. – cygri