Say I have a simple query that may or may not give a result. (and only one result, say with
So that when processing the output, you could detect the placeholder. Is there any nice way to do this? asked 23 Sep '15, 19:34 CrazyDave2345 |
First of all, a quick and dirty approach similar to your post.
This will add a one liner to your query result, regardless of whether there was some result or not.
It shouldn't add too much overhead, after all. There's one potential issue with that approach, though: if some mapper happens to delete that node #1, your marker is gone and you'll have to find some other available node. Of course, your normal query result also shouldn't produce a result, which looks like the marker, otherwise you cannot tell the both of them apart any longer. The recommended approach involves the use of
Assuming there are no buildings in your bbox, you will still get the following summary information:
answered 23 Sep '15, 19:56 mmd Number two worked for me, thanks!
(23 Sep '15, 20:16)
CrazyDave2345
|