<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 2013-01-29 16:04, SomeoneElse wrote
      :<br>
    </div>
    <blockquote cite="mid:5107E501.4090106@mail.atownsend.org.uk"
      type="cite">
      <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
      <div class="moz-cite-prefix">A.Pirard.Papou wrote:<br>
      </div>
      <blockquote cite="mid:5107DB3E.5070409@gmail.com" type="cite">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        I have successfully written programs processing our tags, but 'm
        stuck on this problem.<br>
        Given a node number or a way number, typically a street, what
        are the HTTP queries to send, and what is the algorithm to
        process the replies, to determine  the relation number of which
        municipality, province, country, landuse, whichever polygon,
        etc... that element is inside?<br>
      </blockquote>
      <br>
      You might be better off asking that on the dev list, or perhaps
      the help site (<a moz-do-not-send="true"
        class="moz-txt-link-freetext"
        href="https://help.openstreetmap.org/">https://help.openstreetmap.org/</a>). 
    </blockquote>
    I've got more than 150 subscriptions already and they're not using
    OpenID (why?) :-(<br>
    <blockquote cite="mid:5107E501.4090106@mail.atownsend.org.uk"
      type="cite">It also might help to say whether you're doing
      something that has to work "on the fly" where space is short (e.g.
      on a mobile phone) or somewhere where you've got access to a
      database of some sort.<br>
    </blockquote>
    Although I have some small projects in mind, I'm not exactly "doing
    something" here. Knowing the town in which a street is, for example,
    is much like, in computing, being able to compute the square root of
    a number.  It's an algorithm. It allows, when anything is found in a
    Main Street, to say in what town that Main Street is, or,
    conversely, to look for things in one town.<br>
    As to what you have in mind, indeed the algorithm shouldn't scan for
    every occurrence of something on Earth and select one from the list.
    Yes it should work on an area of pure OSM data, and possibly on a
    mobile without building an OSM reputation of working but by
    constantly picking up the comm. line (many mix up OSM and programs,
    like my provider and its PC anti-virus).<br>
    My <span id="ctl00_cC_ucResEM_lblTranslation" direction="target"
      class="tgtColl" lang="1033">pilgrim's staff is ready and I'll
      visit the POIs you mentioned.<br>
      <br>
      Thank you.<br>
    </span>
    Cheers, <br>
    <br>
    <table>
      <tbody>
        <tr>
          <td valign="top">André.</td>
        </tr>
      </tbody>
    </table>
    <br>
  </body>
</html>