Package-level declarations

Types

Link copied to clipboard
open class AutocompleteResult(val type: ResultType, val distance: Double, val title: String, val subtitle: String, val titleHighlights: List<StringRange>, val locationId: String, val categoryTags: List<String>, val categoryBoundary: GeoBoundingBox) : Result
Link copied to clipboard
Link copied to clipboard

Composite search engine (combination of any types of Search engines)

Link copied to clipboard
data class ContactDataAutocompleteResult(val type: ResultType, val distance: Double, val title: String, val subtitle: String, val titleHighlights: List<StringRange>, val locationId: String, val categoryTags: List<String>, val categoryBoundary: GeoBoundingBox, val flatType: FlatResultType, val payload: Parcelable) : AutocompleteResult, FlatDataPayload
Link copied to clipboard
data class ContactDataResult(val type: ResultType, val distance: Double, val title: String, val subtitle: String, val titleHighlights: List<StringRange>, val location: GeoCoordinates, val boundary: GeoBoundingBox, val flatType: FlatResultType, val payload: Parcelable) : GeocodingResult, FlatDataPayload
Link copied to clipboard

Coordinate search engine (search input may look like this: "48.1457, 17.1269")

Link copied to clipboard

Callback interface for create search operation

Link copied to clipboard
data class CustomPlaceDataAutocompleteResult(val type: ResultType, val distance: Double, val title: String, val subtitle: String, val titleHighlights: List<StringRange>, val locationId: String, val categoryTags: List<String>, val categoryBoundary: GeoBoundingBox, val flatType: FlatResultType, val payload: Parcelable) : AutocompleteResult, FlatDataPayload
Link copied to clipboard
data class CustomPlaceDataResult(val type: ResultType, val distance: Double, val title: String, val subtitle: String, val titleHighlights: List<StringRange>, val location: GeoCoordinates, val boundary: GeoBoundingBox, val flatType: FlatResultType, val payload: Parcelable) : GeocodingResult, FlatDataPayload
Link copied to clipboard

Custom places search engine (use com.sygic.sdk.places.CustomPlacesManager to install custom places)

Link copied to clipboard
data class FavoriteDataAutocompleteResult(val type: ResultType, val distance: Double, val title: String, val subtitle: String, val titleHighlights: List<StringRange>, val locationId: String, val categoryTags: List<String>, val categoryBoundary: GeoBoundingBox, val flatType: FlatResultType, val payload: Parcelable) : AutocompleteResult, FlatDataPayload
Link copied to clipboard
data class FavoriteDataResult(val type: ResultType, val distance: Double, val title: String, val subtitle: String, val titleHighlights: List<StringRange>, val location: GeoCoordinates, val boundary: GeoBoundingBox, val flatType: FlatResultType, val payload: Parcelable) : GeocodingResult, FlatDataPayload
Link copied to clipboard
open class FlatAutocompleteResult(val type: ResultType, val distance: Double, val title: String, val subtitle: String, val titleHighlights: List<StringRange>, val locationId: String, val categoryTags: List<String>, val categoryBoundary: GeoBoundingBox, val payload: Parcelable) : AutocompleteResult
Link copied to clipboard
data class FlatData(val title: String, val subtitle: String, val location: GeoCoordinates, val payload: Parcelable) : Parcelable
Link copied to clipboard
data class FlatDataAutocompleteResult(val type: ResultType, val distance: Double, val title: String, val subtitle: String, val titleHighlights: List<StringRange>, val locationId: String, val categoryTags: List<String>, val categoryBoundary: GeoBoundingBox, val payload: Long) : AutocompleteResult
Link copied to clipboard
interface FlatDataPayload
Link copied to clipboard
open class FlatDataResult(val type: ResultType, val distance: Double, val title: String, val subtitle: String, val titleHighlights: List<StringRange>, val location: GeoCoordinates, val boundary: GeoBoundingBox, val payload: Long) : GeocodingResult
Link copied to clipboard
open class FlatResult(val type: ResultType, val distance: Double, val title: String, val subtitle: String, val titleHighlights: List<StringRange>, val location: GeoCoordinates, val boundary: GeoBoundingBox, val payload: Parcelable) : GeocodingResult
Link copied to clipboard
Link copied to clipboard

Flat search engine (add your own flat data into search engine, data will not persist SDK restart and are valid only for single FlatSearch instance)

Link copied to clipboard
data class GeocodeLocationRequest @JvmOverloads constructor(val locationId: String)
Link copied to clipboard
open class GeocodingResult(val type: ResultType, val distance: Double, val title: String, val subtitle: String, val titleHighlights: List<StringRange>, val location: GeoCoordinates, val boundary: GeoBoundingBox) : Result
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class HistoryDataAutocompleteResult(val type: ResultType, val distance: Double, val title: String, val subtitle: String, val titleHighlights: List<StringRange>, val locationId: String, val categoryTags: List<String>, val categoryBoundary: GeoBoundingBox, val flatType: FlatResultType, val payload: Parcelable) : AutocompleteResult, FlatDataPayload
Link copied to clipboard
data class HistoryDataResult(val type: ResultType, val distance: Double, val title: String, val subtitle: String, val titleHighlights: List<StringRange>, val location: GeoCoordinates, val boundary: GeoBoundingBox, val flatType: FlatResultType, val payload: Parcelable) : GeocodingResult, FlatDataPayload
Link copied to clipboard
data class HouseNumberResult(val type: ResultType, val distance: Double, val title: String, val subtitle: String, val titleHighlights: List<StringRange>, val location: GeoCoordinates, val boundary: GeoBoundingBox, val iso: String, val addressComponent: Map<MapResultComponent, String>, val entry: GeoCoordinates, val exactMatch: Boolean) : MapResult
Link copied to clipboard
open class MapResult(val type: ResultType, val distance: Double, val title: String, val subtitle: String, val titleHighlights: List<StringRange>, val location: GeoCoordinates, val boundary: GeoBoundingBox, val iso: String, val addressComponent: Map<MapResultComponent, String>) : GeocodingResult
Link copied to clipboard

Geocoding components.

Link copied to clipboard

Offline maps search engine (OfflineMapSearch consumes a lot of resources, it is recommended to share one OfflineMapSearch instance)

Link copied to clipboard

Online search engine (using online search API)

Link copied to clipboard
data class PlacePageRequest @JvmOverloads constructor(val continuationToken: String)
Link copied to clipboard
data class PlaceRequest @JvmOverloads constructor(val location: GeoCoordinates, val categoryTags: List<String>, val radius: Int, val boundary: GeoBoundingBox? = null, val maxResultCount: Int = 10, val languageTag: String? = null)
Link copied to clipboard
data class PlaceResult(val type: ResultType, val distance: Double, val title: String, val subtitle: String, val titleHighlights: List<StringRange>, val location: GeoCoordinates, val boundary: GeoBoundingBox, val iso: String, val addressComponent: Map<MapResultComponent, String>, val entry: GeoCoordinates, val details: List<PlaceResultDetail>, val categoryTags: List<String>, val placeLink: PlaceLink) : MapResult
Link copied to clipboard
data class PlaceResultDetail(val key: String, val value: String) : Parcelable
Link copied to clipboard
interface PlacesListener
Link copied to clipboard
open class Result(val type: ResultType, val distance: Double, val title: String, val subtitle: String, val titleHighlights: List<StringRange>) : Parcelable
Link copied to clipboard
data class ResultNames : Parcelable
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open class Search

Base class for search engines Allows creation of search sessions

Link copied to clipboard
data class SearchRequest @JvmOverloads constructor(val searchInput: String, val location: GeoCoordinates, val maxResultCount: Int = 10, val boundary: GeoBoundingBox? = null, val languageTag: String? = null, val resultTypeFilter: List<ResultType>? = null, val countryIsoFilter: List<String>? = null)
Link copied to clipboard
class Session

Session has a limited lifetime. The lifetime follows this call graph:

Link copied to clipboard
data class StringRange(val from: Int, val size: Int) : Parcelable