Hub
  • Software
  • Blog
  • Forum
  • Events
  • Documentation
  • About KNIME
  • KNIME Hub
  • bruno29a
  • Spaces
  • Public
  • Shared Library
  • GPS
  • Distance between 2 Latitudes and Longitudes using Haversine formula
ComponentComponent

Distance between 2 Latitudes and Longitudes using Haversine formula

Last edited: 

Drag & drop
Like
Use or download
Copy short link
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 nodes Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.5.2

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

    KNIME AG, Zurich, Switzerland

    Version 4.5.0

  • Go to item
    KNIME Quick Forms Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.5.2

  1. Go to item
  2. Go to item
  3. Go to item
  4. Go to item
  5. Go to item
  6. Go to item

Legal

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

KNIME
Open for Innovation

KNIME AG
Hardturmstrasse 66
8005 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • E-Learning course
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • KNIME Open Source Story
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more on KNIME Server
© 2022 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Credits