Geoip distance query

Does it work as expected with this query now?

If not, could you provide a full recreation script as described in

It will help to better understand what you are doing.
Please, try to keep the example as simple as possible.