I would like to calculate distance between two places where user should be able to enter the from and to, where the app should show the distance between those two places. Is it possible?
This can be done most easily using a backend like backendless or xano
They offer geoquery abilities out of the box!
You can complete this client side but you’ll eventually end up with excessive data pulls at times. Figuring out what’s close to you works well when you’re dealing with maybe 50 to 100 data points. However if you have data points all across your country for example and there’s thousands of them you’re not going to want to do it dad a pool every time. You shouldn’t
I think that using a DB is still a nicer option though can be costly. Using a DB to do these actions will return not only the closest points but can also return other information about those points so you don’t need to do a second query against the retuned spots to return information about the POI’s within your radius.
If you have a list of lat/lon pairs, you can also do this within the app using the Haversine formula (search the forums for it). That’s what I did for my Air Quality app to allow the user to find the closest Purple Air sensor.
It’s a bit of a pain to set up but it works great and fast and doesn’t require any data pulls (if you already have the pairs data).
But it sounds like you don’t want to deal with lat/lon and prefer “places” so maybe that’s not an option.