POIKit

object POIKit : CloudSDKKoinComponent, DefaultLifecycleObserver

Functions

getDynamicFilters
Link copied to clipboard
fun getDynamicFilters(latitude: Double, longitude: Double, completion: (Completion<Categories>) -> Unit)
getFromBoundingBoxLocal
Link copied to clipboard
fun getFromBoundingBoxLocal(minLatitude: Double, maxLatitude: Double, minLongitude: Double, maxLongitude: Double, completion: (Completion<List<GasStation>>) -> Unit)
getGasStation
Link copied to clipboard
fun getGasStation(id: String, compileOpeningHours: Boolean, forMovedGasStation: Boolean, completion: (Completion<GasStationMovedResponse>) -> Unit)
getGasStationLocal
Link copied to clipboard
fun getGasStationLocal(vararg ids: String, completion: (Completion<List<GasStation>>) -> Unit)
getKoin
Link copied to clipboard
open override fun getKoin(): Koin
getPriceHistoryByCountry
Link copied to clipboard
fun getPriceHistoryByCountry(countryCode: String, since: Date, granularity: String, forecast: Boolean = false, completion: (Completion<List<PriceHistory>>) -> Unit)

Returns the price history for the specified country.

fun getPriceHistoryByCountry(countryCode: String, fuelType: String, since: Date, granularity: String, forecast: Boolean = false, completion: (Completion<List<PriceHistoryFuelType>>) -> Unit)

Returns the price history for the specified country and fuel type.

getPriceHistoryByStation
Link copied to clipboard
fun getPriceHistoryByStation(stationId: String, since: Date, granularity: String, forecast: Boolean = false, completion: (Completion<List<PriceHistory>>) -> Unit)

Returns the price history for the specified gas station.

fun getPriceHistoryByStation(stationId: String, fuelType: String, since: Date, granularity: String, forecast: Boolean = false, completion: (Completion<List<PriceHistoryFuelType>>) -> Unit)

Returns the price history for the specified gas station and fuel type.

getRegionalPrice
Link copied to clipboard
fun getRegionalPrice(latitude: Double, longitude: Double, completion: (Completion<RegionalPrices>) -> Unit)
getRoute
Link copied to clipboard
fun getRoute(destination: LocationPoint, completion: (Completion<Route?>) -> Unit)
insertGasStations
Link copied to clipboard
fun insertGasStations(vararg gasStations: GasStation)
isPoiInRange
Link copied to clipboard
suspend fun isPoiInRange(poiId: String, location: Location? = null): Boolean

Checks if there is at least one app for the given poiId at the current location.

observe
Link copied to clipboard
fun observe(id: String, completion: (Completion<GasStation>) -> Unit): IDNotificationToken
fun observe(ids: List<String>, completion: (Completion<List<PointOfInterest>>) -> Unit): IDsNotificationToken
fun observe(locations: Map<String, LocationPoint>, completion: (Completion<List<PointOfInterest>>) -> Unit): LocationsNotificationToken
fun observe(visibleRegion: VisibleRegion, padding: Double = 0.0, completion: (Completion<List<PointOfInterest>>) -> Unit): VisibleRegionNotificationToken
onCreate
Link copied to clipboard
open override fun onCreate(@NonNull p0: LifecycleOwner)
onDestroy
Link copied to clipboard
open override fun onDestroy(@NonNull p0: LifecycleOwner)
onPause
Link copied to clipboard
open override fun onPause(@NonNull p0: LifecycleOwner)
onResume
Link copied to clipboard
open override fun onResume(@NonNull p0: LifecycleOwner)
onStart
Link copied to clipboard
open override fun onStart(owner: LifecycleOwner)
onStop
Link copied to clipboard
open override fun onStop(owner: LifecycleOwner)
requestCofuGasStations
Link copied to clipboard
fun requestCofuGasStations(completion: (Completion<List<CofuGasStation>>) -> Unit)

Returns a list of all Connected Fueling gas stations.

fun requestCofuGasStations(location: Location, radius: Int, completion: (Completion<List<GasStation>>) -> Unit)

Returns a list of Connected Fueling gas stations within the radius of the specified location.

requestGasStations
Link copied to clipboard
fun requestGasStations(locations: Map<String, LocationPoint>, zoomLevel: Int = POIKitConfig.ZOOMLEVEL, completion: (Completion<List<GasStation>>) -> Unit)
searchAddress
Link copied to clipboard
fun searchAddress(request: AddressSearchRequest): Observable<PhotonResult>
startLocationListener
Link copied to clipboard
fun startLocationListener(): LocationProvider
stopLocationListener
Link copied to clipboard
fun stopLocationListener()