<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi.<br>
      I guess most of the roundabouts are not modeled as a relation, and
      I don't think that would be necessary.<br>
      A roundabout should be a closed way tagged as highway=roundabout.<br>
      => to get all roundabouts fetch all ways tagged as such.<br>
      <br>
      To count all ingoing/outgoing streets for all roundabouts, I would<br>
      - fetch all nodes of that roundabout<br>
      - for each of these nodes fetch all ways connected to it<br>
      - count them.<br>
      <br>
      Additionally you should<br>
      1) look for oneway tags: only ingoing/outgoing<br>
      2) for dual carriage ways, especially trunk roads, but often in
      cities that applies to other road types as well, probably you want
      to find out if a pair should be counted as one street only: one
      ingoing oneway, one outgoing oneway, usually they are neighboured,
      roughly pointing to the same direction, and share the same name.<br>
      3) depending on your use case ignore footways as they are often
      sidewalks just crossing.<br>
      <br>
      regards<br>
      Peter<br>
      <br>
      Am 28.01.2013 12:27, schrieb Martin Alegre:<br>
    </div>
    <blockquote
cite="mid:CAPKW8o3jd13wi34iV0ZQU93RdYPT6xoHC7g9j-3DScYxaa2pDA@mail.gmail.com"
      type="cite">Dear all,<br>
      <br>
      I need to generate some statistics on highways. More precisely,
      given an OSM file of a city, I would like to find out which is the
      average number of roads along a junction/roundabout?<br>
      Does anybody has some experience doing that? Given the OSM
      documentation, it seems to be, that the only way to do that is by
      looking for <relation>'s, right? My intuition is that<br>
      if inside a given <relation> ... </relation>, a
      junction exists, then the rest of <way>'s inside that
      <relation> are the roads along that junction. Is this
      reasoning correct?<br>
      I'm thinking of using Osmium for that purposes.<br>
      <br>
      Best<br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openstreetmap.org/listinfo/dev">http://lists.openstreetmap.org/listinfo/dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>