POIKit
Functions
get Dynamic Filters
Link copied to clipboard
fun getDynamicFilters(latitude: Double, longitude: Double, completion: (Completion<Categories>) -> Unit)
Content copied to clipboard
get From Bounding Box Local
Link copied to clipboard
fun getFromBoundingBoxLocal(minLatitude: Double, maxLatitude: Double, minLongitude: Double, maxLongitude: Double, completion: (Completion<List<GasStation>>) -> Unit)
Content copied to clipboard
get Gas Station
Link copied to clipboard
fun getGasStation(id: String, compileOpeningHours: Boolean, forMovedGasStation: Boolean, completion: (Completion<GasStationMovedResponse>) -> Unit)
Content copied to clipboard
get Gas Station Local
Link copied to clipboard
fun getGasStationLocal(vararg ids: String, completion: (Completion<List<GasStation>>) -> Unit)
Content copied to clipboard
get Price History By Country
Link copied to clipboard
fun getPriceHistoryByCountry(countryCode: String, since: Date, granularity: String, forecast: Boolean = false, completion: (Completion<List<PriceHistory>>) -> Unit)
Content copied to clipboard
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)
Content copied to clipboard
get Price History By Station
Link copied to clipboard
fun getPriceHistoryByStation(stationId: String, since: Date, granularity: String, forecast: Boolean = false, completion: (Completion<List<PriceHistory>>) -> Unit)
Content copied to clipboard
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)
Content copied to clipboard
Returns the price history for the specified gas station and fuel type.
get Regional Price
Link copied to clipboard
fun getRegionalPrice(latitude: Double, longitude: Double, completion: (Completion<RegionalPrices>) -> Unit)
Content copied to clipboard
get Route
Link copied to clipboard
fun getRoute(destination: LocationPoint, completion: (Completion<Route?>) -> Unit)
Content copied to clipboard
insert Gas Stations
Link copied to clipboard
is Poi In Range
Link copied to clipboard
suspend fun isPoiInRange(poiId: String, location: Location? = null): Boolean
Content copied to clipboard
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
Content copied to clipboard
fun observe(ids: List<String>, completion: (Completion<List<PointOfInterest>>) -> Unit): IDsNotificationToken
Content copied to clipboard
fun observe(locations: Map<String, LocationPoint>, completion: (Completion<List<PointOfInterest>>) -> Unit): LocationsNotificationToken
Content copied to clipboard
fun observe(visibleRegion: VisibleRegion, padding: Double = 0.0, completion: (Completion<List<PointOfInterest>>) -> Unit): VisibleRegionNotificationToken
Content copied to clipboard
on Create
Link copied to clipboard
on Destroy
Link copied to clipboard
on Pause
Link copied to clipboard
on Resume
Link copied to clipboard
on Start
Link copied to clipboard
on Stop
Link copied to clipboard
request Cofu Gas Stations
Link copied to clipboard
fun requestCofuGasStations(completion: (Completion<List<CofuGasStation>>) -> Unit)
Content copied to clipboard
Returns a list of all Connected Fueling gas stations.
fun requestCofuGasStations(location: Location, radius: Int, completion: (Completion<List<GasStation>>) -> Unit)
Content copied to clipboard
request Gas Stations
Link copied to clipboard
fun requestGasStations(locations: Map<String, LocationPoint>, zoomLevel: Int = POIKitConfig.ZOOMLEVEL, completion: (Completion<List<GasStation>>) -> Unit)
Content copied to clipboard
search Address
Link copied to clipboard
fun searchAddress(request: AddressSearchRequest): Observable<PhotonResult>
Content copied to clipboard
start Location Listener
Link copied to clipboard
stop Location Listener
Link copied to clipboard
fun stopLocationListener()
Content copied to clipboard