Latitude and Longitude Geolocation

Hello i have a simple question.
I don’t get logic of Adalo for not letting us inserting object’s geolocation by latitude and longitude so i can set specific place that has NO adress at all… but i wonder…
Is it possible to make such thing

I want to show only objects that’s are around me in special distance ( not on map… but just as filtered list )
i have latitude and longitude of every object in their specific database… and i can get lat/long from geolocation of current device… is it possible to use mathematical formula to determine distance between two coordinates?

formula: a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)
c = 2 ⋅ atan2( √a, √(1−a) )
d = R ⋅ c
where φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km);
note that angles need to be in radians to pass to trig functions!
const R = 6371e3; // metres
const φ1 = lat1 * Math.PI/180; // φ, λ in radians
const φ2 = lat2 * Math.PI/180;
const Δφ = (lat2-lat1) * Math.PI/180;
const Δλ = (lon2-lon1) * Math.PI/180;

const a = Math.sin(Δφ/2) * Math.sin(Δφ/2) +
Math.cos(φ1) * Math.cos(φ2) *
Math.sin(Δλ/2) * Math.sin(Δλ/2);
const c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));

const d = R * c; // in metres

I do understand that Adalo gives us this possibility if object already in base… but i have objects that has NO adress… and i still don’t understand why we cant get into base any point on Earth.

Any solutions?

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