Freewheeling

This web page allows you to calculate how far you can roll on a bicycle without using the pedals. It uses road data for all of Norway, downloaded from Kartkatalogen at Geonorge. Since I don't have a very powerful server, all calculations are done locally in your browser.

These calculations require a data file containing road data for Norway. Since this is a large data file (of about 700 MB), this file is not downloaded automatically when the page is loaded. Instead, it can be manually downloaded from here. Once the file is downloaded, use the file browser below to provide it to the web page. Note that this does not upload the file anywhere, it just tells the browser to load this file.

Loading data...

This might take a few seconds.





Instructions:

Click anywhere on the map to calculate where it is possible to freewheel from that point. A set of possible end points will then appear on the map. The farthest possible end point is shown with a red marker, while other possible end points are shown as purple circles. Click an endpoint to see the calculated route that leads from the start point to the end point.

It is also possible to reverse the search, to find the farthest start point from a given end point. When this is done, farthest possible start point is shown in green, and other candidate start points are shown in orange. Due to the way the reverse search works, many starting points will require you to start near the top speed (as opposed to normal search, where you are always assumed to start at the minimum speed).

It is possible to mark areas on the map you would like to avoid. Click the "Draw areas that should not be entered" button at the top left of the map. It is marked with this icon: . Any routes calculated will then avoid the areas drawn.

It is also possible to search for the longest path that starts within an area. In order to do that, click the "Define the search area for the longest route" button with the icon at the top left of the map. After you've drawn the search area on the map, click the "Start search" button. A table will show a running tally of the longest routes found.

The source code for this web site can be found here.

Attributions:

This library uses the leaflet library, which is licensed under the 2-clause BSD license. It also uses the leaflet-geoman-free, hue-map, and proj4 libraries, which are licensed under the MIT license.

The icons used for creating and deleting map areas, as well as the favicon for the webiste, are copied, unaltered, from Font Awesome, and are licensed under the Creative Commons Attribution 4.0 International license. The colored map markers are from the leaflet-color-markers library, and are licensed under the 2-clause BSD license.