View monaco.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View beforeTable.md
distance (meters) ETA (seconds) # of steps
87017 5078 93
71329 4382 61
142998 7742 47
185510 10536 104
138129 8142 67
157553 8919 89
143918 8489 47
103281 6187 32
View cache.js
// cache osm nodes and ways in leveldb
var osmium = require('osmium');
levelup = require('levelup');
if (process.argv[2] === undefined) {
return console.log('specify a file: `node osmium.js [file]');
}
var db = levelup('./' + (process.argv[3] || 'test.ldb'));
View test.js
var osmium = require('osmium');
var reader = new osmium.Reader(file, {'node': true});
View fullHistoryNodeCache.js
// storing all nodes and all positions they've ever had
var osmium = require('osmium'),
levelup = require('levelup'),
args = require('minimist')(process.argv.slice(2));
var db;
var reader;
var batch = [];
var batchSize = args.batch || 50000;
View planetNodes.js
// just store the coordinates of every node
var osmium = require('osmium'),
levelup = require('levelup'),
args = require('minimist')(process.argv.slice(2));
var db;
var reader;
var batch = [];
var batchSize = args.batch || 50000;
View planetNodes.js
// just store the coordinates of every node
var osmium = require('osmium'),
levelup = require('levelup'),
args = require('minimist')(process.argv.slice(2));
var db;
var reader;
var batch = [];
var batchSize = args.batch || 50000;
View topUsers.js
var osmium = require('osmium');
var users = {};
var reader = new osmium.Reader(process.argv[2], {
'node': true,
'way': true,
'relation': true
});
var handler = new osmium.Handler();
View index.js
var osmium = require('osmium');
if (process.stdin.isTTY) {
if (process.argv[2] === undefined) {
return console.log('specify a file: `node relevant.js [file].osc` or a list of files: `ls *.osc | node relevant.js`');
}
console.log(process.argv[2]);
relevant(process.argv[2]);
} else {
process.stdin.on('readable', function() {
View osmium.js
var osmium = require('osmium');
levelup = require('levelup');
var db = levelup('./' + (process.argv[3] || 'test.ldb'));
var count = 0;
var batch = [];
var batchSize = 100000;
var reader = new osmium.Reader(process.argv[2], {
'node': true,