Pelias API is the HTTP API server for the Pelias geocoding project (v7.7.0). It processes user requests (search, reverse geocode, autocomplete, etc.) and returns GeoJSON results by querying Elasticsearch and other Pelias microservices. Released on npm with monthly-ish releases, it requires Node.js >=12 and on Docker uses Node 20. Key differentiators: open-source using only open data (OpenStreetMap, OpenAddresses, Who's on First), fully modular design with separate services for interpolation, place parsing, and point-in-polygon. Supports cluster mode, deduplication, and configurable search parameters. Currently active.
npm install pelias-apiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a Pelias API server with Elasticsearch configuration and optional default focus point.
Update to Node.js 20 or use pelias/api Docker image tag >=7.0.0.
Remove JSONP usage or implement your own JSONP wrapper. Consider using CORS instead.
Upgrade Elasticsearch to 7.x. In pelias-config set elasticsearch.apiVersion to '7.0'.
Adjust deduplication logic or override if needed. Periods are stripped before comparison.
Set PELIAS_CLUSTER environment variable or use config to enable cluster mode. Test thoroughly.
Kill the existing process (lsof -ti:3100 | xargs kill -9) or change the port in config.
Add 'api': {} to your pelias.json or ensure PELIAS_CONFIG points to a valid config.Start Elasticsearch service (e.g., systemctl start elasticsearch) or update hosts in config.
No dependency data recorded yet.