Table of Contents

Search

  1. Preface
  2. RulePoint
  3. RulePoint Concepts
  4. Using RulePoint
  5. RulePoint Objects
  6. Working with Topics
  7. Working with Connections
  8. Working with Sources
  9. Working with Responders
  10. Working with Responses
  11. Working with Watchlists
  12. Working with Analytics
  13. DRQL
  14. Working with Rules
  15. Working with Alerts
  16. Setting Access Controls
  17. Troubleshooting RulePoint Issues
  18. Connecting to an Ultra Messaging Application
  19. Creating an Ultra Messaging JMS Source

User Guide

User Guide

geodistance

geodistance

The geodistance analytic returns the minimum distance between two geo points. A geo point represents the longitude and latitude coordinates.

Syntax

geodistance(latitude1, longitude1, latittude2, longitude2)
The following table describes the required and optional arguments:
Argument
Required
Optional
Description
latitude1
Required
The value of the first latitude point.
longitude1
Required
The value of the first longitude point.
latitude2
Required
The value of the second latitude point.
longitude2
Required
The value of the second longitude point.
The following table provides the datatype for the parameters you can pass:
Parameter Input Options
Datatype
Event property
Real number
Watchlist values
Real number
Example
WHEN 1 boat b WITH geodistance(b.x1,b.y1,b.x2,b.y2) as distance =10 then response with body= “${distance}”
The following table describes the result for the event property value that you pass:
Event Property Value
Description
Result
b.x1=10
b.y1=10
b.x2=10
b.y2=20
Finds the distance between two geo points.
10

0 COMMENTS

We’d like to hear from you!