Openstreetmap - Cypher Query

Hello all,

Neo4j Version - 3.5.8

I have imported a section of Openstreetmap into Neo4j. I need to write a query, where if i given a boundary box, I need to get all the nodes with lat and long within the boundary.

Appreciate your help

Either a bounding box, expressed as something such as the following (not Openstreetmap specific)

MATCH (p:Point) WHERE p.location < point({x:5,y:6}) AND p.location > point({x:4,y:3}) RETURN p

Or use Neo4j Spatial for more sophisticated intersections.

1 Like