I'm making an http get request this way, in angular:
but the following error is given:
I've also tried mapping the result this way:
but the error remains. The xapi file I get if I go to http://www.overpass-api.de/api/xapi?*[amenity=hospital][bbox=13.20524,43.70861,13.22842,43.72338] is not null, so I'm supposing the method can't read the xapi file. Is there a way I can convert it to xml file? asked 11 Aug '17, 17:32 PachiEPap |
The resulting file is a XML file. Just open the URL in your browser, save the file and open it in you favorite editor. Either a bug in your code. Or you have too many requests against this Overpass API server. In the latter case an error message will be returned. Either way, take a look at the content of the file. answered 12 Aug '17, 08:59 scai ♦ The content of the file is ok as said, so I don't know why the method can't read it.
I've tried using interpreter for obtaining a json output, using this:
(12 Aug '17, 12:27)
PachiEPap
1
You need to ask somebody with angular.js as it is nearly sure that your code is broken.
(12 Aug '17, 15:08)
SimonPoole ♦
|