<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Sun, Sep 11, 2016 at 3:54 PM Paul Norman <<a href="mailto:penorman@mac.com">penorman@mac.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 9/11/2016 8:20 AM, Mike N wrote:<br>
> Given a PostGIS database populated from OSM data by osm2pgsql, and 2<br>
> sets of lines (such as the selection of all footways and the<br>
> selection of all roads) what function or series of functions will<br>
> result in a list of locations where footways cross roads without any<br>
> OSM connecting node? (the equivalent of JOSM's "Crossing Ways" warning)<br></blockquote><div><br></div><div>This isn't really an answer to your exact question, but I recently used Mapbox's OSM QA Tiles + Tile Reduce to find all intersections between residential/tertiary/primary/trunk/etc. roads. The code is here and can probably be adapted to what you're looking for pretty easily:</div><div><br></div><div><a href="https://github.com/iandees/on-every-corner">https://github.com/iandees/on-every-corner</a><br></div></div></div>