Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
AndreasForster
Product and Topic Expert
Product and Topic Expert
0 Kudos

This component determines the travelling time and distance between a specific place and multiple locations held in a data column. A customer was asking for this functionality to help optimising its logistics / supply chain.

Disclaimer

Please note that this component is not an official release by SAP and that it is provided as-is without any guarantee or support. Please test the component to ensure it works for your purposes.

Prerequisites

  • The data must contain a column with the destinations of the travelling route.
  • You must be online to use this component.

Limitations

The travelling time and distance is calculated through Google Maps. There are limitations on the number of requests you can sent in a given time frame.

Usage

These parameters can be set by the user.

ParameterDescription
Origin Address

Location from where to calculate travelling time and distance.

Mode of TransportYou can select Driving, Bicycling or Walking. In case no route could be calculated, no value is returned for the distance.
Destination AddressColumn that holds the destination addresses.

Output column added by this component

ColumnDescription
Origin

The "Origin Address" as entered by the user.

DistanceKmThe travelling distance in kilometers.
DistanceMinThe travelling time in minutes.
TransportModeThe "Mode of Transport" as entered by the user.

How to Implement

The component can be downloaded as .spar file from GitHub. Then deploy it as described here. You just need to import it through the option "Import/Model Component", which you will find by clicking on the plus-sign at the bottom of the list of the available algorithms.

Example

You can try this component with the file Cities.csv. The records are taken from the article on Hierarchical Clustering. Just load the data in Expert Mode and add/configure this component accordingly.

Run the component and you should see the travelling time and distance.