-
Notifications
You must be signed in to change notification settings - Fork 161
Open
Labels
bugSomething isn't workingSomething isn't working
Description
-
NeoDash version: v2.4.9-labs
-
Neo4j Database version: Aura Sandbox
-
Expected behavior
If we consider the distance between Sao Paulo (Brazil) and Auckland (NZ) and compare this distance with the distance between Santiago (Chile) and Auckland (NZ), the first one if greater. However, the map component is rendering the relationship between the cities in the "wrong" direction.
I used point.distance to calculate the distances.
Distance Sao Paulo > Auckland: 12,033,465.188858354 (greater)
Distance Santiago > Auckland: 9,680,687.387294235
- Actual behavior
I built the Cypher below to show the scenario
WITH
point({longitude: -70.673676, latitude: -33.447487}) AS pointSantiago,
point({longitude: 174.763336, latitude: -36.848461}) AS pointAuckland,
point({longitude: -46.6388 , latitude: -23.5489}) AS pointSaoPaulo
CALL apoc.create.vNode(['City'],{name:"Santiago",geo: pointSantiago}) YIELD node as nodeSantiago
CALL apoc.create.vNode(['City'],{name: "Auckland", geo: pointAuckland}) YIELD node as nodeAuckland
CALL apoc.create.vNode(['City'],{name: "Sao Paulo", geo: pointSaoPaulo}) YIELD node as nodeSaoPaulo
CALL apoc.create.vRelationship(nodeSantiago,'DISTANCE',{distance:point.distance(pointSantiago, pointAuckland) },nodeAuckland) YIELD rel as relS_A
CALL apoc.create.vRelationship(nodeSaoPaulo,'DISTANCE',{distance:point.distance(pointSaoPaulo, pointAuckland) },nodeAuckland) YIELD rel as relSP_A
RETURN nodeSantiago,nodeAuckland,nodeSaoPaulo,relS_A, relSP_A;
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working