{"id":16708307,"url":"https://github.com/rcarto/photon","last_synced_at":"2025-03-21T20:32:49.896Z","repository":{"id":56646696,"uuid":"41798131","full_name":"rCarto/photon","owner":"rCarto","description":":dart: R Interface to the Photon API / Interface entre R et l'API de photon  ","archived":false,"fork":false,"pushed_at":"2023-10-13T09:39:24.000Z","size":24,"stargazers_count":47,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-18T04:51:23.360Z","etag":null,"topics":["geocoder","geocoding","photon","photon-api","r"],"latest_commit_sha":null,"homepage":"http://rgeomatic.hypotheses.org/?p=622","language":"R","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/rCarto.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}},"created_at":"2015-09-02T11:49:23.000Z","updated_at":"2025-01-12T14:28:18.000Z","dependencies_parsed_at":"2022-08-15T22:31:34.521Z","dependency_job_id":"fc67cd0d-40cd-4d1f-9c48-191c78d95ccb","html_url":"https://github.com/rCarto/photon","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/rCarto%2Fphoton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rCarto%2Fphoton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rCarto%2Fphoton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rCarto%2Fphoton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rCarto","download_url":"https://codeload.github.com/rCarto/photon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244866053,"owners_count":20523455,"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":["geocoder","geocoding","photon","photon-api","r"],"created_at":"2024-10-12T19:43:38.143Z","updated_at":"2025-03-21T20:32:49.571Z","avatar_url":"https://github.com/rCarto.png","language":"R","readme":"[![Project Status: Abandoned – Initial development has started, but there has not yet been a stable, usable release; the project has been abandoned and the author(s) do not intend on continuing development.](https://www.repostatus.org/badges/latest/abandoned.svg)](https://www.repostatus.org/#abandoned)\n*The project has been abandoned and the author do not intend on continuing development.*\n\n\n# R Interface to the Photon API \n\nPhoton is an open source geocoder built for OpenStreetMap data and based on elasticsearch. \nThis package allows to query a photon API and get the results in a data frame.\n\nPhoton web site: https://photon.komoot.io/    \nPhoton source code: https://github.com/komoot/photon\n\n## Install Instructions\n\u003cpre\u003e\u003ccode\u003erequire(devtools)  \ndevtools::install_github(repo = 'rCarto/photon')  \n\u003c/code\u003e\u003c/pre\u003e\n\n## Usage\n### `geocode()`\n\u003cpre\u003e\u003ccode\u003eaddress \u003c- c(\"19 rue Michel Bakounine, 29600 Morlaix, France\",\n             \"5 rue Proudhon, 34130 Mauguio France\",\n             \"2 Emma Goldmanweg, Tilburg, Netherlands\",\n             \"36 Strada Panait Israti, Bucarest, Romania\")\nplace \u003c- geocode(address, limit = 1, key = \"place\")\nplace\n\u003c/code\u003e\u003c/pre\u003e\n\u003csmall\u003e\n\n|location                                       |osm_id     |osm_type |name |housenumber |street                |postcode |city      |state         |country         |osm_key |osm_value |       lon|      lat|msg |\n|:----------------------------------------------|:----------|:--------|:----|:-----------|:---------------------|:--------|:---------|:-------------|:---------------|:-------|:---------|---------:|--------:|:---|\n|19 rue Michel Bakounine, 29600 Morlaix, France |3241060871 |N        |NA   |19          |Rue Michel Bakounine  |29600    |Morlaix   |Brittany      |France          |place   |house     | -3.816435| 48.59041|NA  |\n|5 rue Proudhon, 34130 Mauguio France           |3700168030 |N        |NA   |5           |Rue Proudhon          |34130    |Mauguio   |Occitania     |France          |place   |house     |  4.008024| 43.61583|NA  |\n|2 Emma Goldmanweg, Tilburg, Netherlands        |2844596196 |N        |NA   |2           |Emma Goldmanweg       |5032MN   |Tilburg   |North Brabant |The Netherlands |place   |house     |  5.041361| 51.53783|NA  |\n|36 Strada Panait Israti, Bucarest, Romania     |2838254765 |N        |NA   |36          |Strada Panait Istrati |011547   |Bucharest |NA            |Romania         |place   |house     | 26.064266| 44.46227|NA  |\n\n\u003c/small\u003e\n\u003cpre\u003e\u003ccode\u003egeocode(\"Montreuil\", limit = 1)\u003c/code\u003e\u003c/pre\u003e\n\u003csmall\u003e\n\n|location  |osm_id  |osm_type |name      |housenumber |street |postcode |city |state                          |country |osm_key |osm_value |      lon|      lat|msg |\n|:---------|:-------|:--------|:---------|:-----------|:------|:--------|:----|:------------------------------|:-------|:-------|:---------|--------:|--------:|:---|\n|Montreuil |2622231 |R        |Montreuil |NA          |NA     |62170    |NA   |Nord-Pas-de-Calais and Picardy |France  |place   |village   | 1.764228| 50.46375|NA  |\n\n\u003c/small\u003e\n\n\u003cpre\u003e\u003ccode\u003egeocode(\"Montreuil\", locbias = c(2.4, 48.9), limit = 1)\u003c/code\u003e\u003c/pre\u003e\n\u003csmall\u003e\n\n|location  |osm_id |osm_type |name      |housenumber |street |postcode |city |state         |country |osm_key |osm_value |      lon|      lat|msg |\n|:---------|:------|:--------|:---------|:-----------|:------|:--------|:----|:-------------|:-------|:-------|:---------|--------:|--------:|:---|\n|Montreuil |129423 |R        |Montreuil |NA          |NA     |93100    |NA   |Ile-de-France |France  |place   |city      | 2.441218| 48.86234|NA  |\n\n\u003c/small\u003e\n\n\u003cpre\u003e\u003ccode\u003e# with a typical local install of photon\nplace \u003c- geocode(address, limit = 1, key = \"place\", server = \"http://0.0.0.0:2322/\")\n\u003c/code\u003e\u003c/pre\u003e\n\n### `reverse()`\n\u003cpre\u003e\u003ccode\u003eaddress \u003c- c(\"19 rue Michel Bakounine, 29600 Morlaix, France\",\n             \"5 rue Proudhon, 34130 Mauguio France\",\n             \"2 Emma Goldmanweg, Tilburg, Netherlands\",\n             \"36 Strada Panait Israti, Bucarest, Romania\")\nplace \u003c- geocode(address, limit = 1, key = \"place\")\nplace2 \u003c- reverse(x = place$lon, y = place$lat)\nplace2\u003c/code\u003e\u003c/pre\u003e\n\u003csmall\u003e\n\n|         x|        y|osm_id     |osm_type |name |housenumber |street                |postcode |city      |state         |country         |osm_key |osm_value |       lon|      lat|msg |\n|---------:|--------:|:----------|:--------|:----|:-----------|:---------------------|:--------|:---------|:-------------|:---------------|:-------|:---------|---------:|--------:|:---|\n| -3.816435| 48.59041|3241060871 |N        |NA   |19          |Rue Michel Bakounine  |29600    |Morlaix   |Brittany      |France          |place   |house     | -3.816435| 48.59041|NA  |\n|  4.008024| 43.61583|3700168030 |N        |NA   |5           |Rue Proudhon          |34130    |Mauguio   |Occitania     |France          |place   |house     |  4.008024| 43.61583|NA  |\n|  5.041361| 51.53783|2844596196 |N        |NA   |2           |Emma Goldmanweg       |5032MN   |Tilburg   |North Brabant |The Netherlands |place   |house     |  5.041361| 51.53783|NA  |\n| 26.064266| 44.46227|2838254765 |N        |NA   |36          |Strada Panait Istrati |011547   |Bucharest |NA            |Romania         |place   |house     | 26.064266| 44.46227|NA  |\n\n\u003c/small\u003e\n\u003cpre\u003e\u003ccode\u003eidentical(place[,2:12], place2[,3:13])\n\u003eTRUE\n\u003c/code\u003e\u003c/pre\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frcarto%2Fphoton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frcarto%2Fphoton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frcarto%2Fphoton/lists"}