{"id":22337971,"url":"https://github.com/fallaciousreasoning/nz-place-search","last_synced_at":"2025-03-26T08:24:53.419Z","repository":{"id":81320742,"uuid":"285754721","full_name":"fallaciousreasoning/nz-place-search","owner":"fallaciousreasoning","description":"A tool for searching OSM natural places in NZ.","archived":false,"fork":false,"pushed_at":"2024-02-03T05:25:59.000Z","size":11604,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T09:46:08.399Z","etag":null,"topics":["api","linz","new","nz","osm","osm-data","places-api","search","topo","zealand"],"latest_commit_sha":null,"homepage":"https://nz-places.now.sh/api/search?query=Aor","language":"TypeScript","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/fallaciousreasoning.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}},"created_at":"2020-08-07T06:25:36.000Z","updated_at":"2024-01-08T23:30:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"4f4dd3a7-7bb5-4a6d-a882-eb794fe9901b","html_url":"https://github.com/fallaciousreasoning/nz-place-search","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fallaciousreasoning%2Fnz-place-search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fallaciousreasoning%2Fnz-place-search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fallaciousreasoning%2Fnz-place-search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fallaciousreasoning%2Fnz-place-search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fallaciousreasoning","download_url":"https://codeload.github.com/fallaciousreasoning/nz-place-search/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245616660,"owners_count":20644692,"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":["api","linz","new","nz","osm","osm-data","places-api","search","topo","zealand"],"created_at":"2024-12-04T06:12:41.300Z","updated_at":"2025-03-26T08:24:53.385Z","avatar_url":"https://github.com/fallaciousreasoning.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NZ Place Search\n\nThis repository provides a simple tool for searching places in NZ.\n\n## Live version\n\nA live test site is available at https://nz-places.now.sh\n\n(the API is available at https://nz-places.now.sh/api/search?query=Aoraki)\n\n## Run a local search server\n`npm run start`\n\nThe server should be accessible on `localhost:3000`.\n\n## Querying\n\nQuery the server at `/api/search/query={query}`.\n\nFor example:\n\nQuerying `http://localhost:3000/api/search?query=Aoraki` will result in the following json:\n\n```json\n[\n    {\n        \"gazId\": \"26004\",\n        \"name\": \"Aoraki/Mount Cook\",\n        \"lon\": \"170.141926\",\n        \"lat\": \"-43.595348\",\n        \"type\": \"hill\"\n    },\n    {\n        \"gazId\": \"26005\",\n        \"name\": \"Aoraki/Mount Cook\",\n        \"lon\": \"170.098209\",\n        \"lat\": \"-43.735107\",\n        \"type\": \"town\"\n    },\n    {\n        \"gazId\": \"48301\",\n        \"name\": \"Aoraki/Mount Cook National Park\",\n        \"lon\": \"170.285431\",\n        \"lat\": \"-43.599748\",\n        \"type\": \"national park\"\n    },\n    {\n        \"osmId\": 2625064349,\n        \"name\": \"Aoraki / Mount Cook\",\n        \"lat\": -43.5950017,\n        \"lon\": 170.1421677,\n        \"type\": \"peak\"\n    }\n]\n```\n\n## Update place data\n1. rm `data/osm_natural_nz_places.json`\n2. `npm run update-data` to refetch the data from OSM.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffallaciousreasoning%2Fnz-place-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffallaciousreasoning%2Fnz-place-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffallaciousreasoning%2Fnz-place-search/lists"}