Count the kilometers

Hello, I would like to create something very simple in Kodular, but I haven’t found anything about it for a long time. There is a button, when the user clicks on the button, then the map component should start counting how many kilometers you have driven from the current location. Can someone help?

Did you try :point_down:


First of all, thanks for the answer. Yes, I tried that function too, but as I said before, I don’t know how to use it correctly?

What have you tried so far?

I downloaded the CalcDistance extension, gave a variable the current location (which didn’t work) and then at lat1 and lng1 assigned the variable and at lat2 and lng2 I tried to give the new coordinates, I tried the current location on a label and then calculate from this location how many kilometers you drove, I tried to make a route from the current location and then measure the distance etc.