distanceBetweenNodes v1.0.1

Distance sensor allows you calculate distance between two nodes. Both nodes must return langitude and longitude in raw data.
Inputs parameters are

  • node1
  • node2
  • distance: distance between two nodes in km
It also shows two functions from waylayUtil package:
  • waylayUtil.getRawData() : to get raw data
  • waylayUtil.getDistance() :and to calculate a distance

Raw data:

  • distance
  • latitude1
  • longitude1
  • latitude2
  • longitude2
  • distanceConfigured

Required properties:

  • node1
  • node2
  • distance

States:

  • IN
  • OUT

Raw data:

  • distance (string)
  • latitude1 (double)
  • longitude1 (double)
  • latitude2 (double)
  • longitude2 (double)
  • distanceConfigured (double)