Geospatial
i need to work with geospatial data
so make queries based on longitude and latitude
9 Replies
What kinds of things do you need to do with geospatial data?
yo
i need latitude, longittude and also work with radius
i saw the thread of doing something similar like they do using firestore
https://discord.com/channels/1019350475847499849/1213174966678323270/1213195277113106442
since im already familiar with firebase firestore
maybe i should just use it for this side project
mhm
i could also do mongoose/mongodb
but then i need to store files somewhere
and do auth diff
so prolly clerk for auth and cloudflare r2 for the file uploads
š¤
Can you be more specific, what kinds of queries do you want to write? e.g. "I want to find all points within a given latitude and longitude," which you can do today. Or something more complicated like "I need to find all shapes which overlap another shape." There are posts about how to accomplish some of these currently: https://discord.com/channels/1019350475847499849/1251562495441637438/1251577741396938802
A few things, in case the thread didn't cover it:
- A repo doing this with H3 directly: https://github.com/sujayakar/geospatial-convex/
- We have started work on a geospatial component that will provide an API to insert locations & a user-defined key, then query for within a polygon. Under the hood it also uses H3, which I increasingly see as the right API for most of these sorts of queries.
GitHub
GitHub - sujayakar/geospatial-convex
Contribute to sujayakar/geospatial-convex development by creating an account on GitHub.
i want to find all products
given long and lat and radius
i want to find all products within the range of the radius
each product has long and lat
lng and lat
the fields are gonna be called for each product
very interesting
this might work out š¤
if i dont need mongodb/mongoose
im buying u a drink and a cigar
if we meet in this life
:kumikosmug: :spookyOUGI:
BUT
if u dont see me here again
Now I really have an incentive
then u know where i am
hahahaa
oh my god
its way more complex than expected
:flush:
Geospatial (Beta)
Efficiently query points on a map within a selected region of the globe.
ā¤ļø