arangosh> db.geo2.ensureIndex({ type: "geo", fields: [ "location.latitude", "location.longitude" ] }); { "id" : "geo2/23865", "type" : "geo2", "fields" : [ "location.latitude", "location.longitude" ], "constraint" : false, "unique" : false, "ignoreNull" : true, "sparse" : true, "isNewlyCreated" : true, "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" : "24922", "_id" : "geo2/24922", "_rev" : "_UWy-6zy--_", "name" : "Name/0/0", "location" : { "latitude" : 0, "longitude" : 0 } }, { "_key" : "24925", "_id" : "geo2/24925", "_rev" : "_UWy-6zy--A", "name" : "Name/0/10", "location" : { "latitude" : 0, "longitude" : 10 } }, { "_key" : "24811", "_id" : "geo2/24811", "_rev" : "_UWy-6zK--_", "name" : "Name/-10/0", "location" : { "latitude" : -10, "longitude" : 0 } } ]