HighlightsCalculator

interface HighlightsCalculator

Used to calculate which parts of exact search result name will be highlighted.

To obtain HighlightsCalculator instance, please, use MapboxSearchSdk.serviceProvider.

Functions

highlights
Link copied to clipboard
abstract fun highlights(name: String, query: String): List<Pair<Int, Int>>