diff --git a/duniter4j-es-assembly/src/test/misc/test_geo_distance.sh b/duniter4j-es-assembly/src/test/misc/test_geo_distance.sh new file mode 100755 index 0000000000000000000000000000000000000000..30c7538d44ce6a115c0f9c9345500b880ea0ab7e --- /dev/null +++ b/duniter4j-es-assembly/src/test/misc/test_geo_distance.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +curl -XPOST 'https://g1.data.duniter.fr/page/record/_search?pretty&_source=title' -d ' + { + "size": 100, + "query": { + "bool": { + "filter": [{ + "geo_distance": { + "distance": "500km", + "geoPoint": { + "lat": 47.2186371, + "lon": -1.5541362 + } + } + }] + } + } + }' +