A lot of businesses serve multiple municipalities.

How should this be expressed in (JSON LD)?

Eg as per :

<script type="application/ld+json"> { "@context": "", "@type": "Service", "serviceType": "Weekly home cleaning", "provider": { "@type": "LocalBusiness", "name": "ACME Home Cleaning" }, "areaServed": { "@type": "City", "name": "New York" }, ... ? </script> 

Should it be:

"areaServed": { "@type": "City", "name": "New York" }, "areaServed": { "@type": "City", "name": "Buffalo" }, "areaServed": { "@type": "City", "name": "Syracuse" }, 

Or something like:

"areaServed": { "@type": "City", "name": "New York", "name": "Buffalo", "name": "Syracuse" }, 

Or something else?

1 Answer

City is a "More specific Type" of "AdministrativeArea" according to schema.org documentation, so nothing wrong with using that.

(unfortunately haven't got enough points to write this as a comment under nikant25s comment but thought it was important to mention)


I would write something like this:


"areaServed": [{ "@type": "City", "name": “New York”, "sameAs": "" }, { "@type": "City", "name": “Buffalo”, "sameAs": (the Wiki-page for the right Buffalo) }], 

Since there are a lot of cities with the same name it’s probably good to use the sameAs property to specify which one you mean :)

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.