Package com.codename1.maps.geocoding


package com.codename1.maps.geocoding

Turns place names and addresses into coordinates, and coordinates back into addresses.

NominatimGeocoder speaks Nominatim's JSON API, which a Codename One backend answers from an OpenStreetMap extract (com.codename1.backend.osm.OsmGeocoding), as do Nominatim installations and several hosted services. Results are Place objects delivered to a GeocodeCallback on the event dispatch thread.

Results built from OpenStreetMap data must be credited to "OpenStreetMap contributors" where the user sees them.

  • Class
    Description
    Receives the outcome of a geocoding request.
    A geocoder speaking Nominatim's JSON API: /search?q= for a forward search and /reverse?lat=&lon= for the address at a point.
    One geocoding result: a named place, an address or a street, and where it is.