{"id":40081054,"url":"https://github.com/jrosell/rreversegeocoder","last_synced_at":"2026-01-19T09:07:29.825Z","repository":{"id":183438658,"uuid":"601747415","full_name":"jrosell/rreversegeocoder","owner":"jrosell","description":"The goal of rreversegeocoder is to, given latitude and longitude, find the nearest city.","archived":false,"fork":false,"pushed_at":"2025-06-07T10:03:47.000Z","size":705,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-07T10:27:55.568Z","etag":null,"topics":["geocoder","geocoding","geonames","r","r-geocoding-geocoder","reverse-geocoding"],"latest_commit_sha":null,"homepage":"https://jrosell.github.io/rreversegeocoder/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc-by-4.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jrosell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-02-14T18:25:03.000Z","updated_at":"2025-06-07T10:03:51.000Z","dependencies_parsed_at":"2023-07-24T13:03:33.054Z","dependency_job_id":null,"html_url":"https://github.com/jrosell/rreversegeocoder","commit_stats":null,"previous_names":["jrosell/rreversegeocoder"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jrosell/rreversegeocoder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrosell%2Frreversegeocoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrosell%2Frreversegeocoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrosell%2Frreversegeocoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrosell%2Frreversegeocoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jrosell","download_url":"https://codeload.github.com/jrosell/rreversegeocoder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrosell%2Frreversegeocoder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28565001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["geocoder","geocoding","geonames","r","r-geocoding-geocoder","reverse-geocoding"],"created_at":"2026-01-19T09:07:29.722Z","updated_at":"2026-01-19T09:07:29.796Z","avatar_url":"https://github.com/jrosell.png","language":"R","readme":"\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n# rreversegeocoder\n\n\u003c!-- badges: start --\u003e\n\n\u003c!-- badges: end --\u003e\n\nThe goal of rreversegeocoder is to, given latitude and longitude, find\nthe nearest city in US.\n\nWhy? We get new features for feature engineering that can improve the\nperformance of machine learning models.\n\n## Installation\n\nYou can install the development version of rreversegeocoder from\n[GitHub](https://github.com/jrosell/rreversegeocoder) with:\n\n``` r\npak::pak(\"jrosell/rreversegeocoder\")\n```\n\n## Example\n\nThis is a basic example which shows you how to get all the geoname\ninformation from a given latitude and longitude in US:\n\n``` r\nlibrary(tidyverse)\nlibrary(tidymodels)\nlibrary(rreversegeocoder)\n\ncites \u003c- download_cities_with_population_5000()\n\ninput \u003c- tribble(\n    ~latitude, ~longitude,\n    34.6, -120,\n    34.1, -100\n)\n\noutput \u003c- input |\u003e\n    bind_cols(reverse_geocoder_us_cities_with_population_5000(input)) |\u003e\n    left_join(cites, by = \"geonameid\")\n\nglimpse(output)\n```\n\n\u003cpre\u003e\nRows: 2\nColumns: 21\n$ latitude          \u003cdbl\u003e 34.6, 34.1\n$ longitude         \u003cdbl\u003e -120, -100\n$ geonameid         \u003cchr\u003e \"5397059\", \"4739078\"\n$ name              \u003cchr\u003e \"Solvang\", \"Vernon\"\n$ asciiname         \u003cchr\u003e \"Solvang\", \"Vernon\"\n$ alternatenames    \u003cchr\u003e \"Solvang,Solvang i California,Solvanq,Solveng,solbhya…\n$ geoname_latitude  \u003cdbl\u003e 34.59582, 34.15536\n$ geoname_longitude \u003cdbl\u003e -120.13765, -99.26628\n$ feature_class     \u003cchr\u003e \"P\", \"P\"\n$ feature           \u003cchr\u003e \"PPL\", \"PPLA2\"\n$ country           \u003cchr\u003e \"US\", \"US\"\n$ cc2               \u003cchr\u003e NA, NA\n$ admin1            \u003cchr\u003e \"CA\", \"TX\"\n$ admin2            \u003cchr\u003e \"083\", \"487\"\n$ admin3            \u003cchr\u003e NA, NA\n$ admin4            \u003cchr\u003e NA, NA\n$ population        \u003cdbl\u003e 5741, 10573\n$ elevation         \u003cdbl\u003e 154, 361\n$ dem               \u003cdbl\u003e 152, 361\n$ timezone          \u003cchr\u003e \"America/Los_Angeles\", \"America/Chicago\"\n$ mdate             \u003cdate\u003e 2017-03-09, 2017-03-09\n\u003c/pre\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrosell%2Frreversegeocoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjrosell%2Frreversegeocoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrosell%2Frreversegeocoder/lists"}