pelias / pelias/spatial

Assign every place a country code

Open
#16 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement question
Dominant language
JavaScript
Stars
32
Forks
8
Avg merge
13m
Merged PRs (30d)
1

Description

It would be ideal if each source dataset contained the ISO country-code for each place, unfortunately, this is rare.

This issue is to investigate a method of ensuring that each place is associated with an ISO code at import-time.

One way this could be achieved is to enforce hierarchies for each place and use that to find the country.

Another way would be to PIP each place as it's imported, but this comes with the complexity of requiring countries (and dependencies) to be imported prior to other data.

We could also consider relaxing the requirement to say that the country code is allowed to be NULL during import but is computed later, after all the data imported via a post-processing script. -it depends on how we intend to use it.

Some advantages to having mandatory country codes:

We would also need to develop a convention for places for which an ISO code is not relevant, just as: ocean, continent, planet

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

No file, test, or entry point is named. Start by locating the import pipeline and how place hierarchies and country data are represented. Done requires a chosen import or post-processing approach, ISO codes for places where applicable, and a convention for places such as oceans, continents, and planets.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.