Skip to content

Instantly share code, notes, and snippets.

LOAD CSV WITH HEADERS FROM "https://raw.githubusercontent.com/CliffordAnderson/campustour/Cloudant/routing/XY.csv" AS csvLine
CREATE (:Place {x: toFloat(csvLine.X), y: toFloat(csvLine.Y), name: toINT(csvLine.FID)})
{"query":"match (a) where a.y={y} return a.name", "params":{"y":36.141650782100001}}

The Life You Save May Be Your Own

Modeling the Graph

OUR DATASET

@langsdlc
langsdlc / roosevelt
Last active August 29, 2015 14:07 — forked from stardustnrust/roosevelt
= Roosevelt Family Geneology
== Modeling the Graph
//graph
=== OUR DATASET
[source, cypher]
@langsdlc
langsdlc / FINALWaypoints.csv
Created December 12, 2014 21:30
Final Campus Routing Waypoints and Tour Points
ID Title X Y
0 Waypoint -86.79911918 36.14389983
1 Waypoint -86.80012748 36.14400393
2 Waypoint -86.80004836 36.14459582
3 Waypoint -86.8004731 36.14463865
4 Waypoint -86.80044811 36.14478856
5 Waypoint -86.80082645 36.14467077
6 Waypoint -86.80074078 36.14539889
7 Waypoint -86.80081217 36.14574867
8 Waypoint -86.80069795 36.14567372
@langsdlc
langsdlc / FinalMatchedGDB.csv
Created December 12, 2014 21:32
Final To-From Points for Campus Routing Map
FROM TO Join_Segment Length
0 285 163 43.45394604
0 286 164 64.11628177
1 287 166 13.1127802
1 2 167 66.05961287
2 1 167 66.05961287
2 291 171 15.59436458
2 292 172 11.36599932
3 292 173 27.28104968
3 4 174 16.78449547
@langsdlc
langsdlc / map
Last active August 29, 2015 14:14
var map = L.mapbox.map('map', 'vulibrarygis.l2ioj2m3')
// Construct a bounding box for this map that the user cannot
// move out of
var southWest = L.latLng(52.4934, 13.45867),
northEast = L.latLng(52.545311, 13.328738),
bounds = L.latLngBounds(southWest, northEast);
var map = L.mapbox.map('map', 'vulibrarygis.l2jo9l51')
// Construct a bounding box for this map that the user cannot
// move out of
1908
vulibrarygis.l367nf49
1920
vulibrarygis.l366jopj
1936
vulibrarygis.l369lc2l
1947

##Instructions for finding a youtube video for your map

  • Find a video of Berlin in youTube or any other source with a Creative Commons license. For example, St. Nicholas' Church, Berlin, Germany by Igor Skoglund.

  • Click Share. CLick Embed. Copy the embedded url: <iframe width="420" height="315" src="https://www.youtube.com/embed/uKlPfgi8xHw" frameborder="0" allowfullscreen></iframe>

  • Edit the link width to 180 and delete the height variable. You will also want to delete the 's' from 'https:' and add a double quote around your code. Make sure al of your code matches the following format with slashes as well. For example : "<iframe width=\"180\" src=\"http://www.youtube.com/embed/uKlPfgi8xHw\" frameborder=\"0\" allowfullscreen><\/iframe>"

  • Find the Latitude and Longitude of the video you want to use with [Google Maps](https://www.google.com/maps/place/St+Nicholas'+Church,+10178+Berl