Challenges with Location Data(Coordinates) Storage and Retrieval #4688
Unanswered
PuneetSharma52
asked this question in
Help
Replies: 1 comment 5 replies
-
Hi bro, I'm participating in a project based on coordinates and other proximity calculations between points and polygons and my solution was:
The performance became excellent when the database reached 11.2 GB and the client stopped complaining :-D |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
During development, we encountered difficulties in storing and retrieving location coordinates as attributes. A thorough investigation revealed an absence of suitable attributes within the Lucid Model. To address this, the geojson library was integrated from npm, enabling the creation of a Point attribute. This approach facilitated the execution of raw PostGIS queries on the stored data.
The primary objective is to efficiently retrieve a list of users within a specified radius (10 km) of a given user's coordinates. This information will be retrieved or fetched through API endpoints to display nearby users.
Numerous attempts were made to achieve this functionality using various attribute types, including string and geometry, but without success. Guidance is required on effectively modeling location data within the application, including considerations for database migrations and controller implementation.
Migration
Model
Controller
And also in addition when we are manually seeding the data in the pgsql we are unable to seed it in the location column as showing below for reference.
Beta Was this translation helpful? Give feedback.
All reactions