How to use near query
anshumansworld opened this issue · 2 comments
anshumansworld commented
Is it possible to use near
filter on location data?
e.g. filter: {location: {near: {latitude: "", longitude: "", radius: ""}}}
marcelofinamorvieira commented
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
anshumansworld commented
The question was related to gatsby plugin. How can I do the same in gatsby plugin?
@marcelofinamorvieira