Hub
Pricing About
ComponentComponent

Distance between 2 Latitudes and Longitudes using Haversine formula

bruno29a profile image
Draft Latest edits on 
Mar 25, 2022 9:05 PM
Drag & drop
Like
Use or download
Calculates the distance in kilometers (km) between 2 sets of latitudes and longitudes. This is meant so that no additional extensions are required, and uses basic Knime nodes. The distance is calculated using the Haversine Formula. It also assumes that the Earth radius is 6,371 km. The resources used for the formula and Earth radius: Earth radius: https://en.wikipedia.org/wiki/Earth_radius Haversine forumula: https://en.wikipedia.org/wiki/Haversine_formula Among the columns of the Input table should be 4 columns of type Double for 2 sets of latitudes and longitudes values. The column names do not matter as the component allows you to choose which columns represents the 2 sets of latitudes and longitudes columns Author: @bruno29a

Component details

Input ports
  1. Type: Table
    Table including 2 latitudes columns and 2 longitudes columns
Output ports
  1. Type: Table
    Table with input columns and an additional column containing the distance

Used extensions & nodes

Created with KNIME Analytics Platform version 4.5.2
  • Go to item
    KNIME Base nodesTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.5.2

    knime
  • Go to item
    KNIME Math Expression (JEP)Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.5.0

    knime
  • Go to item
    KNIME Quick FormsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.5.2

    knime

This component does not have nodes, extensions, nested components and related workflows

Legal

By using or downloading the component, you agree to our terms and conditions.

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits