id: org.apache.streampipes.processors.geo.jvm.latlong.processor.distancecalculator.haversine title: Geo Distance Calculator (Haversine) sidebar_label: Geo Distance Calculator (Haversine)


Description

Calculates the distance between two latitude/longitude pairs in a single event with the Haversine formula.


Required inputs

Requires a position of point on the Earth's surface specified by the two geographic coordinates: the longitude and latitude of the point.


Configuration

First Longitude

This is the first geographic coordinate that specifies the east-west position of a point on the Earth's surface.

First Latitude

This is the second geographic coordinate that specifies the north-south position of a point on the Earth's surface.

Second Longitude

This is the second geographic coordinate that specifies the east-west position of a point on the Earth's surface.

Second Latitude

This is the second geographic coordinate that specifies the north-south position of a point on the Earth's surface.

Output

{ ‘distance’: 12.2 }