Need help modifying geoRadius from meters to miles

122 views
Skip to first unread message

Barry Rolapp

unread,
Aug 22, 2019, 6:28:17 PM8/22/19
to Semantic Search Marketing
Hello all,

looking for a wee bit of guidance on how to modify geoRadius to miles. Documentation implies I can do this by using the distance type - the only thing is I'm not sure how to format distance properly and there are no examples on the schema.org/Distance page.

I have this so far:

"@type": "GeoCircle",
       "geoMidpoint": {
           "@type":"http://schema.org/GeoCoordinates",
           "longitude": "-93.5711201",
           "latitude": "41.7034268"
       },
       "geoRadius":  {
           "@type": "Distance"
       }

Embarrassed to admit that I am unsure of how to proceed from here and having a hard time finding examples in the wild. Any ideas? Would like ot establish a geoRadius of 10 miles.

CoderNeeded

unread,
Aug 22, 2019, 7:01:42 PM8/22/19
to Semantic Search Marketing
<script type="application/ld+json">
  {
    "@context": "http://schema.org/",
"@type": "GeoCircle",
       "geoMidpoint": {
           "@type":"http://schema.org/GeoCoordinates",
           "longitude": "-93.5711201",
           "latitude": "41.7034268"
       },
       "geoRadius":"10 Miles"
       }
  }
</script>

Barry Rolapp

unread,
Aug 22, 2019, 7:08:22 PM8/22/19
to Semantic Search Marketing
Well look at me, going and overthinking the issue!

Thank you for the hand!

CoderNeeded

unread,
Aug 22, 2019, 7:42:56 PM8/22/19
to Semantic Search Marketing
Thoughts on this one?


<script type="application/ld+json">
  {
    "@context": "http://schema.org/",
"@type": "GeoCircle",
       "geoMidpoint": {
           "@type":"http://schema.org/GeoCoordinates",
           "longitude": "-93.5711201",
           "latitude": "41.7034268"
       },
       "geoRadius": {
        "@type":"http://schema.org/Distance",
        "potentialAction":{
        "@type":"http://schema.org/TravelAction",
        "distance": "10 miles"
                    }
        }
       }
       }
  }
</script>

Richard Wallis

unread,
Aug 22, 2019, 8:52:01 PM8/22/19
to CoderNeeded, Semantic Search Marketing
I would have probably used a potentialAction  property of the GeoCircle instead of the GeoRadius. 

You are indicating what you can do within the circle that has a particular attribute (radius). 

More realistically, you might consider it to be a potentialAction of the place that has the boundary defined by the geoCircle

~Richard. 

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "Semantic Search Marketing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semantic-search-ma...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/semantic-search-marketing/88904dd5-26ff-4c2b-888c-efe6a413482b%40googlegroups.com.

Barry Rolapp

unread,
Aug 28, 2019, 1:21:30 PM8/28/19
to Semantic Search Marketing
This is interesting, but would it be applicable to a delivery range?Pizza delivery radius is what I am trying to define.

Dan Brickley

unread,
Aug 28, 2019, 1:24:28 PM8/28/19
to Barry Rolapp, Semantic Search Marketing
In general when it comes to complicated schema.org expressivity questions, it often makes sense to be guided by explicit documentation from consuming apps. In the absence of anyone saying they explicitly consume a complex pattern you may find it easier to look for quick simple wins instead.

Dan


--
You received this message because you are subscribed to the Google Groups "Semantic Search Marketing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semantic-search-ma...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages