biclaR
A tool for the design and assessment of different scenarios of the cycling network models in the Lisbon metropolitan area.
https://github.com/u-shift/biclar
Category: Consumption
Sub Category: Mobility and Transportation
Last synced: about 10 hours ago
JSON representation
Repository metadata
Strategic cycle network planning tools, evidence and reproducible code
- Host: GitHub
- URL: https://github.com/u-shift/biclar
- Owner: U-Shift
- License: agpl-3.0
- Created: 2020-07-16T14:27:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-02-13T15:48:52.000Z (11 months ago)
- Last Synced: 2025-12-23T01:28:39.724Z (20 days ago)
- Language: TeX
- Homepage: https://u-shift.github.io/biclar/
- Size: 107 MB
- Stars: 6
- Watchers: 2
- Forks: 4
- Open Issues: 7
- Releases: 1
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE.md
README.Rmd
---
output: github_document
bibliography:
- refs.bib
- biclar.bib
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
echo = FALSE,
message = FALSE,
warning = FALSE,
out.width = "100%"
)
```
```{r, include = FALSE}
library(sf)
```
# biclaR
**biclaR** is a tool for the design and assessment of different scenarios of the cycling network models in the Lisbon metropolitan area (LMA).
The web application can be found at [u-shift.github.io/biclarwww](https://u-shift.github.io/biclarwww/).
**biclaR** is an open source project, see the source code on [github.com/U-Shift/biclar](https://github.com/U-Shift/biclar).
For a description of the methods and research underlying the project, see the [paper](https://www.sciencedirect.com/science/article/pii/S0198971524001595) "Reproducible methods for modeling combined public transport and cycling trips and associated benefits: Evidence from the biclaR tool" published in *Computers, Environment and Urban Systems* [@felix_reproducible_2025], and the methodological report [PT] on the [TML website](https://www.tmlmobilidade.pt/projetos-e-atividades/planos-e-estudos/rede-ciclavel-metropolitana-estudo-modelacao-e-ferramenta-de-apoio-ao-planeamento-e-decisao/).
# Input data
The key datasets are as follows:
- Trips dataset with Origin and Destination, at *Freguesia* level, disaggregated by transport mode, from @IMOB\
- [CAOP 2020](https://www.dgterritorio.gov.pt/cartografia/cartografia-tematica/caop?language=en) - Official limits of Portuguese areas.
- Road network from [OpenStreetMap](https://www.openstreetmap.org/#map=11/38.7053/-9.1585)\
- Main public transport interfaces at Lisbon Metropolitan Area, provided by [Transportes Metropolitanos de Lisboa](https://www.tmlmobilidade.pt/)
# Cenarios for cycling uptake
## Baseline
The baseline scenario makes use of the 2018 mobility survey data in LMA.\
We considered all trips between *Freguesias*.
See vignette [baseline scenario](articles/0_baseline_scenario.html) to see how this was modeled.
## ENMAC targets
The National targets for cycling uptake were set to:
- 4% of all trips should be made by bicycle by 2025
- 10% of all trips should be made by bicycle by 2030
Cycling trips should replace car trips directly.
See vignette [ENMAC scenario](articles/1_emnac_scenario.html) to see how this was modeled.
## Intermodal trips
See vignette [Intermodal scenario](articles/2_intermodal_scenario.html) to see how this was modeled.
## E-bikes investment policy
See vignette [E-bike scenario](articles/3_ebikes_scenario.html) to see how this was modeled.
# Methods
## PCT - Propensity to Cycle Tool
`biclar` uses the methods developed in [PCT.bike](https://pct.bike) [@Lovelace2017] for cycling uptake estimation and data visualization.
## Jittering
For the disagregation of OD pairs at *Freguesias* level, we use [OD Jittering](https://github.com/atumworld/odrust) [@Jittering2022] method, which better suits walking and cycling trips modelling (shorter distances), instead of relying on centroids that concentrate all the trips between areas.
The OD datasets, before and after jittering, are shown below.
```{r}
od_all = readRDS("TRIPSmode_freguesias.Rds")
zones = readRDS("FREGUESIASgeo.Rds")
od_all_sf = od::od_to_sf(od_all, zones)
od_all_jittered = readRDS("od_all_jittered_50.Rds")
```
```{r jitteredoverview, out.width="50%", fig.show='hold'}
plot(od_all_sf$geometry, lwd = 0.2)
plot(od_all_jittered$geometry, lwd = 0.1)
```
## Cycling routes
Use of [CyclingStreets.net](https://cyclinstreets.net) ([R package](https://rpackage.cyclestreets.net/)) for fast and quiet bike routes for baseline scenario.
For e-bike scenario, we developed a proper algorithm, considering the topography, and using [`slopes`](https://docs.ropensci.org/slopes) package.
## Intermodal trips
We made use and developed a [methodology](https://github.com/npct/rail) that considers replacing long trips by bike + train or ferry trips.
## Estimation of socioeconomic benefits
Health Economic Assessment Tool ([HEAT v5.0](https://www.heatwalkingcycling.org/#how_heat_works)) for walking and cycling by WHO.
# Results
## Cycling uptake in LMA and by Municipality
#### ENMAC Scenario up to 5km
See [here](https://u-shift.github.io/biclarwww/aml/mapa_cenario1.html) for full map.
```{r echo=FALSE}
knitr::include_graphics("man/figures/clipboard-917840690.png")
```
See [here](https://u-shift.github.io/biclarwww/) for results for each Municipality.
#### ENMAC Scenario up to 10km (E-bike)
See [here](https://u-shift.github.io/biclarwww/aml/mapa_cenario2.html) for full map.
```{r echo=FALSE}
knitr::include_graphics("man/figures/clipboard-2091156617.png")
```
#### Intermodality Scenario
See [here](https://u-shift.github.io/biclarwww/aml/mapa_cenario3.html) for full map.
```{r echo=FALSE}
knitr::include_graphics("man/figures/clipboard-1852439731.png")
```
## Comparision with the cycling network plans by Municipality
Compare the modeled cycling networks (segments overlapping) with expansion plans, by municipality.
```{r eval=FALSE, message=FALSE, warning=FALSE, include=FALSE}
planned_network = sf::st_read("https://github.com/U-Shift/biclar/releases/download/0.0.1/CyclingPlans2021.gpkg", quiet = TRUE)
existing_network = sf::st_read("https://github.com/U-Shift/biclar/releases/download/0.0.1/CyclingNetwork2021.gpkg", quiet = TRUE)
greens2 = c("#1A7832", "#AFD4A0") #color pal
library(tmap)
tmap_mode("view")
tm_layout(title = "Existing and planned cycling networkn in LMA", panel.show = T) +
tm_add_legend("fill",
labels = "Planned",
col = "#E3879E",
z = 3) +
tm_shape(planned_network) +
tm_sf(lwd = 1.5,
# color = "pink",
col = "#E3879E",
lty = "dashed",
alpha = 0.8 ,
legend.show = T,
title.col = "Planned") +
tm_shape(existing_network) +
tm_sf(col = "Tipologia",
lwd = 2.5,
palette = greens2,
title.col = "Existing by typology",
popup.vars = c(
"Município" = "Municipio",
"Tipologia" = "Tipologia",
"Função" = "Funcao",
"Sentido" = "Sentido",
"Comprimento" = "Lenght",
"ID" = "ID"
),
)
```
```{r echo=FALSE}
knitr::include_graphics("man/figures/existingplanned.png")
```
We can view it in an [interactive map here](https://ushift.tecnico.ulisboa.pt/content/tml/RedeExistentePrevista.html).
# Funding
This project is funded by [TML - Transportes Metropolitanos de Lisboa](https://www.tmlmobilidade.pt/projetos-e-atividades/planos-e-estudos/rede-ciclavel-metropolitana-estudo-modelacao-e-ferramenta-de-apoio-ao-planeamento-e-decisao/).
# References {.unnumbered}
Owner metadata
- Name: U-Shift lab
- Login: U-Shift
- Email: ushift@tecnico.ulisboa.pt
- Kind: organization
- Description: Mobility research lab at Instituto Superior Técnico - University of Lisbon
- Website: ushift.tecnico.ulisboa.pt
- Location: Lisbon, Portugal
- Twitter: u_shift
- Company:
- Icon url: https://avatars.githubusercontent.com/u/67201314?v=4
- Repositories: 11
- Last ynced at: 2024-05-12T08:41:37.431Z
- Profile URL: https://github.com/U-Shift
GitHub Events
Total
- Issues event: 3
- Watch event: 3
- Delete event: 1
- Issue comment event: 4
- Push event: 15
- Pull request review event: 1
- Pull request event: 2
- Fork event: 1
- Create event: 1
Last Year
- Watch event: 1
- Push event: 6
Committers metadata
Last synced: 1 day ago
Total Commits: 355
Total Committers: 2
Avg Commits per committer: 177.5
Development Distribution Score (DDS): 0.197
Commits in past year: 5
Committers in past year: 1
Avg Commits per committer in past year: 5.0
Development Distribution Score (DDS) in past year: 0.0
| Name | Commits | |
|---|---|---|
| temospena | t****a@g****m | 285 |
| Robin Lovelace | r****x@g****m | 70 |
Issue and Pull Request metadata
Last synced: 2 months ago
Total issues: 42
Total pull requests: 16
Average time to close issues: 3 months
Average time to close pull requests: about 20 hours
Total issue authors: 2
Total pull request authors: 2
Average comments per issue: 2.38
Average comments per pull request: 0.19
Merged pull request: 11
Bot issues: 0
Bot pull requests: 0
Past year issues: 1
Past year pull requests: 2
Past year average time to close issues: N/A
Past year average time to close pull requests: 8 minutes
Past year issue authors: 1
Past year pull request authors: 1
Past year average comments per issue: 4.0
Past year average comments per pull request: 0.0
Past year merged pull request: 2
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- Robinlovelace (22)
- temospena (20)
Top Pull Request Authors
- Robinlovelace (12)
- temospena (4)
Top Issue Labels
- help wanted (2)
- solve by itself (1)
Top Pull Request Labels
Dependencies
- R >= 2.10 depends
- cols4all * imports
- od * imports
- stplanr * imports
- rmarkdown * suggests
- JamesIves/github-pages-deploy-action 4.1.4 composite
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
Score: 3.258096538021482