https://github.com/stefanocudini/peliaslite
Minimal Single Service Interface of Pelias Geocoder in Nodejs
https://github.com/stefanocudini/peliaslite
geocoder geocoder-library geocoding geospatial gis pelias
Last synced: 5 days ago
JSON representation
Minimal Single Service Interface of Pelias Geocoder in Nodejs
- Host: GitHub
- URL: https://github.com/stefanocudini/peliaslite
- Owner: stefanocudini
- License: mit
- Created: 2020-11-09T15:24:40.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-16T16:20:14.000Z (over 2 years ago)
- Last Synced: 2025-04-22T23:05:22.227Z (5 days ago)
- Topics: geocoder, geocoder-library, geocoding, geospatial, gis, pelias
- Language: JavaScript
- Homepage: https://opengeo.tech
- Size: 48.8 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PeliasLite
Minimal Single Service Interface of Pelias Geocoder in Nodejs
## Use Cases
- **Testing:** in all those cases where a complete instance of Pelias makes little sense to exist because its use is limited to small tests that do not provide accurate results
- **Small datasets:** the total amount of datasource to import is very limited and an elasticsearch instance would be too expensive for the expected results
- **Customized ranking:** you want to have total control over the raking of the results for particular cases where normal geocoding raking is not important
- **Light instance:** you have very limited resources available and you want to use a single docker container but still have the complete Pelias rest api
## usage
```bash
npm installnpm start
```development mode
```bash
npm run dev
```via Docker
```bash
docker-compose up
```browse: http://localhost:8087/test
## configuration
example of config.yml
```yaml
default_lang: 'en'
min_text_length: 3endpoints:
default:
hostname: remote.geocoder.com
method: GET
port: 443
size: 5
method: 'GET'
headers:
User-Agent: PeliasLite
layer: venueopentripplanner:
hostname: opentripplanner.org
path: /otp/routers/default/geocode?query={{text}}
layer: stops
...other datasources...
```