interface GeocodeListener

A listener for asynchronous geocoding results. Only one of the methods will ever be invoked per geocoding attempt. There are no guarantees on how long it will take for a method to be invoked, nor any guarantees on the format or availability of error information.

Summary

Public methods
open Unit

onError(errorMessage: String?)

Invoked when geocoding fails, with an optional error message.

abstract Unit

Invoked when geocoding completes successfully.

Public methods

onError

open fun onError(errorMessage: String?): Unit

Invoked when geocoding fails, with an optional error message.

Parameters
errorMessage String?: This value may be null.

onGeocode

abstract fun onGeocode(addresses: MutableList<Address!>): Unit

Invoked when geocoding completes successfully. May return an empty list.

Parameters
addresses MutableList<Address!>: This value cannot be null.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.