# How to set up distance formula + retrigger logic in my current block?

**URL:** <https://community.thunkable.com/t/how-to-set-up-distance-formula-retrigger-logic-in-my-current-block/4107647>\
**Category:** Issues / Bugs\
**Tags:** design, help\
**Created:** [September 18, 2025, 9:15pm UTC](https://community.thunkable.com/t/how-to-set-up-distance-formula-retrigger-logic-in-my-current-block/4107647 "2025-09-18T21:15:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mireiagarcia40zdodsr](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mireiagarcia40zdodsr/32/206610_2.png) [@mireiagarcia40zdodsr](https://community.thunkable.com/u/mireiagarcia40zdodsr)\
**Post date:** [September 18, 2025, 9:15pm UTC](https://community.thunkable.com/t/how-to-set-up-distance-formula-retrigger-logic-in-my-current-block/4107647/1 "2025-09-18T21:15:53Z")

</div>

Hi everyone,

I’m developing an app with geolocated stories in **Barcelona** (where the app takes place). Right now, I have it configured with the geolocation of the city, but we are experiencing problems: the **audio that should play at a specific location doesn’t always trigger correctly**.

What I want to achieve:

1. Check the **distance** between the user’s location and each geofence (so the story only plays if the user is inside the radius).

2. Prevent **retriggering** until the user exits the radius (so the same story doesn’t repeat constantly if the user stays in the same spot).

My questions are:

- In which **part of my current “When Location Change” block** should I place the **distance formula**?

- How do I configure the **variable/list for retriggering** so that a story only plays once until the user exits the radius?

I’ve attached a screenshot of my current block setup (see below).

Thanks a lot for your help — I’m new to this and not sure where to insert each part.

Best,  
Mireia

 ![image3](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/0/d0049c86a3fd3e76b3999a81062166eac2632168.jpeg)

 ![image2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/3/d36a9bea2559cfc0afb538ff62095366e4f0fbf2.jpeg)

 ![image1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/8/f82971194ca076a41f319e251f0c72e2f8c9302e.jpeg)
