Limit Delivery Area For Customers - Google Maps

But the first thing is not how to do it in Kodular, or PHP, or Flutter, or Java, the first thing is you know what you need to do.
ALGORITHM
:slightly_smiling_face:
The distance is in radius. You define in your database so that everyone who uses your app will have the same range. OK ?
The current location is given by the Get Mylocation function, where the first return is latitude and the second is longitude. These values will be the basis for you to calculate his distance (app client) and his latitude + longitude. The result will be a distance that will be compared with your limit distance (this value will be in your database)
“I don’t know how to do it”, what did you try?
I also didn’t know, I sat down, I did the algorithm and I was searching here in the forum and in the Kodular documentation.
Even formulas to calculate distance I researched and created( sorry, I didn’t create, I generated ) an extension based on this formula. :+1:
And I did it … and you can do it too!

3 Likes