Skip to content

Commit

Permalink
Added preferred and shortnames lang
Browse files Browse the repository at this point in the history
  • Loading branch information
abdullahdevrel committed Mar 5, 2024
1 parent 52f9acd commit 2624860
Show file tree
Hide file tree
Showing 3 changed files with 679 additions and 308 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

In this repository, I go through some of the ways you can parse and process the location translation / altnames / alternative names / location name in a foreign language database from Geonames.org.

> Please note that this database is in active development.
The alternames database contains geoname_id, language, and the name of the location in that language.

![CSV file](image-1.png)
Expand Down Expand Up @@ -49,6 +51,14 @@ Getting the altname using the included JSON file:
{'pt': 'Oslo', 'en': 'Oslo', 'ko': '오슬로', 'ru': 'Осло', 'ja': 'オスロ', 'ar': 'أوسلو', 'es': 'Oslo', 'zh': '奥斯陆', 'de': 'Oslo', 'fr': 'Oslo'}
```

Aside from the ISO language code, the dataset also contains the `preferred` (preferred or official name) and `shortname` (shortname for the location) values.

Notes / Subjective Decisions:

> This is the beginning of a public database project. So, your opinion matters. Please open an issue to provide feedback.
- Note that for rows where the `preferred` ISO language is `en`, we have removed them as if the `preferred` ISO language is not present, the fallback value should default to English.
- Where multiple entries are made for the same language, we have chosen the first entry. There obviously a better solution for this.

The included notebook and databases can be used with a variety of IPinfo IP databases that include location information.

Expand Down
Binary file modified geoname_alt_names.zip
Binary file not shown.
Loading

0 comments on commit 2624860

Please sign in to comment.