Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public interface GeocodeCallback

Receives the outcome of a geocoding request. Exactly one method is invoked per request, always on the Codename One event dispatch thread.

Methods

public abstract void placesFound(List places)Delivers the places found, best first.
public abstract void geocodeFailed(String message, Throwable error)Reports that the request failed: the network failed, the service answered an error status, or the answer could not be read.

Method details

placesFound

public abstract void placesFound(List places)
Delivers the places found, best first. The list is empty when the service understood the request and knows no matching place.

Parameters

places List
the Place results, never null

geocodeFailed

public abstract void geocodeFailed(String message, Throwable error)
Reports that the request failed: the network failed, the service answered an error status, or the answer could not be read.

Parameters

message String
a human readable explanation, never null
error Throwable
the underlying exception when one was thrown, or null