Skip to content

Instantly share code, notes, and snippets.

@langsdlc
Last active August 29, 2015 14:05
Show Gist options
  • Save langsdlc/601d755feaa7496d6f3c to your computer and use it in GitHub Desktop.
Save langsdlc/601d755feaa7496d6f3c to your computer and use it in GitHub Desktop.
LOAD CSV WITH HEADERS FROM "https://raw.githubusercontent.com/CliffordAnderson/campustour/Cloudant/routing/matchPTSaccNEW.csv" AS csvLine
MATCH (from:Place { name: toInt(csvLine.FROM)}), (to:Place { name: toInt(csvLine.TO)})
MERGE (from)-[:Path { distance: toFloat(csvLine.DISTANCE),accessible: STR(csvLine.ACCESS)}]->(to)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment