Package cloud.pace.sdk.poikit.utils

Types

ApiException
Link copied to clipboard
class ApiException @JvmOverloads constructor(errorCode: Int, errorMessage: String, requestId: String?) : Exception
DynamicFilterCache
Link copied to clipboard
object DynamicFilterCache
GasStationCodes
Link copied to clipboard
class GasStationCodes
GasStationMovedResponse
Link copied to clipboard
data class GasStationMovedResponse(id: String?, hasChanged: Boolean, latitude: Double?, longitude: Double?)
GeoMathUtils
Link copied to clipboard
object GeoMathUtils

Math utilities for calculations related

OpeningHoursParser
Link copied to clipboard
object OpeningHoursParser

Fault-tolerant parser for gas station opening hours.

OSMKeys
Link copied to clipboard
object OSMKeys
POIKitConfig
Link copied to clipboard
object POIKitConfig

Global constants to configure POIKit.

PriceListParser
Link copied to clipboard
object PriceListParser

Fault-tolerant parser for gas station price list

Functions

addPadding
Link copied to clipboard
fun VisibleRegion.addPadding(padding: Double): VisibleRegion

Adds the padding to each side of this and returns a new padded VisibleRegion.

center
Link copied to clipboard
fun VisibleRegion.center(): LatLng
contains
Link copied to clipboard
fun LatLngBounds.contains(point: LocationPoint): Boolean
diameter
Link copied to clipboard
fun VisibleRegion.diameter(): Double
distanceTo
Link copied to clipboard
fun LatLng.distanceTo(other: LatLng): Double

Returns the distance to the other location in meters.

fun LatLngBounds.distanceTo(bounds: LatLngBounds): Double
headingTo
Link copied to clipboard
fun LatLng.headingTo(other: LatLng): Double

Returns the heading to the other location.

incrementalPadding
Link copied to clipboard
fun incrementalPadding(maxIncrements: Int, currentIncrement: Int, maxPadding: Double = 0.85, minPadding: Double = 0.2): Double

Calculates the incremental padding depending on the currentIncrement. It ensures that the value lies in the specified range minPadding..maxPadding.

LatLngBounds
Link copied to clipboard
fun LatLngBounds(center: LatLng, radius: Double): LatLngBounds
fun LatLngBounds(lat: Double, lng: Double, radius: Double): LatLngBounds
LatLngBoundsRadius
Link copied to clipboard
fun LatLngBoundsRadius(center: LatLng, radius: Double): LatLngBounds
offsetBy
Link copied to clipboard
fun LatLng.offsetBy(meters: Double, heading: Double): LatLng

Returns the location resulting from moving a distance from this location in the specified heading (expressed in degrees clockwise from north).

toTileQueryRequest
Link copied to clipboard
fun VisibleRegion.toTileQueryRequest(zoomLevel: Int): <ERROR CLASS>
toVisibleRegion
Link copied to clipboard
fun LatLngBounds.toVisibleRegion(): VisibleRegion
zoomToDiameter
Link copied to clipboard
fun VisibleRegion.zoomToDiameter(diameter: Double): VisibleRegion

Gets the zoomed version of this so that the diameter is reached.