{"id":18141555,"url":"https://github.com/skjolber/tolltariffen","last_synced_at":"2025-04-06T18:32:50.233Z","repository":{"id":54427049,"uuid":"184878778","full_name":"skjolber/tolltariffen","owner":"skjolber","description":"Norwegian customs code data files","archived":false,"fork":false,"pushed_at":"2022-11-15T23:51:41.000Z","size":1017,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-13T00:29:45.620Z","etag":null,"topics":["norway","public-data","toll"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skjolber.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-04T10:03:52.000Z","updated_at":"2022-09-23T22:38:00.000Z","dependencies_parsed_at":"2022-08-13T15:20:25.528Z","dependency_job_id":null,"html_url":"https://github.com/skjolber/tolltariffen","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skjolber%2Ftolltariffen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skjolber%2Ftolltariffen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skjolber%2Ftolltariffen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skjolber%2Ftolltariffen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skjolber","download_url":"https://codeload.github.com/skjolber/tolltariffen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247530982,"owners_count":20953883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["norway","public-data","toll"],"created_at":"2024-11-01T17:07:36.983Z","updated_at":"2025-04-06T18:32:50.180Z","avatar_url":"https://github.com/skjolber.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/skjolber/tolltariffen.svg)](https://travis-ci.org/skjolber/tolltariffen)\n\n# tolltariffen\n\nThis library hosts a few converters and data files for the Norwegian customs codes:\n\n * 2019\n     * English, Norwegian\n     * Single and full depth. \n\nThe original list is available in PDF and Excel, which are really not very well suited for my (and most people's) applications. So the input Excel file is converted to various JSON files.\n\nBugs, feature suggestions and help requests can be filed with the [issue-tracker].\n \n## Obtain\nThe project is implemented in Java and built using [Maven]. The project is available on the central Maven repository.\n\nExample dependency config:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.skjolber.tolltariffen\u003c/groupId\u003e\n    \u003cartifactId\u003edata\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.4\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n# Usage\nGet the files by downloading them directly from this repository, or use the published artifact.\n\n * full depth (about 600k)\n     * tolltariffen/2019/tolltariffen-en.json\n     * tolltariffen/2019/tolltariffen-no.json\n * single depth (about 160k)\n      * tolltariffen/2019/tolltariffen-en-1.json\n      * tolltariffen/2019/tolltariffen-no-1.json\n\n```java\nInputStream is = ..;\nTollTariffen tollTariffen = TollTariffenBuilder.newBuilder().withInput(is)).build();\n\t\t\nString search = tollTariffen.searchValue(\"01.01.3000\");\n```\n\nfor loading just a subset of the codes, do with\n\n```java\nTollTariffen tollTariffen = TollTariffenBuilder.newBuilder().withCodes(\"01.01\").withInput(is).build();\n```\n\nwhere only top-level codes are supported.\n\n## Details\nThe data structure is 'interesting', with some subcategories not having codes, only descriptions. Basically codes without subcodes are normalized so that they are stored with a single key-value;\n\n```json\n  \"02.05.0000\" : \"Meat of horses, asses, mules or hinnies, fresh, chilled or frozen.\",\n\n```\nwhereas a code which also has subcodes is stored as\n\n```json\n{\n    \"code\" : \"53.09\",\n    \"codes\" : [ array of children ],\n    \"desc\" : \"Woven fabrics of flax.\"\n}\n```\n\nwhere the `code` field is optional. A simple `TollTariffen` tools is available for searching the files.\n\nUse the `TollTariffenTool` in the `generator` project to regenerate the files (this is a manual operation for now). \n\n# Get involved\nIf you have any questions, comments or improvement suggestions, please file an issue or submit a pull-request.\n\n## License\n[Apache 2.0]\n\n# History\n - 1.0.4: Various adjustments\n - 1.0.0: Initial drop\n\n[Apache 2.0]: \t\t\thttp://www.apache.org/licenses/LICENSE-2.0.html\n[issue-tracker]:\t\t\thttps://github.com/skjolber/tolltariffen/issues\n[Maven]:\t\t\t\t\thttp://maven.apache.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskjolber%2Ftolltariffen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskjolber%2Ftolltariffen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskjolber%2Ftolltariffen/lists"}