In this post @bennu_neo suggested a query to produce a point on a map.
When I duplicate this and insert my own coordinates, it works fine:
UNWIND [{id: "1234", label: "H1", type: "House", point: point({latitude:51.22074896608231, longitude:4.4067613031634645})}] AS x
RETURN x
However, I need the point to be a node property (in this case: property "point" of node h:House, viz "point({latitude:51.22074896608231, longitude:4.4067613031634645})"). The query would therefore look like this:
MATCH (n:Name)-[r2:HAS_NAME_VARIANT]-(p:Producer)-[r:HAS_ADDRESS]->(a:Address)
WHERE n.Name = $neodash_name_name
OPTIONAL MATCH (a:Address)-[r3:IS_HOUSE]->(h:House)
WITH p, h, h.point AS GEO
UNWIND [{id: p.ProducerID, label: "H1", type: "House", point: GEO }] AS x
RETURN x
This does not work. What am I missing?
Thanks!