O'Reilly logo

Learning Neo4j 3.x - Second Edition by Rik Van Bruggen, Jérôme Baton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Restroom please

In this closest-water story, let's imagine that we are at a known position and need to know the closest WC.

There is a procedure for that! 

CALL spatial.closest('map_ET_Paris.osm', {lat:48.858093, lon:2.294694}, 1) YIELD node MATCH (node)-[:GEOM]-(geo)-[:TAGS]->(t:toilets)RETURN coalesce(t.name,"unnamed") as name,coalesce(t.fee,'?') as fee, geo.lat, geo.lon

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required