Head's Up! Site migration is underway. Phase 2: migrate recent content
β01-22-2022 12:59 AM
Let's say I have 20 people each with a point with a latitude and longitude associated with it. How would I write a query to return the 15 closest people to a particular person.
Thanks for all your help!
β02-02-2022 09:04 AM
How about:
MATCH (person:Person) WHERE person.name = 'Important Person'
MATCH (other:Person) WHERE distance(person.location, other.location) < 10000
RETURN other.name, distance(person.location, other.location) AS distance
ORDER BY distance DESC
LIMIT 15
All the sessions of the conference are now available online