GeoEngine

class GeoEngine

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
lateinit var tileSearch: TileSearch

Functions

Link copied to clipboard
Link copied to clipboard

The gridState is called each time the location changes. It checks if the location has moved away from the center of the current tile grid and if it has calculates a new grid.

Link copied to clipboard

getLocationDescription returns a LocationDescription object for the current location. This is basically a reverse geocode. It initially tries to generate it from local tile data, but falls back to geocoding via the Photon server if network is available.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Called when the on-disk offline map extracts have changed (a download completed, or an extract was deleted) so that both grids pick up the change on their next location update instead of only opportunistically the next time the user crosses a grid boundary.

Link copied to clipboard
suspend fun searchResult(searchString: String): List<LocationDescription>?
Link copied to clipboard
fun start(application: Application, newLocationProvider: LocationProvider, newDirectionProvider: DirectionProvider, soundscapeService: SoundscapeService, localizedContext: Context, streetPreviewEnabled: Boolean)
Link copied to clipboard
fun stop()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun updateRecordingState(recordState: Boolean)
Link copied to clipboard