Builderoom

September 28, 2026

View repo

Provides an HTTP API for the Pelias geocoder, converting between addresses and coordinates and returning results as GeoJSON.

MIT
安装命令(说明)bash
```bash
npm install
```
最小示例代码python
```bash
PELIAS_CONFIG=/path/to/pelias.json npm run start
```

Product facts

Type
API, SDK & Library
Category
Lifestyle & Entertainment › Weather and Maps
Pricing
Open source
License
MIT
Launched
Sep 28, 2026
Listed
Sep 28, 2026
Website
github.com

Overview

GitHubGitHub

Pelias API is the API server for the Pelias project. It handles user HTTP requests, queries Elasticsearch and other Pelias services, and returns results in GeoJSON format.

Pelias itself is a modular, open-source geocoding search engine driven entirely by open data. It converts addresses and place names into geographic coordinates, and can also reverse-geocode coordinates back into specific places and addresses.

Key Capabilities

  • Geocoding and Reverse Geocoding: Converts user-entered place searches into actionable geographic data, or translates geographic data back into real-world locations.
  • GeoJSON Responses: All query results are returned uniformly in GeoJSON format, making them easy to consume directly by front-end or downstream systems.
  • Multi-Service Integration: Auxiliary services such as point-in-polygon, libpostal, placeholder, and interpolation can be connected via configuration files.
  • Flexible Configuration: Supports custom Elasticsearch index names, default focus coordinates, result count limits (minSize, maxSize, defaultSize), weight boosting for specific sources and layers (customBoosts), and automatic discovery of sources and layers.
  • Performance Tuning Options: For example, autocomplete.exclude_address_length excludes address-layer results for overly short queries during autocomplete, reducing retrieval overhead in large-scale address databases.

Runtime Environment

The service is written in JavaScript with no external dependencies other than Node.js. After running npm install, start the service with npm start. Configuration is loaded from a JSON file specified via the PELIAS_CONFIG environment variable.

Use Cases

Ideal for developers or teams who need to self-host a geocoding service or want to perform place searches based on open data. The project is open-sourced under the MIT license, and cloud-based web services are also available through Geocode Earth.

Key features

  • HTTP API Service: Accepts user HTTP requests and returns geocoding results in GeoJSON format.
  • Elasticsearch Queries: Retrieves place and address data by querying an Elasticsearch cluster.
  • Multi-Service Integration: Supports configuring auxiliary services like placeholder, libpostal, pip, and interpolation.
  • Custom Result Counts: Control the number of results per query using minSize, maxSize, and defaultSize.
  • Auto-Discovery of Layers and Sources: Automatically queries Elasticsearch at startup to discover available sources and layers.
  • Custom Boosting: Configure weights for specific sources or layers via customBoosts to influence ranking.
  • Autocomplete Performance Optimization: Set a character length threshold to exclude the address layer for short queries, improving performance.
  • Normalized Confidence Scores: The relativeScores parameter controls whether result confidence scores are normalized.
  • Access Log Configuration: Configure access logs using morgan predefined formats, or disable them entirely.

Releases

Notify me

Initial · Pelias API

Q&A

Does Pelias API have any dependencies besides Node.js?AI-generated
No. As stated in the documentation, Pelias API has no dependencies other than Node.js and can be installed via npm install.
How do I start the service with a custom configuration file?AI-generated
Set the PELIAS_CONFIG environment variable to point to your pelias.json configuration file path, then run npm run start.
What data format does the API return?AI-generated
After processing a user request, the API returns the results in GeoJSON format.
Can I limit the number of results returned by a query?AI-generated
Yes. You can control the range of returned results by configuring minSize (default 1), maxSize (default 40), and defaultSize (default 10).
View repo
Bookmark

This product has no owner yet

It was listed by the platform or its author left. If it is your work, prove your relationship to become the owner.

Claim this product

The product content on this page was translated by AI from the author's original.