Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema Address #1981

Closed
bakerlisa opened this issue Jun 29, 2018 · 3 comments
Closed

Schema Address #1981

bakerlisa opened this issue Jun 29, 2018 · 3 comments

Comments

@bakerlisa
Copy link

bakerlisa commented Jun 29, 2018

I was just wondering what best practice is. Should the telephone number and URL go inside the address tag, or out? Below is the code,

{
"@context":"https://schema.org",
"@type":"LocalBusiness",
"@id":"#company",
"name":"Nifty Marketing",
"image":"https://http-assets.s3.amazonaws.com/template/logo-34710?102311261",
"address":{
"@type":"PostalAddress",
"streetAddress":"1340 Overland Avenue",
"addressLocality":"Burley",
"addressRegion":"ID",
"postalCode":"83318",
"telephone":"(800) 381-4959",
"url":"niftymarketing.com"
},
"aggregateRating":{
"@type":"AggregateRating",
"reviewCount":6,
"ratingValue":4.8
}
}

screen shot 2018-07-09 at 1 59 32 pm

Schema.org mark up has it outside the address: https://schema.org/address

But if you look under the documentation of Schema.org PostalAddress - https://schema.org/PostalAddress -the documentation it shows you can have telephone and URL inside the address tag.

What is best practice??

@thadguidry
Copy link
Contributor

thadguidry commented Jun 29, 2018

Scroll down and look at Example 10 and click on the JSON-LD tab https://schema.org/PostalAddress

Its shows that telephone and URL are not part of an address.

can you take a screenshot and attach to your comment, the area of the doc that was confusing to you ?

@bakerlisa
Copy link
Author

Thank you for your comment was very helpful! And I updated my original post to include a screenshot of the code.

@Download
Copy link

Download commented Sep 3, 2018

I believe url is actually a property of Thing, so every type has a url field.

Schema.org is IOT-ready!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants