emit warning when wrapping coordinates
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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