Michael Grippi
Michael Grippi

Reputation: 213

How do I do JSON-LD Schema for GeoShape Circle?

Does anyone know how to do the schema for GeoShape Circle? I am trying to set up a coverage area for my service based business (no physical location).

I would like to do 30 miles in every direction of Sacramento, CA

This is the code I am starting with

        "areaServed": [
{
    "@type": "AdministrativeArea",
    "geo": {
        "@type": "GeoCoordinates",
        "latitute": "",
        "longitude": ""
        }
},

Upvotes: 2

Views: 1863

Answers (1)

unor
unor

Reputation: 96697

The areaServed property can have a GeoShape value directly, no need for AdministrativeArea + geo (which doesn’t seem to be appropriate for your case, anyway).

And because GeoCircle is a subtype of GeoShape, you can use this as value, too.

Then you can provide the geoMidpoint and the geoRadius (in meters if without unit).

So it could look like:

"areaServed": {
  "@type": "GeoCircle",
  "geoMidpoint": {
    "@type": "GeoCoordinates",
    "latitude": "",
    "longitude": ""
  },
  "geoRadius": "48280.3"
}

Upvotes: 3

Related Questions