How to use structured data (JSON-LD) for a local business that is made up of several sub businesses -
i built website local business has golf course, indoor sports complex (tennis, racquetball, wally ball, batting cages, nautilus), restaurant, catering, , offers weddings , receptions. not sure how started. appreciated.
good afternoon,
the following example might helpful. please note, @id i've made assumption you've created dedicated page each entity , indicated link in example doesn't have working link therefore if haven't created dedicated page can create unique id each entity (this id should not change on time). please see definitions of department , suborganization @ schema.
<script type="application/ld+json"> { "@context" : "http://schema.org", "@type" : "localbusiness", "name" : "business name", "@id" : "http://www.your-company-site.com", "logo" : "http://www.your-company-site.com/logo.jpg", "sameas" : [ "", "" ], "url" : "http://www.your-company-site.com", "email" : "example@your-company-site.com", "faxnumber" : "+1-401-555-1213", "contactpoint" : { "@type" : "contactpoint", "telephone" : "+1-401-555-1212", "contacttype" : "customer service" }, "openinghoursspecification": [ { "@type": "openinghoursspecification", "dayofweek": [ "monday", "tuesday", "wednesday", "thursday", "friday" ], "opens": "09:00", "closes": "21:00" }, { "@type": "openinghoursspecification", "dayofweek": [ "saturday", "sunday" ], "opens": "10:00", "closes": "23:00" } ], "department" : [ { "@type" : "golfcourse", "name" : "golf course name", "@id" : "http://www.your-company-site.com/golf-course-dedicated-page-url", "logo" : "http://www.your-company-site.com/logo.jpg", "sameas" : [ "", "" ], "url" : "http://www.your-company-site.com/golf-course-dedicated-page-url", "email" : "golfcourse@your-company-site.com", "faxnumber" : "+1-401-555-1215", "contactpoint" : { "@type" : "contactpoint", "telephone" : "+1-401-555-1214", "contacttype" : "customer service" }, "openinghoursspecification": [ { "@type": "openinghoursspecification", "dayofweek": [ "monday", "tuesday", "wednesday", "thursday", "friday" ], "opens": "09:00", "closes": "19:00" }, { "@type": "openinghoursspecification", "dayofweek": [ "saturday", "sunday" ], "opens": "09:00", "closes": "17:00" } ] }, { "@type" : "tenniscomplex", "name" : "tennis complex name", "@id" : "http://www.your-company-site.com/tennis-complex-dedicated-page-url", "logo" : "http://www.your-company-site.com/logo.jpg", "sameas" : [ "", "" ], "url" : "http://www.your-company-site.com/tennis-complex-dedicated-page-url", "email" : "tenniscomplex@your-company-site.com", "faxnumber" : "+1-401-555-1216", "contactpoint" : { "@type" : "contactpoint", "telephone" : "+1-401-555-1215", "contacttype" : "customer service" }, "openinghoursspecification": [ { "@type": "openinghoursspecification", "dayofweek": [ "monday", "tuesday", "wednesday", "thursday", "friday" ], "opens": "09:00", "closes": "19:00" }, { "@type": "openinghoursspecification", "dayofweek": [ "saturday", "sunday" ], "opens": "09:00", "closes": "17:00" } ] } ], "suborganization" : { "@type" : "restaurant", "name" : "restaurant name", "@id" : "http://www.your-company-site.com/restaurant-dedicated-page-url", "logo" : "http://www.your-company-site.com/logo.jpg", "sameas" : [ "", "" ], "url" : "http://www.your-company-site.com/restaurant-dedicated-page-url", "email" : "restaurant@your-company-site.com", "faxnumber" : "+1-401-555-1217", "contactpoint" : { "@type" : "contactpoint", "telephone" : "+1-401-555-1216", "contacttype" : "customer service" }, "openinghoursspecification": [ { "@type": "openinghoursspecification", "dayofweek": [ "monday", "tuesday" ], "opens": "11:30", "closes": "22:00" }, { "@type": "openinghoursspecification", "dayofweek": [ "wednesday", "thursday", "friday" ], "opens": "11:30", "closes": "23:00" }, { "@type": "openinghoursspecification", "dayofweek": [ "saturday", "sunday" ], "opens": "16:00", "closes": "23:00" } ] } } </script>
Comments
Post a Comment