addIntersectionCalloutFromDescription

fun addIntersectionCalloutFromDescription(description: IntersectionDescription, localizedContext: Context?, calloutHistory: CalloutHistory? = null, gridState: GridState): TrackedCallout?

addIntersectionCalloutFromDescription adds a callout to the results list for the intersection described in the parameters. This will become more configurable e.g. whether to include the distance or not.

Return

A TrackedCallout for the intersection if one was found, otherwise null.

Parameters

description

The description of the intersection to callout

localizedContext

A context for obtaining localized strings

calloutHistory

An optional CalloutHistory to use so as to filter out recently played out

gridState

The current gridState