From this call:


I'm trying to get a JSON return. Reading the API, I don't know where to put the [out:json]:



You can't get a JSON result from the XAPI-compatibility endpoint. Instead, use the standard Overpass API (“interpreter”) endpoint and put the [out:json]; at the very start of your ql query:


(note the different ordering of the bbox coordinates compared to the xapi request!)

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.