datocms/gatsby-source-datocms

How to use near query

anshumansworld opened this issue · 2 comments

Is it possible to use near filter on location data?

e.g. filter: {location: {near: {latitude: "", longitude: "", radius: ""}}}

Hello @anshumansworld you can do them as such: https://www.datocms.com/docs/content-delivery-api/filtering-records#lat_lon

The radius is specified in meters, forming a circle with the central point being the latitude and longitude you specified

The question was related to gatsby plugin. How can I do the same in gatsby plugin?
@marcelofinamorvieira