{"id":21629567,"url":"https://github.com/abrie/us-census-geocoder","last_synced_at":"2026-05-09T03:33:24.788Z","repository":{"id":148468806,"uuid":"294307274","full_name":"abrie/us-census-geocoder","owner":"abrie","description":"Go module and CLI interface to the Census.gov Geocoder REST API.","archived":false,"fork":false,"pushed_at":"2020-09-25T15:59:34.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T23:27:13.441Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/abrie.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":"2020-09-10T04:57:39.000Z","updated_at":"2020-09-25T15:59:36.000Z","dependencies_parsed_at":"2023-05-20T06:45:25.961Z","dependency_job_id":null,"html_url":"https://github.com/abrie/us-census-geocoder","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/abrie%2Fus-census-geocoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrie%2Fus-census-geocoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrie%2Fus-census-geocoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrie%2Fus-census-geocoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abrie","download_url":"https://codeload.github.com/abrie/us-census-geocoder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244306501,"owners_count":20431831,"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-11-25T02:08:03.632Z","updated_at":"2026-05-09T03:33:19.768Z","avatar_url":"https://github.com/abrie.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CLI and Go Wrapper for Census.gov Geocoder \n\nThis repository contains a Go module for interfacing with [Census.gov Geocoder](https://geocoding.geo.census.gov/geocoder) REST API. It also includes a CLI utility for interacting with the geocoder. You may run the CLI via the pre-built Docker image or build it yourself using the Go toolchain.\n\n## Use CLI from Docker Image\n\n- `docker run abriedev/us-census-geocoder:latest`\n\n## Build CLI Locally\n\n- Build the CLI using Make: `make build`\n- Invoke the CLI without parameters for help: `./bin/cli`\n\nResults are written to stdout as JSON.\n\n## Use the API programmatically\n\n- `import (\"github.com/abrie/us-census-geocoder\")`\n\nTwo types of results are available: 'locations' or 'geographies'. Both require a 'benchmark' parameter.\nGeographies takes two additional parameters: 'vintage' parameters, and an (optionally empty) 'layers' parameter.\n\n### Locations\n```go\ncensusgeocoder.SearchOneLineAddressLocations(ctx context, onelineaddress, benchmark string)\ncensusgeocoder.SearchAddressLocations(ctx context, street, city, state, benchmark string)\ncensusgeocoder.SearchByCoordinateLocations(ctx context, x,y float64, benchmark string)\n```\n### Geographies\n\nGeographies require a 'benchmark', 'vintage' and 'layers' parameter. Leave layers as an empty array for default behaviour.\n```go\ncensusgeocoder.SearchOneLineAddressGeographies(ctx context, onelineaddress, benchmark, vintage string, layers []string)\ncensusgeocoder.SearchAddressGeographies(ctx context, street, city, state, benchmark, vintage string, layers []string)\ncensusgeocoder.SearchByCoordinateGeographies(ctx context, x,y float64, benchmark, vintage string, layers[]string)\n```\n\n### Benchmarks and Vintages\n\nA list of available Benchmarks and/or vintages are available to the API:\n```go\ncensusgeocoder.GetBenchmarks()\ncensusgeocoder.GetVintages(benchmark string)\n```\n\n## Technical Details\n\nFor more information about the returned fields, see the [official Census.gov documentation](https://geocoding.geo.census.gov/geocoder/Geocoding_Services_API.pdf).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabrie%2Fus-census-geocoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabrie%2Fus-census-geocoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabrie%2Fus-census-geocoder/lists"}