Invalid Schema.org location property in Event

Viewed 2358

I'm trying to set schema to my HTML page. The validator (https://developers.google.com/structured-data/testing-tool) fails at this page:

<html lang="en">
<head>
    <meta charset="utf-8">
    <title></title>
</head>
<body>
    <div itemscope itemtype="http://schema.org/SportsEvent">
        <h1 itemprop="name">Event name</h1>
    <p itemprop="description">Some text description ...</p>
    <time itemprop="startDate" datetime="2016-03-16T16:00:00+01:00">16.3.</time> - <time itemprop="endDate" datetime="2016-03-20T16:00:00+01:00">20.3.2016</time>
    <span itemprop="location">29-31 Craven Rd,London W2 3BX</span>
   </div>
</body>
</html>

As you can see it tells me location address can not be empty.

I also tried to use utils: http://schema-creator.org/event.php But even I filled all inputs the result was same: "Error invalid location."

<div itemscope itemtype="http://schema.org/SportsEvent">
    <a itemprop="url" href="https://www.myevent.com">
        <div itemprop="name"><strong>Me super event</strong>
        </div>
    </a>
    <div itemprop="description">super event
    </div>
    <div>
        <meta itemprop="startDate" content="2016-03-06T12:00">Starts: 03/06/2016 12:00PM
    </div>
    <meta itemprop="endDate" content="2016-03-12:00.000">Ends: 2016-03-12:00.000
</div>
<div itemprop="location" itemscope itemtype="http://schema.org/PostalAddress">
    <div itemprop="streetAddress">29-31 Craven Rd,London W2 3BX
    </div>
    <div>
        <span itemprop="addressLocality">London
        </span>, 
        <span itemprop="addressRegion">United kingdom
        </span>
    </div>
</div>

Can someone explain me how to specify location?

EDIT: As @unor tald me the location must be instance of PostalAddress, so I modified it:

<html lang="en">
<head>
    <meta charset="utf-8">
    <title></title>
</head>
<body>
    <div itemscope itemtype="http://schema.org/SportsEvent">
    <h1 itemprop="name">Event name</h1>
    <p itemprop="description">Some text description ...</p>
    <time itemprop="startDate" datetime="2016-03-16T16:00:00+01:00">16.3.</time> - <time itemprop="endDate" datetime="2016-03-20T16:00:00+01:00">20.3.2016</time>
    <span itemprop="location" itemscope itemtype="http://schema.org/PostalAddress">
        <span itemprop="streetAddress">29-31 Craven Rd</span>
        <span itemprop="address">29-31 Craven Rd,London W2 3BX</span>
        <span itemprop="name">Test</span>
    </span>
   </div>
</body>
</html>

But it is still not valid, it looks then address in PostalAddress must be Place, but in Place there must be PostalAddress :-(

1 Answers
Related