Maybe this is not the website I'm looking for to find answers but here's my issue.
I'm working on a Java program and I need to know the distance in meters between two locations given it's coordinates in format EPSG: 4326.
For example,
coordinate 1:
42.34839, 2.484839
coordinate 2:
42.27345, 2.23453
What is the system, mathematically, to know the distance difference between two coordinates?