Giter Club home page Giter Club logo

avoid-slope's Introduction

Shortest route avoiding uphill slopes

Based on this https://www.reddit.com/r/Showerthoughts/comments/f4zr9d/in_theory_a_path_could_exist_between_mount/ shower thought, stating

In theory a path could exist between Mount Everest and the Netherlands where you'd always be walking downhill. A marble could therefore potentially roll for around 6800km.

Unfortunately the premise is wrong, but I was wondering what would be the route with the least amount of climb (going downhill is fine), and what would be the alternative routes if we'd block large slopes as well uphill (again downhill any slope is accepted).

The solution is using NASA's Earth Heightmap as a base, and uses a simple A* style algorithm where the heuristic tries to get as close to the end goal as possible while discouraging going uphill.

Three generated images and routes are available in the images directory for three different heuristics, they are also available at google maps at https://drive.google.com/open?id=1NA6uWC96Vovlv1o-uHTS6G7sdo_sHJ6N&usp=sharing

avoid-slope's People

Contributors

sztupy avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

tmezei-cais

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.