title: How to get the address from coordinates with Open Street Maps API?
body: <p>I developed an open-source APP in Cordova (it uses Javascript) and I'm using the Google Maps API, though as the APP is becoming popular my bill is increasing (not nice for a free, ad-free APP). Thus I'd like to move to Open Street Maps.</p>
  <p>I've been reading the <a href="https://wiki.openstreetmap.org/wiki/Overpass_API" rel="nofollow noreferrer">docs</a> about the Overpass API but I see no simple clear examples of code implementation. I know the <a href="https://wiki.openstreetmap.org/wiki/Overpass_API#Public_Overpass_API_instances" rel="nofollow noreferrer">sever</a> to use, that I should use HTTP GET requests and use their special XML syntax. But it's not clear how do I pass that XML to the GET request. Furthermore the examples regarding coordinates provides as input a boundary box, not a point (or a point is regarded as a square whose corners are the same?).</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;union&gt;
    &lt;bbox-query s=&quot;51.249&quot; w=&quot;7.148&quot; n=&quot;51.251&quot; e=&quot;7.152&quot;/&gt;
    &lt;recurse type=&quot;up&quot;/&gt;
  &lt;/union&gt;
  &lt;print mode=&quot;meta&quot;/&gt;
  </code></pre>
  <p>Could you kindly provide a simple example in Javascript (for example with <a href="https://api.jquery.com/jquery.ajax/" rel="nofollow noreferrer"><code>$.ajax</code></a>) on how to get the address of a certain location by providing the geo-coordinates to the API?</p>