DistanceCalculator

Calculates the distance between two GPS coordinates using the Haversine formula.

Sample call:

/distanceCalculator/compare?latA=48.1240557&lonA=11.6560609&latB=48.122079&lonB=11.6173942

curl:

curl --location --request GET 'https://loa.test.opensourceecology.de/distanceCalculator/compare?latA=48.1240557&lonA=11.6560609&latB=48.122079&lonB=11.6173942'

Java library:

You find the Java Class org.linkedopenactors.code.distancecalculator.DistanceCalculator in the library:
	<dependency>
	   <groupId>org.linkedopenactors.code</groupId>
	   <artifactId>algorithms</artifactId>
	   <version>${algorithms.version}</version>
	</dependency>