api
api copied to clipboard
HTTP API for Pelias Geocoder
In some cases the parent hierarchy contains tokens which are relevant for deduplication. For example if we have a `geonames` record on `layer=locality` with the `name.default="Land Berlin"` and also `parent.locality=["Berlin"]`....
Pelias enforces a 140 character limit for the `?text=` param for securty/performance reasons. Prior to this PR the two methods used to implement this behaviour (namely `String.prototype.length` and `String.prototype.substring`) were...
Hi there, this is the PR for #1567 I kept in mind what @orangejulius says in https://github.com/pelias/api/issues/1567#issuecomment-944391612: > Funnily enough, right now we can have two problems that are almost...
Hi, This is a follow up of https://github.com/pelias/pelias/issues/857. In order to move step by step, I thought that the first one could be to add a `sort` parameter to the...
**Describe the bug** Confidence score is always 1 for all features while subject (`Lekarna` - pharmacy in Slovenian), street name (`Miklošičeva cesta`) and city (`Ljubljana`) are given (and parsed correctly)....
Today I was looking into the scoring of queries for **autocomplete** transit stops and managed to fix some incorrect scoring in some cases: before: ``` /v1/autocomplete?text=stop 2 1) SW 2nd...
### Use-cases I tried to search the little city named [`Vars, Hautes-Alpes, France`](https://www.geonames.org/2970649/vars.html) with a focus point, the request is [`/v1/autocomplete?lang=fr&focus.point.lat=48.03661925338169&focus.point.lon=6.580299229512&text=vars`](https://pelias.github.io/compare/#/v1/autocomplete?lang=fr&focus.point.lat=48.03661925338169&focus.point.lon=6.580299229512&text=vars) (focus point in France) And the current result is...
The existing `helper/diffPlaces::isLayerDifferent()` function provides the ability to deduplicate between disparate layers in certain conditions. It provides an Array called `$layerPreferences` which indicates which layers can be considered synonymous for...
The address `Grolmanstraße 1, 10623, Berlin, Germany` fails for `/v1/search` when searching: [Grolmanstr. 1, 10623, Berlin, Germany](https://pelias.github.io/compare/#/v1/search?text=Grolmanstr.+1%2C+10623%2C+Berlin%2C+Germany). This is an example of a wider bug which effects contracted separable street...
:wave: I did some awesome work for the Pelias project and would love for everyone to have a look at it and provide feedback. #### Here's the reason for this...