@nexgen-os/nominatim
v0.4.2
Published
Nominatim (OpenStreetMap) as a Nexgen OS geocoder.
Readme
@nexgen-os/nominatim — OpenStreetMap geocoder
An address to a point and a point to an address on Nominatim, worldwide, with the ISO 3166-2 region. Source nominatim. MIT; the data is OpenStreetMap's, under the ODbL. The public instance asks for a user agent that names the application and one request per second; an installation running its own Nominatim may give any base URL.
import { nominatim } from '@nexgen-os/nominatim';
const geocoder = nominatim({ userAgent: 'my-app ([email protected])' });
const [place] = await geocoder.search('Rue de la Loi 12, Bruxelles');The place is the standard shape of @nexgen-os/core (address, WGS 84 point,
precision, source); placeFields(place) gives the place columns of participants it fills.
Decision 0009.
