{"id":15788381,"url":"https://github.com/mevdschee/postcodes-nl-geo","last_synced_at":"2026-04-24T16:37:23.794Z","repository":{"id":233273022,"uuid":"786398312","full_name":"mevdschee/postcodes-nl-geo","owner":"mevdschee","description":"Dutch postcodes in CSV format (7zip) and MySQL import script (with geo)","archived":false,"fork":false,"pushed_at":"2026-01-15T17:31:17.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-02-05T10:57:44.076Z","etag":null,"topics":["csv-dataset","dataset","mysql","nederland","netherlands","postcode","postcodes"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/mevdschee.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-04-14T10:44:00.000Z","updated_at":"2025-11-01T14:42:39.000Z","dependencies_parsed_at":"2024-04-15T10:46:05.739Z","dependency_job_id":"e83c9275-e4a6-4197-b08f-b68246d9b6a7","html_url":"https://github.com/mevdschee/postcodes-nl-geo","commit_stats":null,"previous_names":["mevdschee/postcodes-nl-geo"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/mevdschee/postcodes-nl-geo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mevdschee%2Fpostcodes-nl-geo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mevdschee%2Fpostcodes-nl-geo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mevdschee%2Fpostcodes-nl-geo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mevdschee%2Fpostcodes-nl-geo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mevdschee","download_url":"https://codeload.github.com/mevdschee/postcodes-nl-geo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mevdschee%2Fpostcodes-nl-geo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32231198,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["csv-dataset","dataset","mysql","nederland","netherlands","postcode","postcodes"],"created_at":"2024-10-04T21:42:00.723Z","updated_at":"2026-04-24T16:37:23.775Z","avatar_url":"https://github.com/mevdschee.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Postcodes NL (Geo)\n\nDutch postcodes in CSV format (7zip) and MySQL import script to allow for address validation in the Netherlands. This geo version contains [RD coordinates](https://nl.wikipedia.org/wiki/Rijksdriehoeksco%C3%B6rdinaten) (rounded to whole meters).\n\nCheck out the [latest release](https://github.com/mevdschee/postcodes-nl-geo/releases).\n\n## Files\n\nThe release contains the following files:\n\n- **`postcodes-nl-geo.7z`**: Dataset in CSV format with 7zip compression\n- **`postcodes-nl-geo.php`**: Script to load the CSV into a MySQL database\n- **`postcodes-nl-geo.sh`**: Script to unpack the 7zip archive and run PHP\n\nNB: The CSV dataset is 470MB but with 7zip compression it is reduced to 38MB.\n\n## Running\n\nConfigure your database in `postcodes-nl-geo.php` and run using:\n\n    bash postcodes-nl-geo.sh\n\nTo run you need:\n\n    sudo apt install 7zip php-cli php-mysql\n\nThis assumes you are using a Debian based Linux distribution.\n\n## Releasing\n\nRelease using:\n\n    bash release.sh\n\nTo release you need:\n\n    sudo apt install 7zip wget php-cli gh\n\nThis uses the Github CLI on Debian Linux.\n\n## Sample data\n\nHere are the first 3 records of the 24.04 release in CSV format:\n\n    straat,huisnummer,huisletter,huistoevoeging,woonplaats,postcode,rd_x,rd_y\n    \"De Ruijterkade\",99,,,Amsterdam,1011AB,122197,487976\n    \"De Ruijterkade\",105,,1,Amsterdam,1011AB,122177,487877\n    \"De Ruijterkade\",105,,2,Amsterdam,1011AB,122177,487877\n\nHere is the SQL for those 3 records (including the table structure):\n\n    CREATE TABLE `postcodes` (\n    `straat` varchar(255) DEFAULT NULL,\n    `huisnummer` varchar(255) DEFAULT NULL,\n    `huisletter` varchar(255) DEFAULT NULL,\n    `huistoevoeging` varchar(255) DEFAULT NULL,\n    `woonplaats` varchar(255) DEFAULT NULL,\n    `postcode` varchar(255) DEFAULT NULL,\n    `rd_x` int(11) DEFAULT NULL,\n    `rd_y` int(11) DEFAULT NULL,\n    KEY `postcode` (`postcode`)\n    ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;\n    \n    INSERT INTO `postcodes` (`straat`, `huisnummer`, `huisletter`, `huistoevoeging`, `woonplaats`, `postcode`, `rd_x`, `rd_y`) VALUES\n    ('De Ruijterkade',\t'99',\tNULL,\tNULL,\t'Amsterdam',\t'1011AB',\t122197,\t487976),\n    ('De Ruijterkade',\t'105',\tNULL,\t'1',\t'Amsterdam',\t'1011AB',\t122177,\t487877),\n    ('De Ruijterkade',\t'105',\tNULL,\t'2',\t'Amsterdam',\t'1011AB',\t122177,\t487877);\n\nNB: The 24.04 release has 9771442 records.\n\n## Credits\n\nThis project loads the large dataset from:\n\n- [github.com/mevdschee/bagconv-docker](https://github.com/mevdschee/bagconv-docker)\n\nWhich is a fork of:\n\n- [github.com/berthubert/bagconv](https://github.com/berthubert/bagconv)\n\nSee also [this blog post](https://berthub.eu/articles/posts/dutch-postcode-and-building-database/) by Bert Hubert.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmevdschee%2Fpostcodes-nl-geo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmevdschee%2Fpostcodes-nl-geo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmevdschee%2Fpostcodes-nl-geo/lists"}