{"id":13857989,"url":"https://github.com/GIScience/openrouteservice-r","last_synced_at":"2025-07-13T23:31:02.099Z","repository":{"id":83057754,"uuid":"129415209","full_name":"GIScience/openrouteservice-r","owner":"GIScience","description":":globe_with_meridians: query openrouteservice API from R","archived":false,"fork":false,"pushed_at":"2025-02-08T00:54:33.000Z","size":4383,"stargazers_count":108,"open_issues_count":22,"forks_count":23,"subscribers_count":17,"default_branch":"main","last_synced_at":"2025-06-24T10:18:33.565Z","etag":null,"topics":["api","directions","gis","giscience","isochrones","openrouteservice","openstreetmap","pois","r","routing","sdk"],"latest_commit_sha":null,"homepage":"https://giscience.github.io/openrouteservice-r/","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/GIScience.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-04-13T14:42:47.000Z","updated_at":"2025-03-05T16:25:21.000Z","dependencies_parsed_at":"2025-04-13T08:01:39.922Z","dependency_job_id":null,"html_url":"https://github.com/GIScience/openrouteservice-r","commit_stats":{"total_commits":135,"total_committers":5,"mean_commits":27.0,"dds":0.03703703703703709,"last_synced_commit":"b840b4ae4cdb283cb82d33fc57520144d5b3a825"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/GIScience/openrouteservice-r","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GIScience%2Fopenrouteservice-r","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GIScience%2Fopenrouteservice-r/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GIScience%2Fopenrouteservice-r/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GIScience%2Fopenrouteservice-r/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GIScience","download_url":"https://codeload.github.com/GIScience/openrouteservice-r/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GIScience%2Fopenrouteservice-r/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265220204,"owners_count":23729773,"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","directions","gis","giscience","isochrones","openrouteservice","openstreetmap","pois","r","routing","sdk"],"created_at":"2024-08-05T03:01:53.314Z","updated_at":"2025-07-13T23:31:01.613Z","avatar_url":"https://github.com/GIScience.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: rmarkdown::md_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/GIScience/openrouteservice-r/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/GIScience/openrouteservice-r/actions/workflows/R-CMD-check.yaml)\n[![Coverage Status](https://img.shields.io/codecov/c/github/GIScience/openrouteservice-r/master.svg)](https://app.codecov.io/github/GIScience/openrouteservice-r?branch=master)\n[![lifecycle](https://lifecycle.r-lib.org/articles/figures/lifecycle-stable.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)\n[![CRAN checks](https://badges.cranchecks.info/summary/openrouteservice.svg)](https://cran.r-project.org/web/checks/check_results_openrouteservice.html)\n[![CRAN release](https://www.r-pkg.org/badges/version-ago/openrouteservice)](https://cran.r-project.org/package=openrouteservice)\n[![CRAN downloads](https://cranlogs.r-pkg.org:443/badges/openrouteservice)](https://cran.r-project.org/package=openrouteservice)\n\u003c!-- badges: end --\u003e\n\n# openrouteservice R client\n\n```{r readme, echo = FALSE, results = 'asis'}\nlines = readLines(\"vignettes/openrouteservice.Rmd\")\nids = grep(\"\u003c!-- README (START|END) --\u003e\", lines) + c(1, -1)\nreadme = lines[do.call(\":\", as.list(ids))]\nreadme = gsub(\"^#(#+)(.*)\", \"\\\\1\\\\2\", readme)\ncat(knitr::knit_child(text=readme, quiet=TRUE))\n```\n\n## Get started\n\nSee the package\n[vignette](https://giscience.github.io/openrouteservice-r/articles/openrouteservice.html)\nfor an overview of the offered functionality.\n\n## Local ORS instance\n\nThe default is to fire any requests against the free public services at\n\u003capi.openrouteservice.org\u003e. In order to query a different openrouteservice\ninstance, say a local one, set\n\n```{r openrouteservice.url, eval=FALSE}\noptions(openrouteservice.url = \"http://localhost:8082/ors\")\n```\n\nIf necessary, endpoint configuration can be further customized through\n`openrouteservice.paths` which specifies a named list of paths. The defaults are\nequivalent of having\n\n```{r openrouteservice.paths, echo=FALSE, comment=NA}\nopts_str \u003c- \"options(openrouteservice.paths = %s)\"\nnch \u003c- nchar(opts_str) + 1L\nors_paths \u003c- unlist(strsplit(deparse(openrouteservice:::ors_path(), 500L), \",\"))\nindent \u003c- paste0(rep(\" \", nch), collapse=\"\")\ncat(sprintf(opts_str, paste0(ors_paths, collapse = paste(\",\", indent, sep=\"\\n\"))))\noptions(openrouteservice.path = list(directions = \"v2/directions\"))\n```\n\n## Package news\n\n```{r news, echo = FALSE, results = 'asis'}\nlines = readLines(\"NEWS.md\")\nlines = gsub(\"^# openrouteservice (.*)\", \"# version \\\\1\", lines)\nversions = grep(\"^# \", lines)\n## select only n latest news\nn = 4\nfrom = 1\nto = if (length(versions) \u003e n) versions[n+1]-1 else length(lines)\nnews = lines[from:to]\nnews = gsub(\"^(#+)(.*)\", \"##\\\\1\\\\2\", news)\ncat(paste(news, collapse = \"\\n\"))\n```\n\n## Publications using openrouteservice R package\n\nPlease feel free to reach out if you would like to have your work added to the list below.\n\n```{r references, echo = FALSE, results = 'asis'}\nlines = readLines(\"references.md\")\nlines = gsub('^\u003cspan class=\"csl-left-margin\"\u003e', '', lines)\nlines = gsub('^\u003c/span\u003e\u003cspan class=\"csl-right-inline\"\u003e', '', lines)\nlines = gsub(' \u003c/span\u003e$', '', lines)\ncat(paste(lines, collapse = \"\\n\"))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGIScience%2Fopenrouteservice-r","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGIScience%2Fopenrouteservice-r","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGIScience%2Fopenrouteservice-r/lists"}