User reference

This is the user reference for the FixBikeNet package. If you are looking for an introduction to FixBikeNet, read the Getting started guide.

The standard way to import the FixBikeNet package is via import fixbikenet as fbn. The main fixbikenet() function below is then called via fbn.fixbikenet(), see the Minimum working example.

fixbikenet.fixbikenet.fixbikenet(city_name, proj_crs='3857', radius=2500, maxgap=200, penalty={0: 5, 1: 1}, export_data=True, export_file_format='geojson', export_plot=False)[source]

Finds gaps in bicycle networks and returns the 100 that are the most important to fill. Parameters ———- city_name : str

name of the city that the analysis should be performed on

proj_crsstr, default ‘3857’

coordinate reference system that is used to project osm data. Default is ‘3857’ (WGS 84 / Pseudo-Mercator)

radiusint, default 2500

cut-off length for computation of local betweenness centrality, in meters

maxgapint, default 50

maximum distance between node pairs to be considered as a potential gap

penaltydict, default {0:5, 1: 1}

weighing for shortest path calculations, where streets without protected bike infrastructure (pbi) get penalized

export_databool, optional, default True

If set to True, data will be saved to a file. The filename is [slug].gpkg, where slug is a string id made out of city_name

export_file_formatstr, optional, default “geojson”

File format for the data export, relevant if export_data set to True. Default “geojson”, also possible “gpkg”. If exporting as geojson, generates extra files for street network and city boundary. If exporting as gkpg, these are added all in one file as extra layers.

export_plotbool, optional, default False

If set to True, plot will be saved to a file

Returns

gdfgeopandas.geodataframe.GeoDataFrame

ordered geodataframe with the 100 most important gaps to fill

References

[1] Vybornova, A., Cunha, T., Gühnemann, A. and Szell, M. (2023), Automated Detection of Missing Links in Bicycle Networks. Geogr Anal, 55: 239-267. https://doi.org/10.1111/gean.12324