Pandemic Wandering

I leave the house about once a week to bicycle around the neighborhoods. I look for little trails I might have missed when I had more important places to go.

This is a tour I took on February 27 which was a particularly nice day.

digraph { layout=neato overlap=false node [style=filled fillcolor=bisque] 3->4->5->6->7->1->2->3 1 [label="Home\nSweet\nHome" fillcolor=white] 2 [label="Spring\nGarden\nStreet\nConnector"] 3 [label="Spring\nGarden\nPark"] 4 [label="Tryon\nCreek\nHeadwaters"] 5 [label="Tryon\nCreek at\nSW 26th\nAve"] 6 [label="Falling\nCreek at\nJohnathan\nCourt"] 7 [label="Falling\nCreek at\nIndian\nHills"] }

We translate this graph with an html script that will lookup the trail pages for each node and extract the map locations where we have taken pictures or recognized other places of note.

http://ward.dojo.fed.wiki/assets/pages/pandemic-wandering/graph-to-map.html HEIGHT 250

We could have generated a page with this map but choose to just copy-paste the coordinates here.

45.469332600, -122.745668300 45.471104500, -122.745555600 45.470212900, -122.745630700 45.461212300, -122.708565900 45.460666667, -122.713577778 45.456658333, -122.708100000 45.456653200, -122.708240700 45.457058333, -122.708166667 45.456372222, -122.707955556 45.459255556, -122.704041667 45.459328500, -122.704340800 45.463477900, -122.715396900 45.462466667, -122.710297222 45.462063889, -122.711394444 45.456275000, -122.709747222 45.456096200, -122.710150500

Note: There is no trail named Home Sweet Home so I substitute coordinates for Crossing Wiki Creek, a previously nameless creek located in my backyard.

.

We like the way the script coded up: eight one line functions created a vocabulary then six lines coax inputs to the output with six single assignments. github

Here and Their functions fetch from origin and remote sites. Promises alow remote fetches to overlap.

Title and asSlug functions recognize Graphviz label parameters and turn them into slugs.

Coord and Rounded functions find marker coordinates in the map and rounds them to nine digits just to look pretty.

Item function finds the first graph or map on a page.

Fix function replaces Home Sweet Home with Wiki Creek.

We benefit from using line-at-a-time markup with clearly recognized keywords. A fully generalized implementation as we would expect of from a published solution would have to handle many more special cases.