Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
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.
Types
interface GeocodeCallback | Receives the outcome of a geocoding request. |
class NominatimGeocoder | A geocoder speaking Nominatim’s JSON API: /search?q= for a forward search and /reverse?lat=&lon= for the address at a point. |
class Place | One geocoding result: a named place, an address or a street, and where it is. |