pelias / pelias/api

Coarse reverse `distance`

Open
#1,696 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
259
Forks
169
Avg merge
6h 15m
Merged PRs (30d)
1

Description

When performing a coarse reverse query (ie. point-in-polygon) the distance property is non-zero:

"distance": 19.011

https://pelias.github.io/compare/#/v1/reverse?layers=coarse&point.lat=-51.651514&point.lon=-58.738304

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the coarse reverse query at the linked Pelias comparison URL and trace how its distance property is calculated and returned. Confirm the expected behavior for point-in-polygon results, then add or update coverage for the reported case so the corrected distance behavior is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.