{"id":16578094,"url":"https://github.com/glynnbird/postcodelookup","last_synced_at":"2026-05-18T04:04:21.688Z","repository":{"id":138315822,"uuid":"257599869","full_name":"glynnbird/postcodelookup","owner":"glynnbird","description":"A library to allow fast geocoding of UK postcodes","archived":false,"fork":false,"pushed_at":"2020-04-21T21:05:35.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-13T16:45:51.517Z","etag":null,"topics":["geocode","nodejs","postcode","uk"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/glynnbird.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-04-21T13:12:02.000Z","updated_at":"2020-04-22T09:28:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"4510213d-c46e-498c-a313-6736e365b2d2","html_url":"https://github.com/glynnbird/postcodelookup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/glynnbird/postcodelookup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glynnbird%2Fpostcodelookup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glynnbird%2Fpostcodelookup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glynnbird%2Fpostcodelookup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glynnbird%2Fpostcodelookup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glynnbird","download_url":"https://codeload.github.com/glynnbird/postcodelookup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glynnbird%2Fpostcodelookup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016101,"owners_count":26085802,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["geocode","nodejs","postcode","uk"],"created_at":"2024-10-11T22:13:05.922Z","updated_at":"2025-10-13T16:45:56.125Z","avatar_url":"https://github.com/glynnbird.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# postcodelookup\n\nA simple library that allows a postcode to be converted into its\nlatitude and longitude.\n\nThis repository contains the code to:\n\n- convert the Office for National Statistics postcode file into suitable data files.\n- lookup a given postcode to provide its latitude \u0026 longitude.\n\nNo databases, just files.\n\n## Prepare\n\n```sh\ngit clone https://github.com/glynnbird/postcodelookup.git\ncd postcodelookup\nnpm install\n```\n\n## Setup\n\nDownload the latest postcode lookup data from the [Office for National Statistics](https://geoportal.statistics.gov.uk/datasets/4f71f3e9806d4ff895996f832eb7aacf).\n\nUnzip the download and look in the directory structure for a large CSV file e.g. `NSPL_FEB_2020_UK/Data/NSPL_FEB_2020_UK.csv` - we need this file for our setup process.\n\nRun `setup.js` passing in the path to that CSV file to do a one-off setup process e.g:\n\n```sh\n./setup.js ~/Downloads/NSPL_FEB_2020_UK/Data/NSPL_FEB_2020_UK.csv\n```\n\n## Use\n\nIn your code:\n\n```js\nconst lookup = require('.')\nlookup('w1a1aa')\n// { pc: 'W1A 1AA', lat: '51.518561', long: '-0.143799' }\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglynnbird%2Fpostcodelookup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglynnbird%2Fpostcodelookup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglynnbird%2Fpostcodelookup/lists"}