{"id":22940780,"url":"https://github.com/inductivecomputerscience/postnummer","last_synced_at":"2025-04-01T20:36:38.536Z","repository":{"id":144579187,"uuid":"145688289","full_name":"InductiveComputerScience/postnummer","owner":"InductiveComputerScience","description":" Library for computations on norwegian postal codes (postnummer, poststed)","archived":false,"fork":false,"pushed_at":"2018-08-22T13:30:18.000Z","size":462,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T13:27:50.622Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/InductiveComputerScience.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-22T09:40:52.000Z","updated_at":"2018-08-22T13:30:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"4327f12d-6125-4651-8f54-59e8cbbb08db","html_url":"https://github.com/InductiveComputerScience/postnummer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InductiveComputerScience%2Fpostnummer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InductiveComputerScience%2Fpostnummer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InductiveComputerScience%2Fpostnummer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InductiveComputerScience%2Fpostnummer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InductiveComputerScience","download_url":"https://codeload.github.com/InductiveComputerScience/postnummer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246709932,"owners_count":20821298,"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":[],"created_at":"2024-12-14T13:31:02.594Z","updated_at":"2025-04-01T20:36:38.510Z","avatar_url":"https://github.com/InductiveComputerScience.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Norwegian postal codes (postnummer)\nThis project contains a library for computations (validation and postal name lookup) on norwegian postal codes in many programming languages. The library works exactly the same in all implementations:\n\n * Java\n * C\n * C++\n * JavaScript\n * C#\n * PHP\n * Python\n * Visual Basic\n\nNorwegian postal codes is called \"postnummer\" and \"poststed\" in norwegian.\n\nThe library has been made with [progsbase](https://www.progsbase.com), a tool for creating rot-resistant programs that are translatable to many programming languages.\n\nThe library can also be browsed and tested on the [progsbase repository's postnummer page](https://repo.progsbase.com/repoviewer/no.inductive.libraries/postnummer/0.1.1).\n\n![progsbase logo](/docs/images/progsbase-logo.png)\n\nFor more information about progsbase, check out: [progsbase.com](https://www.progsbase.com).\n\n## Usage\n\nThe library has the same interface in all programming languages.\n\n### Validate\n`boolean erGyldigPostnummer(char [] nrString)`\n\nThe function takes a string as input, containing a norwegian postal code.\n\nThe output is a boolean, true if the number is valid and existing and false if not.\n\n### Get postal place (poststed)\n`char [] hentPoststed(char [] nrString, Success feilmelding)`\n\nThe function takes a string as input, containing a postal number (postnummer), and a structure for an error status and message.\n\nThe output is a string with the postal name.\n\nIf the function fails, feilmelding.success is set to false and feilmelding.feilmelding is set to a human readable error message.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finductivecomputerscience%2Fpostnummer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finductivecomputerscience%2Fpostnummer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finductivecomputerscience%2Fpostnummer/lists"}