TL;DR - trying to determine best way to notify users as new locations come online within their specified location radius.
More context: I created Charity Makeover and am in process of building an Airtable app to enable people in other cities to run these events. It’s similar in concept to Startup Weekend only focused on building stuff for local charities. I’m essentially looking to replicate some of the functionality of Meetup in that I want to give prospective volunteers the ability to get notified when a new Charity Makeover event happens within their locale.
My question is: is there a simple way to accomplish this type of pub/sub setup with geolocation or does it need to be created from scratch? I’ve been researching terms like geofencing and proximity-based notifications to try and find some SaaS based way of accomplishing this rather than developing it. I have to imagine this is a common need with geo-based searches… Haven’t found a “packaged” way to do it yet so am now going down rabbit hole looking into GIS spatial index capability like exists in MySQL. Does the equivalent exist in Airtable? Most ideal would be a no-code way of handling this but second best would be a field type that expresses locational data and can be queried efficiently… thanks
Just found something that looks promising:
(Discourse won’t let me post links nor images 😕 )
So with that Google Maps service I should be able to make an API call to determine the distance between two Lat/Lon coordinates. So seemingly what I could do here is each time we publish a new event, iterate over the user table and compare the coords of each user with the coords of the new event to see if that distance falls within their desired notification threshold. Seems straightforward. AFAIK only downside to this is that it’s not super scaleable and efficient (ie. will walk the entire user table on each new published event so will consume API requests and time). But doesn’t need to be real-time and looks like daily free quota of 100,000 requests per 24 hours for Gmaps API so shouldn’t hit that anytime soon…
If anyone has other ideas for a more efficient way to accomplish this I’m all ears. Not a dev by trade but fumbling my way through building this app thanks to glorious no-code tools like Airtable & Zapier. cheers
Airtable is not likely to get you there. I’m very familiar with the use of geometries to determine query results based on locations and relative distances - even moving objects in real-=time. One thing that’s evident - GIS features were requested a long [long] time ago and no movement since.
I would take a close look at Carto (specifically their PostGIS database and the ability to create codeless widgets and complete location-science applications) and also ElasticSearch - both support extensive spatial features that make these types of computations effortlessly.
I’m a Carto Technology Partner, so feel free to tag me in Linked In if you’re interested.
Hi @Nicolas_Maltais-Tari and welcome to the Airtable community!
Yes. Both products have an API and both products can visualize location data.
This part of your question intimates a user experience that you’ll need to explain in greater depth. Note that Carto apps can be framed inside the HTTP Embed Block, however, Carto offers no such framing ability nor does Airtable support the independent framing of Blocks, the essential GiS mapping functionality.
Somewhat related question on the topic of locations. I played with the maps integration and it’s pretty handy for a single location. I want to have a field that supports multiple locations. It’s for job listings where for example they could be hiring remotely in “North America OR South America” or they could be hiring in just the United States, or in a specific city.
I don’t really need a radius search at all though, generally just a search by country/state/metro areas is best.
Any thoughts on the best way to approach that?
I stumbled upon this post and found it really interesting, as I have some knowledge and experience in the field of GIS in Business Analytics: Explore. The concept of utilizing a spatial index or a similar method to query locations within a radius of latitude and longitude in Airtable is quite intriguing.
As the author mentioned, implementing a pub/sub setup with geolocation for notifying users about new events or locations within their specified radius can be a valuable feature. I believe it's essential to explore existing solutions before diving into custom development. Geofencing and proximity-based notifications are indeed common approaches in this context.
While I'm not aware of a pre-packaged solution specifically for Airtable, I suggest looking into third-party integrations or plugins that might offer the desired functionality. Additionally, considering the availability of GIS spatial index capabilities like those in MySQL, it would be worthwhile to investigate if Airtable provides similar features.
Ideally, a no-code solution would be convenient, but a field type that efficiently stores and queries location data could also be a suitable alternative. I encourage the author to continue their research, exploring different options and seeking advice from the Airtable community or relevant forums.
Best of luck with your project