Skip to content

pickpj/Big-B-Router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Big-B-Router

Offline Anti-ALPR routing and navigation for your phone.

Ipynb to edit out ALPR exposed roads from PBF files. This can then be converted into an OBF file for use in OsmAnd.

nav-example

Finished OBF file demo

bigbrouter.webm

OsmAnd is available for iOS as well, although I have not tested.

Usage

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

Requirements

Tested with conda create -n gis-py312 -c conda-forge geopandas folium pyrosm pyosmium notebook ipyleaflet osmium-tool

cli tool:

python env:

  • notebook
  • geopandas
  • folium
  • pyrosm
  • pyosmium
  • ipyleaflet

Updates

(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
  1. 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.
  2. Barriers although non functional for routing could be an easy way to overlay alpr location data on the map in osmand.
  3. Barrier nodes are referenced by the way they sit on, it may be possible to integrate through a changeset.

Future Ideas:

  • Create procedure for comaps (seems possible to import custom maps)
  • Method: Changeset of all roads that is then applied to a map -> osmandmapcreator

Credits

  • 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

fIock

About

Ipynb to edit out ALPR exposed roads from PBF files. This can then be converted into an OBF file for use in OsmAnd. Enabling, offline and mobile, map routing and navigation that avoids ALPRs.

Topics

Resources

License

Stars

Watchers

Forks

Contributors