After creating a geohash neo4j database for NYC Taxi data, the next step is to visualize it on a map. I decided to use Leaflet as a JavaScript library. Using static data, I was able to plot geohash data in Leaflet:
https://i.sstatic.net/AtQKZ.jpg
Now, my goal is to query the data from the neo4j database and render it. Is it possible to achieve this with client-side scripting alone, or do I need a server-side language like Node.js or PHP?
Update
I came across a similar question here. The suggested solution involves querying the database with AJAX. However, when I tried this approach, I encountered an "error" message in the console:
var body = JSON.stringify({
statements: [{
statement: 'MATCH (n) RETURN count(n)'
}]
});
$.ajax({
url: "http://localhost:7474",
type: "POST",
data: body,
contentType: "application/json"
})
.done(function(result){
console.log(result);
})
.fail(function(error){
console.log(error.statusText);
});