Ipynb to edit out ALPR exposed roads from PBF files. This can then be converted into an OBF file for use in OsmAnd.
bigbrouter.webm
OsmAnd is available for iOS as well, although I have not tested.
I wrote a step by step guide showing the whole process. Link here
TLDR:
- Download Requirements (env), pbf map data from geofabrik or other providers
- Prep the pbf data with the pbf-prep.ipynb
- Process the data with big-b-router.ipynb
- Plug in the output to OsmAndMapCreator
- Transfer OBF file to phone and import with OsmAnd
Tested with conda create -n gis-py312 -c conda-forge geopandas folium pyrosm pyosmium notebook ipyleaflet osmium-tool
- notebook
- geopandas
- folium
- pyrosm
- pyosmium
- ipyleaflet
(Failed) Attempts at trying to simplify the process / separate it from road data (Trying to make it easier to use and to make files easier/smaller for distribution)
| Method | Separate File from Map | Merge w/ map -> osmandmapcreator |
|---|---|---|
| Low Emission Zones | ❌ | 🟠1 |
| Barrier2 Gates / Wall / Access=no | ❌ | ❌ |
| Barrier3 Border Control | ❌ | ❌ |
- Converting to Obf seems to add data to the nodes that are contained within low emission zones. Then avoiding LEZ's would prevent crossing said nodes. The problem is that a projection may cross the way, but not a node (fairly common| roads have a tendency to be straight lines). So a different projection needs to be used, but I'm unsure if it's possible to do without interfering with the nodes in adjacent roads.
- Barriers although non functional for routing could be an easy way to overlay alpr location data on the map in osmand.
- Barrier nodes are referenced by the way they sit on, it may be possible to integrate through a changeset.
- Create procedure for comaps (seems possible to import custom maps)
- Method: Changeset of all roads that is then applied to a map -> osmandmapcreator
- Impossible without OpenStreetMap data & contributors
- pyosmium / osmium - nothing else worked for editing osm data and keeping/returning it as a pbf
- OsmAnd and OsmAndMapCreator
- pyrosm for reading pbfs to geopandas
