cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

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

1 REPLY 1

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.