Have you ever wondered where you will get to if you walk at random in a city ? Will you go far away or simply wander around in your neighborhood? It’s a well-known mathematical problem, usually applied in my country to people who have drunk too much.
A few days ago I thought it might be fun to watch that drunkard walk on Openstreetmap. Some quick coding with Leaflet, Overpass, Nominatim, etc., produced something I called Deambule.
Every time you click on Walk, the drunkard, or let’s say the robot, walks 50 steps (where a step means going from one OSM node to the next OSM node on a way). At every corner it chooses one of the ways at random (trying to avoid directions he took very recently).
This is perfectly useless, and yet I think there’s something fascinating about it: it’s fun when the robot explores new neighborhoods and very boring when it cannot escape a public garden it has already visited several times. I might have called it Flâneur or Dérive, but the reference to Walter Benjamin or the Situationist was a little presomptuous for a robot that doesn’t even know why it is walking.
You may ask the robot to walk more on the same path, or you may start other paths around the world. Remember that all paths are shared by everybody. At the time of this writing, on path #1 the robot (green marker) has almost come back to its starting point (blue marker) after walking more than 300 km inside and outside Paris.
___
After a few hours, 15 new paths have been created, presumably by people who saw this diary entry. I removed those which do not contain any nodes except the starting point (I assume they were probably created by mistake).
Discussion
Comment from kasmar00 on 19 August 2018 at 11:18
One small problem is that robot tries to walk on ways (areas) tagged highway=footway area=yes which doesn’t end up too well. (For example path #30 in Poznań)
Comment from thbz on 19 August 2018 at 15:54
You are right, especially with long pedestrian areas where the robot might be trapped for a while, looking for an exit.
I chose not to exclude highways tagged as
https://wiki.openstreetmap.org/wiki/Tag:area=yes, because I didn’t want the robot to be blocked at the entrance of a pedestrian square: I understand from highway=pedestrian that footways should connect to, not pass through, a pedestrian square.But I see that your example is different since it utilizes https://wiki.openstreetmap.org/wiki/Tag:Tag:area:highway=footway, which I didn’t know about. In that case, drawing a highway through the area is apparently recommended. Therefore I updated my Overpass request to exclude ways tagged with
area:highway, assuming that a regular highway is available to be used by the robot. Hope it will fix this problem.Thanks!