SearchResultRouteInfo

Represents a search result enhanced with route metrics information.

This class contains route-specific metrics for a search result, including distance and estimated time of arrival from the user's current location. It provides serialization capabilities for IPC communication via Bundle.

Performance Note: Due to computational complexity, it's expensive to calculate accurate ETA and precise route distance for SearchResult objects. These calculations involve routing algorithms and real-time traffic data processing, which can significantly impact performance when processing multiple search results simultaneously.

Properties

Link copied to clipboard

The distance in meters from the search result to the user location.

Link copied to clipboard

The estimated time of arrival in minutes from the search result to the user location.

Link copied to clipboard

The estimated time of arrival in seconds from the search result to the user location.

Link copied to clipboard

Unique identifier of the associated search result.

Link copied to clipboard

State of charge percentage at the end destination point (for EV routes).

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String