<div dir="ltr"><div>Hi Robert,</div><div><br></div><div>I noticed this the other day & am really pleased you took it on. It's now nearly 4 years since <a href="http://sk53-osm.blogspot.com/2018/04/linear-or-1d-maps-from-openstreetmap.html">my own experiments</a>.</div><div><br></div><div>I completely agree that ideally there should be a regular format of the information which would allow consumption by a range of different applications. I just suggested a simple tabulation, but obviously json allows something more sophisticated. Ideally the approach would cover not just features of a shopping street, but things like a public transport route or a walking route; but probably best to focus on what is in hand.</div><div><br></div><div>Jerry<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 10 Feb 2022 at 21:59, Robert Whittaker (OSM lists) <<a href="mailto:robert.whittaker%2Bosm@gmail.com">robert.whittaker+osm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, 2 Feb 2022 at 20:06, Robert Whittaker (OSM lists)<br>
<<a href="mailto:robert.whittaker%2Bosm@gmail.com" target="_blank">robert.whittaker+osm@gmail.com</a>> wrote:<br>
> This is what I've come up with:<br>
> <a href="https://osm.mathmos.net/linear/" rel="noreferrer" target="_blank">https://osm.mathmos.net/linear/</a><br>
><br>
> Further details of what it does can be found on that page. I've been<br>
> testing it myself for a while. If anyone else would like to try it out<br>
> on a high street near them and provide some feedback, then please let<br>
> me know, and I can add some streets for you.<br>
<br>
Many thanks to those who suggested streets for me to add. I think I've<br>
added some for everyone now. In response to the issues and suggestions<br>
so far:<br>
<br>
* Suggestion to add a PDF output option -- It might be nice, but I<br>
don't really have the ability to produce PDFs automatically in the way<br>
that would be needed. I think printing the web output works ok. (For<br>
some reason, Firefox's print output seems to position the markers on<br>
the centreline and the POIs with different scales, but otherwise the<br>
ordering and relative positions are correct. Firefox can also<br>
annoyingly cut text in half across a page break. But other than that<br>
the printing seems ok.)<br>
<br>
* Suggestion to add a JSON output option -- this might be more doable.<br>
Currently the tool stores the data internally in something that has a<br>
JSON structure before it writes the HTML file. It probably wouldn't be<br>
too difficult to save that to a file too, and provide a link. What<br>
you'd get in the file would be the raw data behind the HTML file, e.g.<br>
POI name, type, OSM ID, distance along street, lat, lon, website, FHRS<br>
ID (if defined). Would that be useful? I'm not sure exactly what the<br>
use-case might be though...<br>
<br>
* Report of a missing POI -- The case Andy Mabbett highlighted was<br>
because the centroid of the OSM object is further from the street<br>
centreline than the default 50m. This can be customised on a per<br>
street basis, so I've increased it for that street to capture that<br>
POI.<br>
<br>
* Include Side Streets on the map -- Yes, I'd really like to be able<br>
to do this. But I'm not sure exactly how to make it work. I can<br>
probably determine the node where a side street meets the main road,<br>
and use that to determine the distance along the street. But for side<br>
roads that come off at an angle, that might put it out of place<br>
relative to the POIs that are further back.<br>
<br>
* Suggestion to include a Tooltip on "null nodes" (Andy Mabbett) -- I<br>
presume this is referring to the points that have a little house<br>
symbol, indicating there's an address with no POI tags. If so, I've<br>
now added a tooltip to them.<br>
<br>
If anyone else wants me to add a street, do let me know. And don't be<br>
afraid to click the buttons to update the OSM data on existing streets<br>
-- it's all processed automatically.<br>
<br>
Best wishes,<br>
<br>
Robert.<br>
<br>
-- <br>
Robert Whittaker<br>
<br>
_______________________________________________<br>
Talk-GB mailing list<br>
<a href="mailto:Talk-GB@openstreetmap.org" target="_blank">Talk-GB@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/talk-gb" rel="noreferrer" target="_blank">https://lists.openstreetmap.org/listinfo/talk-gb</a><br>
</blockquote></div>