Ok, total noob here. Figured out a bunch but need help.
Data comes into a table starting a new record including the name of the person, the name of the location they are at. Also is the lat/long of the place they are physically at and the lat/long of the place they’re supposed to be. Each lat/long is separated in their own fields (lat1,lon1,lat2,lon2). There is a final field (Distance) to which I want to calculate the straight line distance between those two points.
I have found some javascript in other forum answers but I cannot figure out how to use the four data fields (lat1,lon1,lat2,lon2) with a script to calculate the distance and return that value to the “Distance” field.
I currently have an automation that when a new record is created, it performs the script…but then where do I go from there?
Please assist. Thanks.
Airtable Automation Script to Find Distance Given Lat Long Update Field
Login to the community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
