Discussion:
[arangodb-google] Create geo index on geolocation array
Michael Ben-Nes
2018-08-22 09:35:45 UTC
Permalink
Hi,

Trying to figure how to create a *Geo index* on array of long,lat values.


For example, here is a document that represent a path:


{
"name": "name1",
"points": [
[35.540350545197725, 32.97170341014862],
[35.54033998399973, 32.97186580952257],
[35.540339816361666, 32.97198101878166],
[35.54034476168454, 32.97209140844643]
]
}

I would like to find all paths that are near a certain location.

FOR path IN NEAR(Collection, 33.00, 35.52, 5, "distance")
RETURN {
name: path.name,
distance: path.distance
}

Is it possible to set a Geo index on array?

Thanks
--
You received this message because you are subscribed to the Google Groups "ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arangodb+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...