cyclestreets
The goal of cyclestreets is to provide a simple R interface to the CycleStreets routing service.
https://github.com/cyclestreets/cyclestreets-r
Category: Consumption
Sub Category: Mobility and Transportation
Keywords
cycling r routing transport transportation-planning
Keywords from Contributors
transportation walking biking cycle desire-lines origin-destination pubic-transport route-network routes transport-planning
Last synced: about 2 hours ago
JSON representation
Repository metadata
An R interface to cyclestreets.net APIs
- Host: GitHub
- URL: https://github.com/cyclestreets/cyclestreets-r
- Owner: cyclestreets
- License: gpl-3.0
- Created: 2018-04-27T05:38:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-12-04T12:07:43.000Z (11 months ago)
- Last Synced: 2025-10-29T13:47:45.993Z (4 days ago)
- Topics: cycling, r, routing, transport, transportation-planning
- Language: R
- Homepage: https://rpackage.cyclestreets.net/
- Size: 3.92 MB
- Stars: 27
- Watchers: 3
- Forks: 8
- Open Issues: 6
- Releases: 5
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS.md
- License: LICENSE.md
README.Rmd
---
output: github_document
---
[](https://github.com/cyclestreets/cyclestreets-r/actions) [](https://CRAN.R-project.org/package=cyclestreets)
[](https://github.com/cyclestreets/cyclestreets-r/actions/workflows/R-CMD-check.yaml)
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# cyclestreets
The goal of cyclestreets is to provide a simple R interface to the CycleStreets routing service.
It was split-out from **stplanr** for modularity.
## Installation
You can install the released version of cyclestreets from [CRAN](https://CRAN.R-project.org) with:
```{r install, eval=FALSE}
install.packages("cyclestreets")
```
Install the development version with **devtools** as follows:
```{r installdev, eval=FALSE}
# install.packages("devtools")
devtools::install_github("cyclestreets/cyclestreets-r")
```
## Example
A common need is to get from A to B:
```{r example}
library ("cyclestreets")
# stplanr::geo_code ("leeds rail station")
from = c(-1.544, 53.794)
# stplanr::geo_code ("leeds university")
to = c(-1.551, 53.807)
r = cyclestreets::journey(from, to, "balanced")
sf:::plot.sf(r)
```
To get a key go to
Save the key as an environment varible using `export CYCLESTREETS=your_key_here` by adding `CYCLESTREETS=your_key_here` as a new line in your `.Renviron` file, e.g. with the following command:
```{r, eval=FALSE}
usethis::edit_r_environ()
```
Check the map is good with leaflet:
```{r, eval=FALSE}
library(leaflet)
p = colorNumeric("RdYlBu", domain = r$quietness, reverse = TRUE)
leaflet(r) %>%
addTiles() %>%
addPolylines(color = ~p(quietness), weight = 20, opacity = 0.9) %>%
addLegend(pal = p, values = ~quietness)
```
Or **tmap**, highlighting the recently added 'quietness' variable:
```{r, eval=FALSE}
library(tmap)
tmap_mode("view")
tm_shape(r) + tm_lines("quietness", palette = "RdYlBu", lwd = 3)
```
```{r, echo=FALSE}
library(tmap)
tmap_mode("view")
m = tm_shape(r) + tm_lines("quietness", palette = "RdYlBu", lwd = 3)
tmap_save(m, "m.html")
webshot2::webshot("m.html")
```
See an interactive version of this map, showing all variables per segment, [here](https://rpubs.com/RobinLovelace/784236).
Or **mapview**:
```{r, eval=FALSE}
mapview::mapview(r)
```
Route types available are: fastest, quietest, balanced.
See help pages such as `?journey` and for details.
You can also get streets by LTN status.
```{r}
network_ltns = ltns(r)
plot(network_ltns)
```
Owner metadata
- Name: CycleStreets
- Login: cyclestreets
- Email:
- Kind: organization
- Description: Cycle journey planning and tools, for cyclists, by cyclists
- Website: https://www.cyclestreets.org/
- Location: Cambridge, UK
- Twitter: cyclestreets
- Company:
- Icon url: https://avatars.githubusercontent.com/u/361419?v=4
- Repositories: 34
- Last ynced at: 2024-03-26T00:06:31.540Z
- Profile URL: https://github.com/cyclestreets
GitHub Events
Total
- Issues event: 2
- Delete event: 2
- Issue comment event: 13
- Push event: 13
- Pull request review comment event: 2
- Pull request review event: 5
- Pull request event: 8
- Fork event: 1
- Create event: 3
Last Year
- Issues event: 2
- Delete event: 2
- Issue comment event: 13
- Push event: 13
- Pull request review comment event: 2
- Pull request review event: 5
- Pull request event: 8
- Fork event: 1
- Create event: 3
Committers metadata
Last synced: 1 day ago
Total Commits: 271
Total Committers: 6
Avg Commits per committer: 45.167
Development Distribution Score (DDS): 0.177
Commits in past year: 16
Committers in past year: 2
Avg Commits per committer in past year: 8.0
Development Distribution Score (DDS) in past year: 0.438
| Name | Commits | |
|---|---|---|
| Robin Lovelace | r****x@g****m | 223 |
| Malcolm Morgan | m****8 | 23 |
| Atum Scott | a****t@g****m | 14 |
| wangzhao0217 | 7****7 | 7 |
| mvl22 | m****n@l****k | 3 |
| joeytalbot | j****5@g****m | 1 |
Committer domains:
Issue and Pull Request metadata
Last synced: 2 months ago
Total issues: 60
Total pull requests: 36
Average time to close issues: 5 months
Average time to close pull requests: 4 days
Total issue authors: 4
Total pull request authors: 6
Average comments per issue: 3.75
Average comments per pull request: 1.69
Merged pull request: 30
Bot issues: 0
Bot pull requests: 0
Past year issues: 2
Past year pull requests: 4
Past year average time to close issues: 4 minutes
Past year average time to close pull requests: about 11 hours
Past year issue authors: 1
Past year pull request authors: 2
Past year average comments per issue: 0.5
Past year average comments per pull request: 1.75
Past year merged pull request: 3
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- Robinlovelace (47)
- mvl22 (6)
- joeytalbot (2)
- mem48 (2)
Top Pull Request Authors
- Robinlovelace (27)
- mvl22 (4)
- wangzhao0217 (4)
- mem48 (3)
- joeytalbot (1)
- atumscott (1)
Top Issue Labels
Top Pull Request Labels
Package metadata
- Total packages: 2
-
Total downloads:
- cran: 908 last-month
- Total dependent packages: 1 (may contain duplicates)
- Total dependent repositories: 3 (may contain duplicates)
- Total versions: 15
- Total maintainers: 1
proxy.golang.org: github.com/cyclestreets/cyclestreets-r
- Homepage:
- Documentation: https://pkg.go.dev/github.com/cyclestreets/cyclestreets-r#section-documentation
- Licenses: gpl-3.0
- Latest release: v1.0.0 (published about 2 years ago)
- Last Synced: 2025-10-31T10:01:47.022Z (2 days ago)
- Versions: 4
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 5.401%
- Average: 5.583%
- Dependent repos count: 5.764%
cran.r-project.org: cyclestreets
Cycle Routing and Data for Cycling Advocacy
- Homepage: https://rpackage.cyclestreets.net/
- Documentation: http://cran.r-project.org/web/packages/cyclestreets/cyclestreets.pdf
- Licenses: GPL-3
- Latest release: 1.0.3 (published 11 months ago)
- Last Synced: 2025-10-31T10:01:45.880Z (2 days ago)
- Versions: 11
- Dependent Packages: 1
- Dependent Repositories: 3
- Downloads: 908 Last month
-
Rankings:
- Forks count: 9.773%
- Stargazers count: 10.473%
- Average: 15.253%
- Dependent repos count: 16.811%
- Dependent packages count: 17.656%
- Downloads: 21.552%
- Maintainers (1)
Dependencies
- R >= 3.6.0 depends
- R.utils * imports
- geodist * imports
- geojsonsf * imports
- httr * imports
- jsonlite * imports
- magrittr * imports
- purrr * imports
- sf * imports
- stringr * imports
- covr * suggests
- od * suggests
- stplanr * suggests
- actions/cache v2 composite
- actions/checkout v2 composite
- actions/upload-artifact main composite
- r-lib/actions/setup-pandoc master composite
- r-lib/actions/setup-r master composite
- actions/cache v2 composite
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc master composite
- r-lib/actions/setup-r master composite
- actions/checkout v2 composite
- r-lib/actions/pr-fetch master composite
- r-lib/actions/pr-push master composite
- r-lib/actions/setup-r master composite
Score: 12.105002911289503