Icon

01_​Geo_​Distance_​Calculation_​using_​GeoPy_​package

Geo Distance Calculation using GeoPy Python package

This worklow demonstrates the usage of geopy python package for distance calculation given the GPS coordinates.

The Python Script node uses the python package geopy for distance calculation. The conda environment propagation node makes sure the python environment required for the execution of the Python Script node is made available at the user's system.

The geopy package is not included in the Bundled environment that comes with the Python Script node, which is why we create a new environment with geopy package and ship this environment using the Conda Environment Propagation node.


Read and Manipulate Location Data Compute Distances Visualize Configure the Conda Environment Propogation node toexport the selected environmentThe Conda Environmnet Propaation node propgates the selectedenvironment witgh required python packages to the users system, so thatthe Python Script node can be excecuted succesfully Find below the steps to configureStep 1: Drag the Conda Propagation node to KNIME Analytics PlatformStep 2: Open the dialog and select the environment under the option"Conda Environment"Step 3: Include the python packages required for this workflow OR simplyclick "Include only explicitly installed" optionStep 4: Specify the "output variable name" and press "Ok" Configure the Python Script node for using GeoPypackage for distance calculationThe Python Script node can be provide with input table or object and it canoutput a table, object or an image based on the user's selection of portsStep 1: Drag the Python Script node to KNIME Analytics PlatformStep 2: Open the dialog and select the "Executble Selection" tab andprovide the flow variable for the conda environment coming frm condaenvironment propagation node Step 3: Write your script in the "Script" tab and press "execute script" tounderstand if the execution was successful. Distance CalculationRound offConvert lat and longto numericalTrip DetailsLocation CoordinatesPython EnvExport Results Python Script Table View Round Double Joiner String To Number CSV Reader CSV Reader Conda EnvironmentPropagation Table Writer Read and Manipulate Location Data Compute Distances Visualize Configure the Conda Environment Propogation node toexport the selected environmentThe Conda Environmnet Propaation node propgates the selectedenvironment witgh required python packages to the users system, so thatthe Python Script node can be excecuted succesfully Find below the steps to configureStep 1: Drag the Conda Propagation node to KNIME Analytics PlatformStep 2: Open the dialog and select the environment under the option"Conda Environment"Step 3: Include the python packages required for this workflow OR simplyclick "Include only explicitly installed" optionStep 4: Specify the "output variable name" and press "Ok" Configure the Python Script node for using GeoPypackage for distance calculationThe Python Script node can be provide with input table or object and it canoutput a table, object or an image based on the user's selection of portsStep 1: Drag the Python Script node to KNIME Analytics PlatformStep 2: Open the dialog and select the "Executble Selection" tab andprovide the flow variable for the conda environment coming frm condaenvironment propagation node Step 3: Write your script in the "Script" tab and press "execute script" tounderstand if the execution was successful. Distance CalculationRound offConvert lat and longto numericalTrip DetailsLocation CoordinatesPython EnvExport Results Python Script Table View Round Double Joiner String To Number CSV Reader CSV Reader Conda EnvironmentPropagation Table Writer

Nodes

Extensions

Links