Accessing data from a map selection

I have two tables one for deposit locations and another one for visits, user has a map view of the near deposit locations and a button to start the trip. The button has an action that starts the visit and adds trip start time, location to the visits table. I want to take the id of the selected deposit location pin on the map by accessing the deposit locations table and adding this to the visits table in deposit_location_id column.

0 1 45
1 REPLY 1

Some screenshots would probably help to understand what you're referring to.

Top Labels in this Space