: Adding Information to multiple addresses in schema markup How do I add information to a multiple address schema markup with JSON-LD? Here is my code: <script type='application/ld+json'> {
How do I add information to a multiple address schema markup with JSON-LD?
Here is my code:
<script type='application/ld+json'>
{
"@context": "http://schema.org",
"@type": "Apartments",
"name": "***",
"url": "***",
"address":
[
{
"@type": "PostalAddress",
"streetAddress": "***",
"addressLocality": "***",
"addressRegion": "***",
"postalCode": "***",
"addressCountry": "Canada"
},
{
"@type": "PostalAddress",
"streetAddress": "***",
"addressLocality": "***",
"addressRegion": "***",
"postalCode": "***",
"addressCountry": "Canada"
}
]
}
</script>
I would like to add information like geo-coordinates and business hours, but when I try and add it for the individual locations it gives me an error "Expecting 'EOF'" I was trying to add it under the addressCountry part of the code, I'm assuming I am placing it incorrectly.
{
"@type": "PostalAddress",
"streetAddress": "***",
"addressLocality": "***",
"addressRegion": "***",
"postalCode": "***",
"addressCountry": "Canada"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": "***",
"longitude": "***"
},
"openingHours": "Mo, Tu, We, Th, Fr 08:00-20:00 Sa, Su 10:00-16:00",
"contactPoint": {
"@type": "ContactPoint",
"contactType": "Sales",
"telephone": "***"
}
]
}
</script>
More posts by @Cooney921
1 Comments
Sorted by latest first Latest Oldest Best
First of all, about the Schema.org terms you use:
Your example uses the Apartments type, but that is not a valid type. You probably mean Apartment. But this type can’t have the openingHours property nor the contactPoint property. And neither can the PostalAddress have these properties, nor geo.
As it typically doesn’t make sense for an Apartment to have more than one address, I’m not sure if you are really using the correct types here.
Anyway, for providing opening hours, you can use openingHoursSpecification property (for Apartment) and the hoursAvailable property (for PostalAddress).
Now about your JSON-LD:
You cannot nest properties like that.
If you want to add properties to the PostalAddress nodes, you have to add them inside the { } of each PostalAddress. That means that you have to repeat them in case they are the same for both nodes.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.