Walking time

Walking time

icon_largeO Walking time é um plugin python para QGIS que usa a Tobbler’s hiking function para estimar o tempo de percurso ao longo de uma linha consoante o declive.

The Walking time is a QGIS python plugin that uses Tobbler’s hiking function to estimate the travel time along a line depending on the slope.

Os dados de input necessários são uma camada vectorial de linhas e uma camada raster com valores de elevação (1). É possível ajustar a velocidade base (em terreno plano) de acordo com o tipo de caminhada ou caminhante. Por defeito, o valor usado é de 5 kmh (2). O plugin actualiza ou cria campos com o tempo estimado em minutos, no sentido directo e no sentido inverso (3). É possível correr o plugin para todos os elementos da camada vectorial, ou apenas nos percursos seleccionados (4).

The input data required are a vector layer with lines and a raster layer with elevation values ​​(1). One can adjust the base velocity (on flat terrain) according to the type of walking or walker. By default, the value used is 5 km h (2). The plugin update or create fields with estimated time in minutes in forward and in reverse direction (3). One can run the plugin for all elements of the vector layer, or only on selected routes (4).

O plugin pode também ser usado para preparar uma rede (grafo) para realizar análise de redes onde se queira usar como custo o tempo de percurso.

The plugin can also been used to prepare a network (graph) to perform network analysis when the use of travel walking time as cost is intended.

Captura de tela 2014-03-24 12.12.17-01

Repositório QGIS | QGIS repository: http://plugins.qgis.org/plugins/walkingtime/

Código | Code: https://github.com/SrNetoChan/WalkingTime

Reportar bugs | Bug report: https://github.com/SrNetoChan/WalkingTime/issues

Instalação | Instalation

O plugin está disponível no repositório oficial de plugins do qgis. Ou seja, basta ir a “módulos > gerir e instalar módulos” e procurar por “Walking Time”. No entanto, como o plugin é experimental, poderá terá de activar no separador “configurações” a opção “Mostrar também módulos experimentais”.

The plugin is available in the oficial QGIS plugins repository. Therefore, just go to “plugins > manage and install plugins” and search for “Walking Time”. Since the plugin is experimental, make sure you have the “Show also experimental plugins” option selected in the settings tab.

Advertisement

10 thoughts on “Walking time

    1. Hi there,

      I’m glad that the plugin is useful for you. In order to determine where your lines start or end, I advice you to add a marker to your line style.

      Select the base category on your style and click the plus sign below. Use a Marker line, a define the marker positions as “on last vertex only”.

      That should do.

      Cheers

      Like

  1. Hi, I have installed this plugin but getting error it would be thankful if you could drag me to the solution…

    An error has occured while executing Python code:

    Traceback (most recent call last):
    File “C:Usersuser_name/.qgis2/python/pluginswalkingtimewalkingtime.py”, line 88, in run
    self.elevation_rlayer = self.dlg.raster_layers[self.dlg.comboBox_elevation_layer.currentText()]
    KeyError: u”

    Python version:
    2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]

    QGIS version:
    2.0.1-Dufour Dufour, ebebdf3

    Like

  2. Hello Alexandre!
    I just tried your “Walking Time” tool and I think it’s a great idea! 🙂
    It works perfectly fine, if I use it on flat terrain. However, if I tried a steeper track I got really unrealistic results…For a track that’s normally about 3,5 hours, I get about 10 hours as result.
    Do you have any idea why it’s so inaccurate in steeper terrain?
    I can send you the mentioned track as shapefile, if you wanna try it out yourself.

    Anyway, I’m really looking forward to hearing your answer on the subject. Thank you very much in advance! 🙂

    Greetings from Austria

    Like

  3. Hello Alexandre!
    I just tried your “Walking Time” tool and I think it’s a great idea! 🙂
    It works perfectly fine, if I use it on flat terrain. However, if I tried a steeper track I got really unrealistic results…For a track that’s normally about 3,5 hours, I get about 10 hours as result.
    Do you have any idea why it’s so inaccurate in steeper terrain?
    I can send you the mentioned track as shapefile, if you wanna try it out yourself.

    Anyway, I’m really looking forward to hearing your answer on the subject. Thank you very much in advance! 🙂

    Greetings from Austria

    Like

      1. Thank you for the quick reply!

        However, we just solved the problem. There was an issue with the coordinate systems…First we tried it with WGS-84 and it didn’t work accurately, so we changed to a metrical grid ( MGI Austria GK M31/EPSG 31258) and we got a pretty accurate result. Your plugin said 2,5 hours and with our formula we got about 3 hours, so that’s pretty good! 🙂

        By the way, which formula do you use?

        Like

  4. Yes, it has been in my plans to implement on the fly transformation to the plugin, but it have been postponed for a number of reasons. Therefore, some rules are: Use a projected/planimetric coordinate system; Use the same coordinate system for both files; The altimetric unit must be the same as the planimetric one.

    I used Tobler hiking function, but I have adapted it to allow the user to set an average velocity in a flat terrain. This makes possible to the user to increase (or decrease) the velocity to adapt to the terrains and hikers characteristics. If it’s a rough terrain, with a bad pavement, then one might decrease the velocity a bit. If the trail is usually used by experienced hikers, maybe they can walk a bit faster.

    Have a look here for more informations about the formula.

    http://en.wikipedia.org/wiki/Tobler%27s_hiking_function

    Hope he plugin is usefull for you, please report any bug you might find in here:

    https://github.com/SrNetoChan/WalkingTime/issues

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s