# R

**URL:** https://ask.openrouteservice.org/c/sdks/r/16.md

[Latest](https://ask.openrouteservice.org/latest.md) · [Categories](https://ask.openrouteservice.org/categories.md)

---

## [About the R category](https://ask.openrouteservice.org/t/about-the-r-category/25)

<div class="topic-metadata">

**Author:** [@openrouteservice](https://ask.openrouteservice.org/u/openrouteservice)\
**Replies:** 0

</div>

Questions concerning interfacing ORS from R/Shiny, in particular by using the openrouteservice R package.

---

## [Cannot get smoothing option to work in ors\_isochrone in R](https://ask.openrouteservice.org/t/cannot-get-smoothing-option-to-work-in-ors-isochrone-in-r/7301)

<div class="topic-metadata">

**Author:** [@ajo1993](https://ask.openrouteservice.org/u/ajo1993)\
**Replies:** 1\
**Last updated:** [May 12, 2025, 8:53am UTC](https://ask.openrouteservice.org/t/cannot-get-smoothing-option-to-work-in-ors-isochrone-in-r/7301 "2025-05-12T08:53:54Z")

</div>

Hello, I am having difficulty using the “smoothing” option in ors\_isochrones using the ORS API in R. I didn’t want to open an issue in Github as I read that this is the right space for questions. Hopefully that I unders…

---

## [OpenRouteService Matrix API: ‘6004 Request Parameters Exceed Server Limits’ Even When Under 3,500 Routes](https://ask.openrouteservice.org/t/openrouteservice-matrix-api-6004-request-parameters-exceed-server-limits-even-when-under-3-500-routes/7096)

<div class="topic-metadata">

**Author:** [@ka88](https://ask.openrouteservice.org/u/ka88)\
**Replies:** 6\
**Last updated:** [April 3, 2025, 1:25pm UTC](https://ask.openrouteservice.org/t/openrouteservice-matrix-api-6004-request-parameters-exceed-server-limits-even-when-under-3-500-routes/7096 "2025-04-03T13:25:17Z")

</div>

I am using OpenRouteService (ORS) Matrix API in R to compute travel times between grid centroids (origins) and hospitals (destinations). However, I keep encountering the error: Error: Openrouteservice API request failed…

---

## [Calling ors\_pois in R](https://ask.openrouteservice.org/t/calling-ors-pois-in-r/6495)

<div class="topic-metadata">

**Author:** [@servidor](https://ask.openrouteservice.org/u/servidor)\
**Replies:** 3\
**Last updated:** [September 19, 2024, 3:18pm UTC](https://ask.openrouteservice.org/t/calling-ors-pois-in-r/6495 "2024-09-19T15:18:35Z")

</div>

Hi In R, I’m trying to get the POI inside a defined box so I can pass then as markers (add\_markers) ors\_pois(geometry = list(bbox = list(c(-90.5158552, 14.6012396), c(-90.51270092658864,14.596370217083651)), buffer …

---

## [How to get road surface information for my route](https://ask.openrouteservice.org/t/how-to-get-road-surface-information-for-my-route/6301)

<div class="topic-metadata">

**Author:** [@Gashakamba](https://ask.openrouteservice.org/u/Gashakamba)\
**Replies:** 8\
**Last updated:** [July 15, 2024, 11:39am UTC](https://ask.openrouteservice.org/t/how-to-get-road-surface-information-for-my-route/6301 "2024-07-15T11:39:25Z")

</div>

I am using ORS public API to get an optimal route between my home-base location to many destinations. I am getting both the optimal itinerary (which destination to visit first, then second, etc) and the actual geometry o…

---

## [Using ors\_optimization command in R](https://ask.openrouteservice.org/t/using-ors-optimization-command-in-r/5429)

<div class="topic-metadata">

**Author:** [@bjscheffer](https://ask.openrouteservice.org/u/bjscheffer)\
**Replies:** 1\
**Last updated:** [November 2, 2023, 2:08pm UTC](https://ask.openrouteservice.org/t/using-ors-optimization-command-in-r/5429 "2023-11-02T14:08:11Z")

</div>

I want to use the ors\_optimization command in R on a large last-mile delivery dataset (from China). However, I am looking for some example code for optimizing a route with one origin, multiple destinations with either th…

---

## [Set \`radiuses\` parameter in R](https://ask.openrouteservice.org/t/set-radiuses-parameter-in-r/3344)

<div class="topic-metadata">

**Author:** [@B3nEIs](https://ask.openrouteservice.org/u/B3nEIs)\
**Replies:** 2\
**Last updated:** [November 25, 2021, 1:59pm UTC](https://ask.openrouteservice.org/t/set-radiuses-parameter-in-r/3344 "2021-11-25T13:59:22Z")

</div>

Hello Team Openrouteservice, Thank you for your really useful ors service! I would like to change the radiuses parameter for R ors\_optimization(). Could you help me with some example code? I can’t figure out how to p…

---

## [Openrouteservice for 4.0](https://ask.openrouteservice.org/t/openrouteservice-for-4-0/2333)

<div class="topic-metadata">

**Author:** [@seabass20](https://ask.openrouteservice.org/u/seabass20)\
**Replies:** 1\
**Last updated:** [November 30, 2020, 8:52am UTC](https://ask.openrouteservice.org/t/openrouteservice-for-4-0/2333 "2020-11-30T08:52:53Z")

</div>

Hi, After using openrouteservice for several months without a hitch in R, I recently upgraded to the newest version of R (4.0.3). I cannot, however, install the openrouteservice package while using the newest version of…

---

## [Getting error in Coordinates :Error in request(headers = c(..., .headers)) : is.character(headers) is not TRUE](https://ask.openrouteservice.org/t/getting-error-in-coordinates-error-in-request-headers-c-headers-is-character-headers-is-not-true/1362)

<div class="topic-metadata">

**Author:** [@DJSUBHAOO7](https://ask.openrouteservice.org/u/DJSUBHAOO7)\
**Replies:** 10\
**Last updated:** [February 18, 2020, 12:35pm UTC](https://ask.openrouteservice.org/t/getting-error-in-coordinates-error-in-request-headers-c-headers-is-character-headers-is-not-true/1362 "2020-02-18T12:35:41Z")

</div>

coordinates \<- data.frame(lon = c(8.34234, 8.34423), lat = c(48.23424, 48.26424)) route\<-ors\_directions(coordinates, profile = ors\_profile(), format = c(“geojson”),api\_key = api, output = c(“sf”),)

---

## [Isochrones unequal range/interval](https://ask.openrouteservice.org/t/isochrones-unequal-range-interval/757)

<div class="topic-metadata">

**Author:** [@namenick42](https://ask.openrouteservice.org/u/namenick42)\
**Replies:** 2\
**Last updated:** [July 18, 2019, 1:53pm UTC](https://ask.openrouteservice.org/t/isochrones-unequal-range-interval/757 "2019-07-18T13:53:05Z")

</div>

Hi there, I’m using the isochrones function from R to create coverage profiles for fire engines. A problem i am facing is the that the output at the end of the line is response time. That is dispatch time + turn out tim…

---

## [Population withing Isochrone data](https://ask.openrouteservice.org/t/population-withing-isochrone-data/722)

<div class="topic-metadata">

**Author:** [@michal\_kapusta](https://ask.openrouteservice.org/u/michal_kapusta)\
**Replies:** 2\
**Last updated:** [July 11, 2019, 5:27am UTC](https://ask.openrouteservice.org/t/population-withing-isochrone-data/722 "2019-07-11T05:27:31Z")

</div>

Hi ORS Team, first of all, thank you for the fantastic work you are all doing for the open source community. I am trying to use the R package to retrieve the population data within my desired isochrone. Is there a way…

---

## [Isocrones do not fit in bbox if center is left of 0°](https://ask.openrouteservice.org/t/isocrones-do-not-fit-in-bbox-if-center-is-left-of-0/60)

<div class="topic-metadata">

**Author:** [@ragapack](https://ask.openrouteservice.org/u/ragapack)\
**Replies:** 1\
**Last updated:** [November 2, 2018, 11:01am UTC](https://ask.openrouteservice.org/t/isocrones-do-not-fit-in-bbox-if-center-is-left-of-0/60 "2018-11-02T11:01:55Z")

</div>

Hi, I am working to build a shiny app adding features to a sample file of Andrzej. After build the Isocrones I want the Isocrones fit into the app window. This works fine until I create Isocrones in Europe or Asia, bu…
