arangosh> db.geo2.ensureIndex({ type: "geo", fields: [ "location.latitude", "location.longitude" ] }); { "constraint" : false, "fields" : [ "location.latitude", "location.longitude" ], "id" : "geo2/24545", "ignoreNull" : true, "isNewlyCreated" : true, "sparse" : true, "type" : "geo2", "unique" : false, "code" : 201 } arangosh> for (i = -90; i <= 90; i += 10) { ........> for (j = -180; j <= 180; j += 10) { ........> db.geo2.save({ name : "Name/" + i + "/" + j, location: { latitude : i, longitude : j } }); ........> } ........> } arangosh> db.geo2.near(0, 0).limit(3).toArray(); [ { "_key" : "25602", "_id" : "geo2/25602", "_rev" : "_VRertny--_", "name" : "Name/0/0", "location" : { "latitude" : 0, "longitude" : 0 } }, { "_key" : "25605", "_id" : "geo2/25605", "_rev" : "_VRertny--A", "name" : "Name/0/10", "location" : { "latitude" : 0, "longitude" : 10 } }, { "_key" : "25491", "_id" : "geo2/25491", "_rev" : "_VRertnG--A", "name" : "Name/-10/0", "location" : { "latitude" : -10, "longitude" : 0 } } ]