Function Block COORD_DISTANCE

The Function Block COORD_DISTANCE calculates the distance between two coordinates.

Input Latitude 1

The input defines the latitude 1 for calculating the distance. This is passed as a decimal.

Input Longitude 1

The input defines the longitude 1 for calculating the distance. This is passed as a decimal.

If this input and the first input are not defined or NULL, the coordinate is taken from the project.

Input Latitude 2

The input defines the latitude 2 for calculating the distance. This is passed as a decimal.

Input Longitude 2

The input defines the longitude 2 for calculating the distance. This is passed as a decimal.

If this input and the third input are not defined or NULL, the coordinate is taken from the project.

Input Radius

The average equatorial radius of the Earth in meters. This amounts to 6378137. If the input is not defined or NULL, the value mentioned above is assumed.

Output Distance

The calculated distance in meters. Unless the radius input has been defined differently. The output is only recalculated when an input changes.