Philly ES Meetup - Nov 2014
node.js
server-side event-driven javascript
postgres
classic row-based SQL server
elasticsearch
full-text search using Apache Lucene
... supports geospatial queries!
scraped from instagram.com
https://api.instagram.com/v1/media/search?lat=48.858844&lng=2.294351
Go look at downloadInstagram.js and centroids();
leaflet.js
open-source JS library for interactive maps
Originally we used SVG elements for every dot on the map. Looked awesome, but ran the browser into the ground.
Instead, rasterize all the dots and use a tile server to load the correct data at run-time.
psql -c "SELECT latitude, longitude FROM instagram" -F , -t -o instagram.csv
Go look at demo. NO PEEKING AT COOL ELASTICSEARCH FEATURES YET.
properties: {
geo: {
type: "geo_point",
lat_lon: true,
fielddata: {
format: "compressed",
precision: "1cm"
}
}
}
{
size: 10000,
"query" : {
"match_all" : {}
},
"filter" : {
"geo_distance" : {
"distance" : "100m",
"distance_type": "plane",
"geo" : [e.latlng.lng,e.latlng.lat]
}
}
}
Check out search.js and show Demo