<div style="font-family: Helvetica; font-size: medium; ">Hi all</div><div style="font-family: Helvetica; font-size: medium; "><br></div><div style="font-family: Helvetica; font-size: medium; ">I use the TagInfo API v2 (<a href="http://taginfo.openstreetmap.de/api/2">http://taginfo.openstreetmap.de/api/2</a>) and found out, that this API does not support JSONP. Is it possible to add this functionality? Because if you call this API from an other domain e.g. using jQuery, then you have the "same origin policy" problem (see <a href="http://en.wikipedia.org/wiki/Same_origin_policy">http://en.wikipedia.org/wiki/Same_origin_policy</a>).</div>
<div style="font-family: Helvetica; font-size: medium; "><br></div><div style="font-family: Helvetica; font-size: medium; ">The only thing to do is, that the API need to wrap the json response in the callback function.</div>
<div style="font-family: Helvetica; font-size: medium; ">A sample request could look like the following:</div><div style="font-family: Helvetica; font-size: medium; "><font class="Apple-style-span" color="#006699"><a href="http://taginfo.openstreetmap.de/api/2/db/keys/values?callback=jQuery15106293216187041253_1301994447300&key=amenity&sortname=count_all&sortorder=">http://taginfo.openstreetmap.de/api/2/db/keys/values?callback=jQuery15106293216187041253_1301994447300&key=amenity&sortname=count_all&sortorder=</a>des</font></div>
<div style="font-family: Helvetica; font-size: medium; "><br></div><div style="font-family: Helvetica; font-size: medium; ">Here an example of the Google Translate API:</div><div style="font-family: Helvetica; font-size: medium; ">
Request:</div><div style="font-family: Helvetica; font-size: medium; "><a href="https://www.googleapis.com/language/translate/v2?">https://www.googleapis.com/language/translate/v2?</a><font class="Apple-style-span" color="#006699">callback=jQuery15106293216187041253_1301994447299</font>&key=key&q=re</div>
<div style="font-family: Helvetica; font-size: medium; "><br></div><div style="font-family: Helvetica; font-size: medium; ">Response:</div><div style="font-family: Helvetica; font-size: medium; "><font class="Apple-style-span" color="#006699">jQuery15106293216187041253_1301994447299(</font>{<br>
"data": {<br> "translations": [<br> {<br> "translatedText": "restaurant"<br> }<br> ]<br> }<br>}<br><font class="Apple-style-span" color="#006699">);</font></div><div style="font-family: Helvetica; font-size: medium; ">
<br></div><div style="font-family: Helvetica; font-size: medium; ">Is that possible? Or could I support you in developing this feature?</div><div style="font-family: Helvetica; font-size: medium; "><br></div><div style="font-family: Helvetica; font-size: medium; ">
Thanks a lot</div>