Geospatial Queries / Field #704
-
Does PayloadCMS supports geospatial queries? (https://www.mongodb.com/docs/manual/geospatial-queries/). I'd like to create a custom field that gets lat/lng from an autocompleted address. Goal: I want to find database entries according to a radius around a point or within a geofence and show them on my website. (For example, show related entries that are nearby) |
Beta Was this translation helpful? Give feedback.
Answered by
DanRibbens
Jul 2, 2022
Replies: 1 comment 3 replies
-
Great question! Look at the docs for the point field. https://payloadcms.com/docs/fields/point Based on what you said it should get you everything you need. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
wiesson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Great question! Look at the docs for the point field.
https://payloadcms.com/docs/fields/point
Based on what you said it should get you everything you need.