Bixby Developer Center

Build Conversational Experiences
Guides
References

distance-equality

optionalvalue required

As a special case, we can define equivalence rules for geo.GeoPoint properties using the distance-equality constraint, which returns true if two points are within a specified geographic distance of each other.

In this example the property centroid is a GeoPoint, and comparison returns true if two centroids are separated by 0.2 miles or less.

Example

equivalence: join {
distance-equality (centroid) {
unit (Miles)
magnitude (0.2)
}
}
Note

You must use viv.core.BaseGeoPoint concepts with distance-equality.

Child Keys

magnitude
optional
Distance value as a double, for example 1.25
unit
optional
Unit of distance, for example "miles"