Could someone help me understand tradeoffs of not ...
# orm-help
d
Could someone help me understand tradeoffs of not using GIS for location data? I really want to use Prisma, but this is an important requirement in a platform I am working on Was wondering if storing latitude and longitude would be enough
j
It really depends on your use cases. For example, if you need to do spatial queries, PostGIS PostgreSQL extension is really great: https://postgis.net/ . Could you do this and use prisma? Seems like there are some issues currently: https://github.com/prisma/prisma/issues/2789
🙂 1
👍 1
d
I will probably need to calculate the distance between a user’s coordinates and coordinates stored in the DB. This will be in the future though, but wanted to set myself for success starting now.
I thought that storing latitude and longitude with the right precision might be enough to get away with it.
But it seems like using PostGIS is more proper. Will unfortunately skip on Prisma for now.
Thanks for the answer!