libpostal label 'state'
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 259
- Forks
- 168
- Avg merge
- 6h 15m
- Merged PRs (30d)
- 1
Description
We had a report that the parsed_text portion of the geojson response can contain the label state instead of region which is the nomenclature used in WOF.
Looking at the code, we seem to map all other fields across but not state, I'm unsure if this is a feature or a bug, but would require going through the code and checking for occurrences before changing it.
https://github.com/pelias/api/blob/master/controller/libpostal.js#L18
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
Inspect controller/libpostal.js around line 18 and search the codebase for occurrences of the state and region labels. Confirm how libpostal fields are mapped into the parsed_text GeoJSON response, then verify that the response uses the WOF region nomenclature consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100