pelias / pelias/api

emit warning when wrapping coordinates

Open
#1,547 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I was geocoding a spreadsheet today with lat/lon columns the wrong way around.

Pelias assumes the parameters are correct and so 'wraps' the coordinates around the earth until they come in the expected range [-90, +90] [-180 +180]

We should really emit a warning when wrapping occurs to make it clearer that we haven't used the input coordinates verbatim.

This will make it easier for users to detect errors where the axis have been confused.

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 tracing where the API receives and wraps geocoding coordinates into the expected latitude and longitude ranges. Identify the relevant implementation and tests, then verify that wrapping emits a warning while coordinates already in range remain unchanged. The issue names no specific files or tests, so some repository exploration is required.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.