-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Wrong UN/LOCODEs in predefined base choice #19187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
NetBox merely imports the published UN/LOCODE database. We can update the database as it appears some of these codes have been redefined, but please note that we are strictly limited to using the authoritative database; we will not make any modifications to this data within NetBox. Edit: Direct download links |
This is the "code-list" file (I used the CSV, but the same data is available in all formats):
But our
To get the latter format, you have to look up the country from the country code list, and the subdivision from the subdivision list, and concatenate them together into the format Ideally we should have a management command and a cadence to regularly import this data from the CSV set; but bear in mind that any preexisting data using this choice set will silently change for users if we periodically update from the source files. |
Deployment Type
Self-hosted
NetBox Version
v4.2.3
Python Version
3.12
Steps to Reproduce
Expected Behavior
The description/name of the unlocodes should be correct.
Observed Behavior
Some or maybe many unlocodes in the predefined base choice list are wrong.
For example IT-BLQ (Bolladello, Varese, Italy). It is not Bolladello, it's Bologna.
Same for IT-BSI (Basciano, Teramo, Italy). It is not Basciano, it's Basiglio.
E.g if I search for Basciano:
or Nieuwolda:
The text was updated successfully, but these errors were encountered: