Cool. Everything fits now. I was missing the syntax. Thanks for your answers. I have what I need to progress further!<br><br>On Saturday, November 30, 2013, Paul Norman wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">The dev API is an entirely separate API with its own data.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">As XAPI is an extension to the standard API, it does does support the standard object by ID calls, e.g. <a href="http://jxapi.openstreetmap.org/xapi/api/0.6/relation/2202120" target="_blank">http://jxapi.openstreetmap.org/xapi/api/0.6/relation/2202120</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="javascript:_e({}, 'cvml', 'gregory.bataille@gmail.com');" target="_blank">gregory.bataille@gmail.com</a> [mailto:<a href="javascript:_e({}, 'cvml', 'gregory.bataille@gmail.com');" target="_blank">gregory.bataille@gmail.com</a>] <b>On Behalf Of </b>Grégory Bataille<br>
<b>Sent:</b> Friday, November 29, 2013 11:51 PM<br><b>To:</b> Paul Norman<br><b>Cc:</b> <a href="javascript:_e({}, 'cvml', 'dev@openstreetmap.org');" target="_blank">dev@openstreetmap.org</a><br><b>Subject:</b> Re: [OSM-dev] Problem with XAPI and ref based search<u></u><u></u></span></p>
</div></div><p><u></u> <u></u></p><div><p>oh god. I must have missed some combination when I had this idea. so what happens is that the data behind the dev OSM API seems partial. so when I started with overpass to do a complex query, the then OSM base API did not find the elements by id! the Prod API does though.<u></u><u></u></p>
<div><p>I don't think the XAPI layer can do a search by ID (at least I haven't found one).<u></u><u></u></p></div><div><p><u></u> <u></u></p></div><div><p>but not I can finally tie things together. Thanks for putting me back on track!<u></u><u></u></p>
</div><div><p><u></u> <u></u></p></div><div><p>Cheers<u></u><u></u></p></div></div><div><p style="margin-bottom:12.0pt"><u></u> <u></u></p><div><p>On Sat, Nov 30, 2013 at 8:26 AM, Grégory Bataille <<a>gbataille.dev@gmail.com</a>> wrote:<u></u><u></u></p>
<div><p>that's exactly what I had suspected at some point, but I did not make it work then either, let me retry that once I'm fully awaken and I'll get back to you. Thanks for the quick answer.<u></u><u></u></p>
</div><div><div><div><p style="margin-bottom:12.0pt"><u></u> <u></u></p><div><p>On Sat, Nov 30, 2013 at 4:16 AM, Paul Norman <<a>penorman@mac.com</a>> wrote:<u></u><u></u></p><div><div><p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ref is a reference to an object ID, not a ref tag. Instead of /api/0.6/relation[ref=2202120] you want /api/0.6/relation/2202120.</span><u></u><u></u></p>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I’m not 100% sure if the overpass compatibility layer will correctly handle the latter syntax.</span><u></u><u></u></p>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Grégory Bataille [mailto:<a>gbataille.dev@gmail.com</a>] <br>
<b>Sent:</b> Friday, November 29, 2013 4:42 AM<br><b>To:</b> <a>dev@openstreetmap.org</a><br><b>Subject:</b> [OSM-dev] Problem with XAPI and ref based search</span><u></u><u></u></p></div></div><div><div><p> <u></u><u></u></p>
<div><p><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">hello everybody,</span><u></u><u></u></p><div><p><span style="font-size:10.0pt;font-family:"Arial","sans-serif""> </span><u></u><u></u></p>
</div><div><p><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">I have been trying to use OSM data for a while. basically, first, I'd like to get the admin boundaries of France.</span><u></u><u></u></p>
</div><div><p><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">I start by asking XAPI to give me the France admin_level 2 object like so:</span><u></u><u></u></p></div><div><p><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><a href="http://www.overpass-api.de/api/xapi?relation%5bboundary=administrative%5d%5badmin_level=2%5d%5bname=France%5d" target="_blank">http://www.overpass-api.de/api/xapi?relation[boundary=administrative][admin_level=2][name=France]</a></span><u></u><u></u></p>
</div><div><p><span style="font-size:10.0pt;font-family:"Arial","sans-serif""> </span><u></u><u></u></p></div><div><p><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">this returns me the object, which contains among other things:</span><u></u><u></u></p>
</div><div><div><p><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><member type="relation" ref="79981" role="outer"></member></span><u></u><u></u></p>
</div><div><p><span style="font-size:10.0pt;font-family:"Arial","sans-serif""></span></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></blockquote>