Utilities

interface Utilities

Utilities for various common functions

Functions

Link copied to clipboard
abstract fun filterAndSortSearchables(input: String, @NonNull fullList: List<out ISearchable>): List<out ISearchable>
Filter and Sort searchable list based on an input string.
Link copied to clipboard
abstract fun filterSearchableByMatchType(input: String, @NonNull fullList: List<out ISearchable>, includeExactMatch: Boolean): List<out ISearchable>
Filters a list based on an input string.
Link copied to clipboard
Filter list based on an input string.
Link copied to clipboard
abstract fun findNearbyBuildings(point: Mercator, propertyId: Int): Set<Integer>
Finds a set of buildingIds that are near a specific point within a property
Link copied to clipboard
abstract fun findPropertyAndBuilding(point: Mercator): Zone
Returns a Zone object with property and building populated (if possible).
Link copied to clipboard
abstract fun getDistance(l1: LatLng, l2: LatLng): Double
Get distance between two LatLng points.
abstract fun getDistance(m1: Mercator, m2: Mercator): Double
Get distance between two Mercator points.
Link copied to clipboard
abstract fun getDistFromPointToPolygon(point: Mercator, polygon: List<Mercator>): Double
Get distance between a Mercator to a polygon
Link copied to clipboard
Link copied to clipboard
abstract fun getFuzzyMatchesForSearchable(input: String, @NonNull fullList: List<out ISearchable>, resultSize: Int, threshold: Double, allowSecondPass: Boolean): List<String>
get fuzzy matches for the input.
Link copied to clipboard
Link copied to clipboard
abstract fun getTimestampMs(): Double
Get the current internal timestamp in ms.
Link copied to clipboard
Link copied to clipboard
abstract fun isPointInPolygon(point: Mercator, polygon: List<Mercator>): Boolean
Determines if a point is located within the polygon
Link copied to clipboard
abstract fun isPointWithinFloorBoundary(point: Mercator, floorId: Int): Boolean
Checks if the given point is within the boundaries of the floor id.