Session
class Session
Content copied to clipboard
Session has a limited lifetime. The lifetime follows this call graph:
[0..N] autocomplete requests then either of [1] do nothing -> close session [1] geocode with location ID -> close session [1] geocode with query -> close session [1] search places with query -> [0..N] search places with continuation token -> close session
Functions
autocomplete
Link copied to clipboard
fun autocomplete(request: SearchRequest, listener: AutocompleteResultListener, executor: Executor? = null)
Content copied to clipboard
Performs autocomplete, can be called 0..N times during single session, if afterwards
geocode
Link copied to clipboard
fun geocode(request: GeocodeLocationRequest, listener: GeocodingResultListener, executor: Executor? = null)
Content copied to clipboard
Performs geocode on a location, can be called once during single session and afterwards session has to be closed
fun geocode(request: SearchRequest, listener: GeocodingResultsListener, executor: Executor? = null)
Content copied to clipboard
Performs geocode with a query, can be called once during single session and afterwards session has to be closed
search Places
Link copied to clipboard
fun searchPlaces(request: PlacePageRequest, listener: PlacesListener, executor: Executor? = null)
Content copied to clipboard
Performs places search with a continuation token, can be called 0..N times during single session and afterwards the session closed has to be closed
fun searchPlaces(request: PlaceRequest, listener: PlacesListener, executor: Executor? = null)
Content copied to clipboard
Performs places search with a query, can be called once during single session and afterwards either searchPlaces() with PlacePageRequest can be called or the session closed