Minimum working example¶
This notebook runs a minimum working example with bikenetlib.
Import bikenetlib¶
The standard way of importing bikenetlib:
import bikenetlib as bnl
Use bnl.io¶
bnl.io.slugify("L'Hospitalet De Llobregat")
'lhospitaletdellobregat'
Use bnl.osm¶
import osmnx as ox
g = ox.graph_from_point(
(55.68208,12.52404),
dist=400,
custom_filter=bnl.osm.PBI_CUSTOM_FILTER,
)
ox.plot_graph(g, node_size=0)
Use bnl.utils¶
bnl.utils.get_principal_bearing(g)
See the Usage docs for detailed explanations.