Neo4j: Spatial functions cheat sheet

distance()

distance(point1, point2)

point1 returning a point in either a geographic or cartesian coordinate system.

point2 returning a point in the same CRS as ‘point1’.

point() – WGS 84 2D

point({longitude | x, latitude | y [, crs][, srid]})

Returns a 2D point in the WGS 84 CRS corresponding to the given coordinate values.

point() – WGS 84 3D

point({longitude | x, latitude | y, height | z, [, crs][, srid]}) 

Returns a 3D point in the WGS 84 CRS corresponding to the given coordinate values.

point() – Cartesian 2D

point({x, y [, crs][, srid]}) 

Returns a 2D point in the Cartesian CRS corresponding to the given coordinate values.

point() – Cartesian 3D

point({x, y, z, [, crs][, srid]}) 

Returns a 3D point in the Cartesian CRS corresponding to the given coordinate values.

Leave a Reply

Your email address will not be published. Required fields are marked *