{"id":13763868,"url":"https://github.com/estin/geosuggest","last_synced_at":"2026-03-17T21:36:01.014Z","repository":{"id":147121725,"uuid":"374114091","full_name":"estin/geosuggest","owner":"estin","description":"suggest by name or find nearest by coordinates cities","archived":false,"fork":false,"pushed_at":"2026-02-02T11:31:49.000Z","size":288,"stargazers_count":11,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-02-03T00:57:27.306Z","etag":null,"topics":["geocoding","http","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/estin.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":"2021-06-05T12:55:19.000Z","updated_at":"2026-02-02T11:31:52.000Z","dependencies_parsed_at":"2024-06-23T09:45:12.082Z","dependency_job_id":"55cc4be3-99cb-4820-921b-6325fb4bc580","html_url":"https://github.com/estin/geosuggest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/estin/geosuggest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estin%2Fgeosuggest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estin%2Fgeosuggest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estin%2Fgeosuggest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estin%2Fgeosuggest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/estin","download_url":"https://codeload.github.com/estin/geosuggest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estin%2Fgeosuggest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30632054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"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":["geocoding","http","rust"],"created_at":"2024-08-03T15:01:00.873Z","updated_at":"2026-03-17T21:36:00.993Z","avatar_url":"https://github.com/estin.png","language":"Rust","funding_links":[],"categories":["Built with Sycamore"],"sub_categories":["Blog Posts"],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cp\u003e\u003ch1\u003egeosuggest\u003c/h1\u003e \u003c/p\u003e\n  \u003cp\u003e\u003cstrong\u003eLibrary/Service to suggest and to find nearest by coordinates cities\u003c/strong\u003e\u003c/p\u003e\n  \u003cp\u003e\u003c/p\u003e\n\u003c/div\u003e\n\n[Live demo](https://geosuggest.etatarkin.ru/) with [sources](https://github.com/estin/geosuggest/tree/master/geosuggest-demo)\n\nMain features:\n - library or service modes\n - build index by free gazetteer data from [geonames.org](https://www.geonames.org/)\n - suggest city by name\n - find nearest city by coordinates\n - MaxMind GeoIP2(Lite) city database support\n - multi-language (based on configured index options)\n - simple REST http [api](https://geosuggest.etatarkin.ru/swagger)\n - no external services used\n\n### Based on:\n - [strsim](https://crates.io/crates/strsim)\n - [kiddo](https://crates.io/crates/kiddo)\n - [geoip2](https://crates.io/crates/geoip2)\n - [rkyv](https://crates.io/crates/rkyv)\n - [ntex](https://crates.io/crates/ntex)\n\n\n## Library\n\nCrate usage [example](https://github.com/estin/geosuggest/blob/master/geosuggest-examples/src/simple.rs)\n\n```console\n$ cargo run -p geosuggest-examples --release --bin simple\n```\n\n\n## Service\n\nInstall from sources (preferred).\n\n```console\n$ git clone https://github.com/estin/geosuggest.git\n$ cd geosuggest\n$ cargo build --release\n```\n\nBuild index file\n\n```console\n$ cargo run -p geosuggest-utils --bin geosuggest-build-index --release --features=cli,tracing -- \\\n    from-urls \\\n    --languages=ru,uk,be,zh,ja \\\n    --output=/tmp/geosuggest-index.rkyv\n```\n\nRun\n\n```console\n$ GEOSUGGEST__INDEX_FILE=/tmp/geosuggest-index.rkyv \\\n    GEOSUGGEST__HOST=127.0.0.1 \\\n    GEOSUGGEST__PORT=8080 \\\n    GEOSUGGEST__URL_PATH_PREFIX=\"/\" \\\n    cargo run -p geosuggest --bin geosuggest --release\n```\n\nCheck\n\n```console\n$ curl -s \"http://127.0.0.1:8080/api/city/suggest?pattern=Voronezh\u0026limit=1\" | jq\n```\n\n```json\n{\n  \"items\": [\n    {\n      \"id\": 472045,\n      \"name\": \"Voronezh\",\n      \"country\": {\n        \"id\": 2017370,\n        \"code\": \"RU\",\n        \"name\": \"Russia\"\n      },\n      \"admin_division\": {\n        \"id\": 472039,\n        \"code\": \"RU.86\",\n        \"name\": \"Voronezj\"\n      },\n      \"admin2_division\": null,\n      \"timezone\": \"Europe/Moscow\",\n      \"latitude\": 51.67204,\n      \"longitude\": 39.1843,\n      \"population\": 848752\n    }\n  ],\n  \"time\": 24\n}\n```\n\nSee also demo [Dockerfile](https://github.com/estin/geosuggest/blob/master/geosuggest-demo/Dockerfile)\n\n## Test\n\n```console\n$ cargo test --workspace\n```\n\n## License\n\nThis project is licensed under\n\n* MIT license ([LICENSE](LICENSE) or [http://opensource.org/licenses/MIT](http://opensource.org/licenses/MIT))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Festin%2Fgeosuggest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Festin%2Fgeosuggest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Festin%2Fgeosuggest/lists"}