pelias / pelias/api

libpostal label 'state'

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

Nobody has claimed this yet.

bug
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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.