Code Monkey home page Code Monkey logo

roads-from-nd's Introduction

All roads from Notre-Dame

This projects contains the throw-away code used for the following blogpost: https://tristramg.eu/roads-from-notre/

Examples of generated images can be found at: https://cloud.tristramg.eu/index.php/s/nKTxqGmDXBNfSs2

Install Cargo http://doc.crates.io/.

To run cargo run --release -- --help.

  • You need an OpenStreetMap dump in the PBF format
  • Choose a starting node from OpenStreetMap. The node must be on the street network

The program will require about the same amout of memory as the size of the PBF file.

The running time varies a lot depending on the data source.

On my laptop ( Intel(R) Core(TM) i7-6560U CPU @ 2.20GHz), I need about 20 minutes to one hour to process 1Gb of OpenStreetMap data.

roads-from-nd's People

Contributors

tristramg avatar

Stargazers

Depressive Internationale avatar Jonny Huck avatar James Banting avatar Kevin avatar rb avatar Julien Coupey avatar Thomas Gratier avatar Omid Alemi avatar  avatar Adam Alpern avatar Javier Noval avatar Giovanni Allegri avatar Nitin Khanna avatar Erik Taheri avatar Chad avatar Marc Riera avatar Bheesham Persaud avatar Ismaïl Baaj avatar Nicolas Lesconnec avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

cuulee

roads-from-nd's Issues

Reload graph from previous run

The graph is currently loaded from the osm.pbf file using osm4routing: https://github.com/Tristramg/roads-from-nd/blob/master/src/main.rs#L68 ; so the same parsing work is done on each execution.

It could be nice to be able to write down the node and edges files produced by osm4routing. The next execution with different parameters or start node might then get a significant speed-up by only loading the graph in memory from those files.

Another way of doing this would be to just provide an options to load from those files rather than from osm.pbf (and let users generates the files themselves using osm4routing).

Graph loaded but other tasks do not run correctlty

From an Ubuntu box 16.04 x64, I've installed rust with instructions from https://www.rust-lang.org/fr/downloads.html

curl -sSf https://static.rust-lang.org/rustup.sh | sh

Then, I installed roads-from-nd with

# sudo was required
sudo cargo install roads-from-nd

Then, I've taken Geofabrik export with

wget http://download.geofabrik.de/europe/france/pays-de-la-loire-latest.osm.pbf

Following your recipe, I've tried

roads-from-nd pays-de-la-loire-latest.osm.pbf 314390639 out.pdf

where the node 314390639 is part of a way in "Pays de La Loire" e.g https://www.openstreetmap.org/node/314390639

At the end, I got the following output

roads-from-nd-issue

Did I miss something in your recipe in French at https://www.codeursenliberté.fr/cartographie/routes_depuis/?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.