How do I check that it is out of the circle?
Rogerio_Rios
(Professional Support)
May 10, 2021, 11:01am
#17
I used a formula that calculates the distance between 2 points on the earth and generated an extension.
Option 1 - use it on Kodular blocks
Option 2- use it to generate an extension
https://youtu.be/ZPa9HR7dYBQ
Is there an example code for not using an extension? I really can’t
Rogerio_Rios
(Professional Support)
May 10, 2021, 11:22am
#19
There are different ways of calculating this distance.
You can find it on Google.
Take it and use the Kodular blocks.
I did not use Kodular blocks.
Geodesic Distance (15%) and Haversine
Peter
(Moderator)
May 10, 2021, 11:28am
#20
I merged your topics. Don’t double post.
1 Like
If you search in community you will get how to calculate distance between the two places using one static geo location and user geo location
Guide:
Hello Koders, I hope you are all doing well!
A few days ago, someone asked me :
How can we calculate a distance between two points with Kodular?
I then replied that I had made an application a year ago (with Thunkable , when I didn’t know Makeroid yet) and that I could then help him.
But I wanted to do more, I thought :
Maybe other people are wondering how to do it, so why not do a little tutorial?
That’s why, today I’ll show you How to calculate a distance bet…
Extension:
Well…
I am here to present my first extension (ever) to this community.
As you have read in title DistanceCalc calculates distance (sometimes accurate) between two places from coordinates (latitudes and longitudes).
Blocks
Just a single block…
[12-19_17_29]
Usage
It has just one function/block as you can see in above screenshot.
[12-19_18_00]
It accepts four coordinates in format like lat1,lng1,lat2, and lng2 and all of them should be integers(double).It returns distance in KiloMetres. …
No one used the block kodular to find the distance.
I want the formula and not use extension.
It mean you need to use complex formula. To avoid only we r recommendING free exten
Is it this formula that finds the distance between two points?
This is not the formula . Map will give us only radian values
I share you the aia of course and if you have any question, I will answer them with pleasure
Calculate_distance.aia (22.4 KB)
But this guide works based on kodular blocks only. So you didnt see the guide that we have provided
Open the provided aia in your creator page, drag the blocks into your bagpack then move to your original project, again drag the uploaded blocks to your project and add the missing blocks. Simple
I can’t download it.
Calculate_distance.aia
chayungkul_kaewjinda:
Calculate_distance.aia
It was removed itseems. Go to the guide, just like the guide create a blocks into your project.
Instead use simple extension, it will reduce plenty of time
1 Like
Well…
I am here to present my first extension (ever) to this community.
As you have read in title DistanceCalc calculates distance (sometimes accurate) between two places from coordinates (latitudes and longitudes).
Blocks
Just a single block…
[12-19_17_29]
Usage
It has just one function/block as you can see in above screenshot.
[12-19_18_00]
It accepts four coordinates in format like lat1,lng1,lat2, and lng2 and all of them should be integers(double).It returns distance in KiloMetres. …
What is the distance between the two points? M, km, radius.
And can it convert units?