In my database i have two nodes , that are very Similar. difference of property :lat and lng between two nodes are very small . I want to combine two nodes as one node. and make all relationship link to that node.
the following are two nodes (propertys)
node1 {name:'railway station',lat:36.699,lng:119.1}
node2 {name:'railway station',lat:36.7,lng:119.099}
How to do it with cypher? i think it should have 'where' statement like:
WHERE ABS(node1.lat-node2.lat)<0.001 and ABS(node1.lng-node2.lng)<0.001