arangosh> db._query(`FOR startCity IN
........> WITHIN(germanCity, @lat, @long, @radius)
........> FOR v, e, p IN 1..1 OUTBOUND startCity
........> GRAPH 'routeplanner'
........> RETURN {startcity: startCity._key, traversedCity: v}`,
........> {
........> lat: bonn[0],
........> long: bonn[1],
........> radius: 400000
........> } ).toArray()
[
{
"startcity" : "Cologne",
"traversedCity" : {
"_key" : "Lyon",
"_id" : "frenchCity/Lyon",
"_rev" : "7595",
"isCapital" : false,
"loc" : [
45.76,
4.84
],
"population" : 80000
}
},
{
"startcity" : "Cologne",
"traversedCity" : {
"_key" : "Paris",
"_id" : "frenchCity/Paris",
"_rev" : "7599",
"isCapital" : true,
"loc" : [
48.856700000000004,
2.3508
],
"population" : 4000000
}
},
{
"startcity" : "Hamburg",
"traversedCity" : {
"_key" : "Paris",
"_id" : "frenchCity/Paris",
"_rev" : "7599",
"isCapital" : true,
"loc" : [
48.856700000000004,
2.3508
],
"population" : 4000000
}
},
{
"startcity" : "Hamburg",
"traversedCity" : {
"_key" : "Lyon",
"_id" : "frenchCity/Lyon",
"_rev" : "7595",
"isCapital" : false,
"loc" : [
45.76,
4.84
],
"population" : 80000
}
},
{
"startcity" : "Hamburg",
"traversedCity" : {
"_key" : "Cologne",
"_id" : "germanCity/Cologne",
"_rev" : "7589",
"isCapital" : false,
"loc" : [
50.9364,
6.9528
],
"population" : 1000000
}
}
]