Skip to content

pickpj/Big-B-Router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 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.

Finished OBF file demo

bigbrouter.webm

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

Requirements

cli tool:

python environment:

  • jupyter-notebooks
  • geopandas
  • folium
  • pyrosm
  • pandas (<3.0)
  • pyosmium

Usage

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

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 *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.
  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:

  • 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)

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

Releases

No releases published

Packages

 
 
 

Contributors