# Does anyone have a current Haversine block that they can share?

**URL:** <https://community.thunkable.com/t/does-anyone-have-a-current-haversine-block-that-they-can-share/2961995>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [April 22, 2024, 11:23am UTC](https://community.thunkable.com/t/does-anyone-have-a-current-haversine-block-that-they-can-share/2961995 "2024-04-22T11:23:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![damienc](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/damienc/32/174882_2.png) [@damienc](https://community.thunkable.com/u/damienc)\
**Post date:** [April 22, 2024, 11:23am UTC](https://community.thunkable.com/t/does-anyone-have-a-current-haversine-block-that-they-can-share/2961995/1 "2024-04-22T11:23:37Z")

</div>

Hi. New user here. As per the title, does anyone have a working Haversine block that they can share for remixing? I’ve been through the forum and the links to the ones shared previously are now expired or not available. I’ve tried to copy some of the images but get a NaN (not a number) as a result of the formula.

For context, I’m trying to work out distance between sets lat/lon coords with calling an API.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [April 22, 2024, 12:12pm UTC](https://community.thunkable.com/t/does-anyone-have-a-current-haversine-block-that-they-can-share/2961995/2 "2024-04-22T12:12:23Z")

</div>

> [@Fun Share: draw a Circle on the map](https://community.thunkable.com/t/fun-share-draw-a-circle-on-the-map/1760218):
>
> Hey Thunkers! A question came up recently “Where did the Map ‘draw circle’ block go?”. Now, while I don’t have a timeline for when we’ll get a circle block, this project will display circles upwards of 500 Km or greater with a pretty good look still. This project will take a location in lat/long, a radius in km or miles (a function to convert Mi to Km is included). Check it out! you could pair this with a haversine formula to draw a circle on a map and include only POI’s that fall within the …

---

<div class="post-metadata">

**Author:** ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)\
**Post date:** [April 22, 2024, 2:49pm UTC](https://community.thunkable.com/t/does-anyone-have-a-current-haversine-block-that-they-can-share/2961995/3 "2024-04-22T14:49:41Z")

</div>

can you try this  
[https://x.thunkable.com/copy/0a769291e941b464b63f836aa39930e1](https://x.thunkable.com/copy/0a769291e941b464b63f836aa39930e1)

---

<div class="post-metadata">

**Author:** ![damienc](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/damienc/32/174882_2.png) [@damienc](https://community.thunkable.com/u/damienc)\
**Post date:** [April 24, 2024, 9:04am UTC](https://community.thunkable.com/t/does-anyone-have-a-current-haversine-block-that-they-can-share/2961995/4 "2024-04-24T09:04:40Z")

</div>

Thank you so much - perfect!

---

<div class="post-metadata">

**Author:** ![damienc](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/damienc/32/174882_2.png) [@damienc](https://community.thunkable.com/u/damienc)\
**Post date:** [April 24, 2024, 10:42am UTC](https://community.thunkable.com/t/does-anyone-have-a-current-haversine-block-that-they-can-share/2961995/5 "2024-04-24T10:42:26Z")

</div>

Thank you so much - perfect!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [July 23, 2024, 10:43am UTC](https://community.thunkable.com/t/does-anyone-have-a-current-haversine-block-that-they-can-share/2961995/6 "2024-07-23T10:43:01Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
