Reasoning over geographic locations
Write location-aware rules to reason over geographic data of entities and events.
If your business model contains location-aware entities or events,
you can write rules to perform the following operations:
- Detect if some locations contain or are contained by other locations.
- Calculate the distance between two locations.
- Define a perimeter in which locations are contained.
- Check whether a location intersects a path or an area.
- Find the nearest location to another location.
- Add a location to a path or route.
In the rule editor, <a geometry> refers to any type of geometry that is defined in the business model, such as a point, a polygon, or a line string. For example, the position of a flight is a geometry, where the position is an attribute of type point that belongs to a flight entity.
The examples in this section are based on the business model that is described in Example of a car sharing business model.