apoc.spatial.sortByDistance

Procedure

apoc.spatial.sortPathsByDistance(List<Path>) sort the given paths based on the geo informations (lat/long) in ascending order

Signature

apoc.spatial.sortByDistance(paths :: LIST? OF PATH?) :: (path :: PATH?, distance :: FLOAT?)

Input parameters

Name Type Default

paths

LIST? OF PATH?

null

Output parameters

Name Type

path

PATH?

distance

FLOAT?