Interface GeocodeCallback


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.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    void
    placesFound(List places)
    Delivers the places found, best first.
  • Method Details

    • placesFound

      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: the Place results, never null
    • geocodeFailed

      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: a human readable explanation, never null

      • error: the underlying exception when one was thrown, or null