I didn't actually cross check them with what we already had in OSM. If the zone30 is already in OSM, this serves as an additional confirmation that it's correct.<div><br></div><div>I wrote a mail to Jean in French just before I saw your latest message.</div>
<div><br></div><div>The code is definitely Python, using a regex is just the smart thing to do, whether in Python, Perl or Java. I had to massage the data a bit as well though, it wasn't entirely consistent.</div><div>
<br></div><div>All these bugs from OSB can also be visualised in OSMOSE, it has a category for that. To me it's more practical to have them in OSB, since there are 2 Android apps which can show them (Vespucci and OsmAND). Maybe/hopefully this will jumpstart the use of Openstreetbugs.</div>
<div><br></div><div>Jo</div><div><br></div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2012/11/23 A.Pirard.Papou <span dir="ltr"><<a href="mailto:A.Pirard.Papou@gmail.com" target="_blank">A.Pirard.Papou@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>On 2012-11-22 12:46, Jo wrote :<br>
    </div><div class="im">
    <blockquote type="cite"> I hope this reply only goes to talk-be.<br>
      <br>
      I uploaded all the POIs to Openstreetbugs: <br>
      <br>
      <a href="http://openstreetbugs.schokokeks.org/?zoom=8&lat=50.44158&lon=5.91272&layers=B0T" target="_blank">http://openstreetbugs.schokokeks.org/?zoom=8&lat=50.44158&lon=5.91272&layers=B0T</a><br>

      <br>
      The most convenient way to integrate them into OSM, is to install
      the OpenStreetBugs plugin in JOSM. It is also practical to install
      the maxspeed MapCSS style.<br>
    </blockquote></div>
    Clicking on the <u>Josm</u> link of the OSB tooltip works fine too.<br>
    <h1>Unresolved Error</h1>
    <p><b>Description:</b> Zone30 DOLEMBREUX Rue D'esneux <a href="http://gpspassion.co" target="_blank">gpspassion.co</a>,
      2012-11-22 12:26:05 CET]</p>
    <br>
    Thank you, Jo. I had already fixed this yesterday and I just cleared
    the error with due comment.<br>
    <br>
    <h1>Fixed Error</h1>
    <p><b>Description:</b> Zone30 DOLEMBREUX Rue D'esneux <a href="http://gpspassion.co" target="_blank">gpspassion.co</a>,
      2012-11-22 12:26:05 CET]</p>
    <p><b>Comment:</b> Thanks, Jo. [Papou]<br>
    </p>
    1+ ;-)<br>
    <br>
    I wish this project a sincere good luck, despite, as I explained,
    that OSB is dormant.<br>
    (see how your swarm is isolated: the few blue spots in it are my
    late corrections (eg a brave NL camper indicating two camps 2 years
    ago and my correction was to notice they had been added since)<br>
    Don't forget to advertise OpenStreetBug to revive it.<br>
    <br>
    If you had discussed the options before doing it, I would have
    advised to write "missing zone 30".<br>
    I wanted to have my warnings unobtrusive: using OSMI/OSMOSE allows
    to selecting error kinds.<div class="im"><br>
    <blockquote type="cite">I hope this helps. Keep in mind that I'm
      willing to give a presentation to the people from GPSpassion.com
      or other interested people explaining the most convenient way to
      integrate this data into OSM and also how to extract it once again
      with Overpass API.<br>
    </blockquote></div>
    Despite the lack of communication I was accused of, I have already
    replied to this before you wrote it.<br>
    The best way to manage this data is to recommend to put it in OSM in
    the first place.<br>
    What you can help with is helping the GPSpassion guys to extract
    their POIs from OSM.<br>
    By lack of communication again, I have restored Jean's address as
    cc:<br>
    <br>
    Cordialement,<br>
    <br>
    <table>
      <tbody>
        <tr>
          <td valign="top">André.</td>
        </tr>
      </tbody>
    </table>
     <br>
    PS: Your code isn't Python.  It's regex ;-)  Just like my perl :-)<div><div class="h5"><br>
    <br>
    <blockquote type="cite"><br>
      This is the Python code I used:<br>
      <br>
      <blockquote>
        import re<br>
        from httplib2 import Http<br>
        from urllib.parse import urlencode<br>
        <br>
        z30RE = re.compile(r'''(?x)<br>
                               (?P<lon>\d+.\d+),\s*<br>
                               (?P<lat>\d+.\d+),\s*"<br>
                               \[(?P<z30>.+?)\]\s*<br>
                               (?P<city>.+?)\s*<br>
                               \(\s*(?P<street>.*)\)<br>
                            ''')<br>
        <br>
        with open("zone30_BE.asc") as z30:<br>
            #<br>
            for line in z30.readlines():<br>
                print(line)<br>
                m = z30RE.search(line)<br>
               
print(m.group('lon'),m.group('lat'),m.group('z30'),m.group('city'),m.group('street'))<br>
               <br>
                '''<a href="http://openstreetbugs.schokokeks.org/api/0.1/addPOIexec?lat=" target="_blank">http://openstreetbugs.schokokeks.org/api/0.1/addPOIexec?lat=</a><Latitude>&lon=<Longitude>&text=<Bug
        description with author and date>'''<br>
               <br>
                h = Http()<br>
                data = {"lat": m.group('lat'), "lon": m.group('lon'),
        "text": 'Zone30 ' + m.group('city') + ' ' + m.group('street') +
        ' <a href="http://gpspassion.com" target="_blank">gpspassion.com</a>'}<br>
                resp, content = h.request("<a href="http://openstreetbugs.schokokeks.org/api/0.1/addPOIexec" target="_blank">http://openstreetbugs.schokokeks.org/api/0.1/addPOIexec</a>",
        "POST", urlencode(data))<br>
                #break<br>
      </blockquote>
      I hope this helps. Keep in mind that I'm willing to give a
      presentation to the people from GPSpassion.com or other interested
      people explaining the most convenient way to integrate this data
      into OSM and also how to extract it once again with Overpass API.<br>
      <br>
      Polyglot<br>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">2012/11/22 A.Pirard.Papou <span dir="ltr"><<a href="mailto:A.Pirard.Papou@gmail.com" target="_blank">A.Pirard.Papou@gmail.com</a>></span><br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF">
              <div>On 2012-11-21 22:45, Jo wrote :<br>
              </div>
              <div>
                <blockquote type="cite">Adding 1000 nodes to the OSM DB,
                  which are meant to be deleted once again seems like
                  some sort of pollution. </blockquote>
              </div>
              I said: non obtrusive. That is, believed to be harmless.
              That is, not seen on the map, not retrieved by any
              application, just appearing on both OSMI and OSMOSE.<br>
              There are many more than 1000 things in OSM whose
              destination is destruction.  Resembling this Zone 30, all
              the FIXMEs here and there, like quite a number of
              "admin_level shouldn't be 4" on the borderline of England
              (without telling what it should be ("what do I try next,
              8?") ).<br>
              A French guy on the GPS list said that those POIs saved
              him money.  But I won't fight for that  ;-)
              <div><br>
                <blockquote type="cite">On the other hand it would be
                  possible to join them to the ways, since the ways need
                  to be split anyway as the maxspeed changes there.</blockquote>
              </div>
              Ouch. They are POIs, so, often near the middle of the way,
              probably at a school door.<br>
              The best you could do is extend them by 100 m both side.<br>
              That would mean that the POIs' data wouldn't be flashing,
              that nobody would care to check and that real bogus data
              would have been introduced.<br>
              <blockquote type="cite">
                <div>Kaly nychta,</div>
              </blockquote>
              Avrio to proï, Gèrètè ( don' t know much). добрый вечер.
              пока.
              <div>
                <div><br>
                  <br>
                  <blockquote type="cite">
                    <div><br>
                    </div>
                    <div>Polyglot</div>
                    <div class="gmail_extra"><br>
                      <br>
                      <div class="gmail_quote">2012/11/21 A.Pirard.Papou
                        <span dir="ltr"><<a href="mailto:A.Pirard.Papou@gmail.com" target="_blank">A.Pirard.Papou@gmail.com</a>></span><br>
                        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                          <div text="#000000" bgcolor="#FFFFFF">
                            <div>On 2012-11-21 14:47, Sander Deryckere
                              wrote :<br>
                            </div>
                            <div>
                              <blockquote type="cite">Always take some
                                time, you knew that uploading 1000 POI
                                wasn't going to be appreciated.<br>
                                <br>
                                Uploading bugs to OpenStreetBugs is very
                                easy. A few lines of bash or perl code
                                would do <a href="http://wiki.openstreetmap.org/wiki/OpenStreetBugs/API_0.6#addPOIexec" target="_blank">http://wiki.openstreetmap.org/wiki/OpenStreetBugs/API_0.6#addPOIexec</a><br>
                              </blockquote>
                            </div>
                            I'm sorry not to always make every answer
                            personal.<br>
                            <br>
                            I have just been round correcting a 20+ bugs
                            of OSB over a rather large area (low
                            density).<br>
                            Most of what I did was erasing the requests
                            because they had already been corrected
                            outside OSB, even 1 or 2 years ago. Other
                            bugs were saying things like "priority is
                            the other way" without thinking that if it
                            was corrected outside OSB too, doing what is
                            said would set the priority wrong again.<br>
                            On the other hand, we have just heard of
                            Teddy: kudos, Teddy:
                            <blockquote type="cite">I have worked with <a href="http://tools.geofabrik.de/osmi/" target="_blank">http://tools.geofabrik.de/osmi/</a>
                              hto fix error of routing. 2 months of work
                              and hundreds of roads have been corrected
                              in Wallonia and in the surrounding area.
                              Pffff, it is well advanced... </blockquote>
                            <a href="http://tools.geofabrik.de/osmi/?view=routing&lon=5.23069&lat=50.14893&zoom=8&overlays=unconnected_major1,unconnected_major2,unconnected_major5,unconnected_minor1,unconnected_minor2,unconnected_minor5" target="_blank">New crater on Earth.</a><br>

                            This is why I believe more in OSMI/OSMOSE
                            than in OSB.
                            <div><br>
                              <blockquote type="cite">But the problem
                                isn't in uploading to OSB or OSM, it's
                                checking if there isn't already a speed
                                limit present. The OSM database
                                shouldn't be filled with duplicate data
                                if the data is already okay.  For OSB,
                                this might be less of a problem, but
                                it's still not wanted.<br>
                              </blockquote>
                            </div>
                            As I have just explained, someone finding an
                            already corrected problem is just half
                            surprised, the less if he is warned why, and
                            he feels like working terribly fast ;)<br>
                            I betcha some would rush <br>
                            <div>
                              <blockquote type="cite">Does anyone see a
                                way on how to achieve this?<br>
                              </blockquote>
                            </div>
                            Да. Jo the Polyglot, <a href="mailto:WinFixIT@gmail.com" target="_blank">WinFixIT@gmail.com</a> as
                            he wrote this afternoon<br>
                            <br>
                            <div>On 2012-11-21 16:53, Jo wrote :<br>
                            </div>
                            <div>
                              <blockquote type="cite">I may have a way
                                to upload them to OSB. The API is indeed
                                quite accessible. In order to take out
                                the ones that are already in the OSM
                                data, I can download all the maxspeed=30
                                with Overpass API and remove the ones
                                which have end nodes near to them.
                                <div> <br>
                                </div>
                                <div>I'll see what I can do with some
                                  help from PostGIS.</div>
                                <div><br>
                                </div>
                                <div>Polyglot</div>
                              </blockquote>
                              <br>
                            </div>
                            I'm standing by, finger on the trigger. When
                            you want.<br>
                            <br>
                            Cheers, <br>
                            <br>
                            <table>
                              <tbody>
                                <tr>
                                  <td valign="top">André.</td>
                                </tr>
                              </tbody>
                            </table>
                            <br>
                          </div>
                          <br>
_______________________________________________<br>
                          Talk-be mailing list<br>
                          <a href="mailto:Talk-be@openstreetmap.org" target="_blank">Talk-be@openstreetmap.org</a><br>
                          <a href="http://lists.openstreetmap.org/listinfo/talk-be" target="_blank">http://lists.openstreetmap.org/listinfo/talk-be</a><br>
                          <br>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                    <pre>_______________________________________________
Talk-be mailing list
<a href="mailto:Talk-be@openstreetmap.org" target="_blank">Talk-be@openstreetmap.org</a>
<a href="http://lists.openstreetmap.org/listinfo/talk-be" target="_blank">http://lists.openstreetmap.org/listinfo/talk-be</a>
</pre>
                  </blockquote>
                  <br>
                  <div> </div>
                </div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            Talk-be mailing list<br>
            <a href="mailto:Talk-be@openstreetmap.org" target="_blank">Talk-be@openstreetmap.org</a><br>
            <a href="http://lists.openstreetmap.org/listinfo/talk-be" target="_blank">http://lists.openstreetmap.org/listinfo/talk-be</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Talk-be mailing list
<a href="mailto:Talk-be@openstreetmap.org" target="_blank">Talk-be@openstreetmap.org</a>
<a href="http://lists.openstreetmap.org/listinfo/talk-be" target="_blank">http://lists.openstreetmap.org/listinfo/talk-be</a>
</pre>
    </blockquote>
    <br>
    <div>
      <div title="Click to translate"></div>
    </div>
  </div></div></div>

<br>_______________________________________________<br>
Talk-be mailing list<br>
<a href="mailto:Talk-be@openstreetmap.org">Talk-be@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/talk-be" target="_blank">http://lists.openstreetmap.org/listinfo/talk-be</a><br>
<br></blockquote></div><br></div>