Can you use plain text for addresses in schema.org markup?

I have a CMS that has one text box for Organization . The data is stored very inconsistently, and in many cases I deal only with the city / state. I am new to schema.org and would like to know if I can just do something like the following to handle markup:

<p itemprop="address">Some city, WY</p>

As I said, I'm new to all of this, but I assume I'm using the "Microdata" format.

+1
source share
2 answers

, address. - ( PostalAddress) , Schema.org ( ):

, , , , , . , schema.org . , , Person, Place, Organization - subClassOf Thing, . " , ", .

, " " Organization, .

PostalAddress , , , :

<p itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
  <span itemprop="addressLocality">Some city</span>, 
  <span itemprop="addressRegion">WY</span>
</p>

(: , Microdata Schema.org.)

+4

, , "" - PostalAddress. - :

<span itemprop="location" itemscope itemtype="http://schema.org/City">
<span itemprop="name">City Name</span>, State
</span>

PostalAddress, .

0

Source: https://habr.com/ru/post/1536188/


All Articles