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.
- jupyter-notebooks
- geopandas
- folium
- pyrosm
- pandas (<3.0)
- pyosmium
After downloading the Requirements,
- Download pbf map data of the state from geofabrik or from 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
(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 *surprised pikachu*). 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.
- Figure out a way to imitate the "Avoid Roads" feature in osmand to programmatically generate roads to avoid.
- Create procedure for comaps (seems possible to import custom maps *untested)
- Method: Changeset of all roads that is then applied to a map -> osmandmapcreator (no clue how to do changesets :b)
- 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
