This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var osmium = require('osmium'); | |
| levelup = require('levelup'); | |
| var db = levelup('./test.ldb'); | |
| var count = 0; | |
| var reader = new osmium.Reader(process.argv[2], { | |
| 'node': true | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <changeset id="19062966" created_at="2013-11-22T21:30:19Z" num_changes="3698" closed_at="2013-11-22T21:33:26Z" open="false" min_lon="-74.2125187" min_lat="40.5315147" max_lon="-74.2027189" max_lat="40.5415901" user="ediyes_nycbuildings" uid="1815736"> | |
| <changeset id="19109713" created_at="2013-11-25T13:40:12Z" num_changes="0" closed_at="2013-11-25T14:40:12Z" open="false" user="ediyes_nycbuildings" uid="1815736"> | |
| <changeset id="19109717" created_at="2013-11-25T13:40:23Z" num_changes="3278" closed_at="2013-11-25T13:43:19Z" open="false" min_lon="-74.2062019" min_lat="40.5315878" max_lon="-74.1953735" max_lat="40.5409980" user="ediyes_nycbuildings" uid="1815736"> | |
| <changeset id="19110083" created_at="2013-11-25T14:00:50Z" num_changes="3756" closed_at="2013-11-25T14:04:13Z" open="false" min_lon="-74.2070397" min_lat="40.5388260" max_lon="-74.1963492" max_lat="40.5472598" user="ediyes_nycbuildings" uid="1815736"> | |
| <changeset id="19110215" created_at="2013-11-25T14:09:21Z" num_changes="3111" closed_at="20 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <changeset id="24489436" created_at="2014-08-01T21:45:33Z" num_changes="108" closed_at="2014-08-01T21:45:39Z" open="false" min_lon="-51.2117132" min_lat="-19.6970992" max_lon="-51.1557345" max_lat="-19.6560368" user="dannykath" uid="2226712"> | |
| <changeset id="24489664" created_at="2014-08-01T21:59:54Z" num_changes="66" closed_at="2014-08-01T21:59:57Z" open="false" min_lon="-51.1774155" min_lat="-19.6920981" max_lon="-51.1639054" max_lat="-19.6829648" user="dannykath" uid="2226712"> | |
| <changeset id="24490067" created_at="2014-08-01T22:24:12Z" num_changes="78" closed_at="2014-08-01T22:24:16Z" open="false" min_lon="-51.2117705" min_lat="-19.6977279" max_lon="-51.1554339" max_lat="-19.6564592" user="dannykath" uid="2226712"> | |
| <changeset id="24490196" created_at="2014-08-01T22:32:32Z" num_changes="10" closed_at="2014-08-01T22:32:35Z" open="false" min_lon="-51.1908876" min_lat="-19.6938007" max_lon="-51.1757488" max_lat="-19.6790479" user="dannykath" uid="2226712"> | |
| <changeset id="24490301" created_at="2014 |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <changeset id="18635142" created_at="2013-10-31T13:41:22Z" num_changes="3240" closed_at="2013-10-31T13:44:10Z" open="false" min_lon="-74.1009278" min_lat="40.6420443" max_lon="-74.0875396" max_lat="40.6463653" user="Rub21_nycbuildings" uid="1781294"> | |
| <changeset id="18635649" created_at="2013-10-31T14:07:30Z" num_changes="4718" closed_at="2013-10-31T14:12:08Z" open="false" min_lon="-74.0945631" min_lat="40.6367196" max_lon="-74.0876124" max_lat="40.6444021" user="Rub21_nycbuildings" uid="1781294"> | |
| <changeset id="18635998" created_at="2013-10-31T14:25:00Z" num_changes="542" closed_at="2013-10-31T14:39:24Z" open="false" min_lon="-74.0998658" min_lat="40.6419000" max_lon="-74.0952424" max_lat="40.6443846" user="Rub21_nycbuildings" uid="1781294"> | |
| <changeset id="18636280" created_at="2013-10-31T14:45:26Z" num_changes="1098" closed_at="2013-10-31T14:46:15Z" open="false" min_lon="-74.1008250" min_lat="40.6419168" max_lon="-74.0950616" max_lat="40.6447748" user="Rub21_nycbuildings" uid="1781294"> | |
| <change |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <changeset id="24488986" created_at="2014-08-01T21:15:43Z" num_changes="7" closed_at="2014-08-01T21:15:46Z" open="false" min_lon="-51.6918244" min_lat="-17.9153409" max_lon="-50.8387448" max_lat="-17.7868930" user="RichRico" uid="2219338"> | |
| <changeset id="24490392" created_at="2014-08-01T22:50:40Z" num_changes="550" closed_at="2014-08-01T22:51:00Z" open="false" min_lon="-50.9648479" min_lat="-17.8352438" max_lon="-50.8896120" max_lat="-17.7464578" user="RichRico" uid="2219338"> | |
| <changeset id="24500776" created_at="2014-08-02T16:16:48Z" num_changes="142" closed_at="2014-08-02T16:16:55Z" open="false" min_lon="-51.6934377" min_lat="-17.9161388" max_lon="-50.8378120" max_lat="-17.7863572" user="RichRico" uid="2219338"> | |
| <changeset id="24507764" created_at="2014-08-03T01:32:53Z" num_changes="489" closed_at="2014-08-03T01:33:10Z" open="false" min_lon="-50.9211558" min_lat="-17.8213056" max_lon="-50.9039123" max_lat="-17.7883952" user="RichRico" uid="2219338"> | |
| <changeset id="24507815" created_at="2014-08 |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <changeset id="19274213" created_at="2013-12-04T16:01:51Z" num_changes="58" closed_at="2013-12-04T16:01:53Z" open="false" min_lon="-75.5078841" min_lat="-11.7897378" max_lon="-75.4846920" max_lat="-11.7629039" user="Luis36995" uid="1829683"> | |
| <changeset id="19274272" created_at="2013-12-04T16:07:10Z" num_changes="5" closed_at="2013-12-04T16:07:10Z" open="false" min_lon="-75.4943698" min_lat="-11.7828450" max_lon="-75.4871852" max_lat="-11.7768505" user="Luis36995" uid="1829683"> | |
| <changeset id="19274278" created_at="2013-12-04T16:07:47Z" num_changes="2" closed_at="2013-12-04T16:07:47Z" open="false" min_lon="-75.4960972" min_lat="-11.7842119" max_lon="-75.4946905" max_lat="-11.7831002" user="Luis36995" uid="1829683"> | |
| <changeset id="19274295" created_at="2013-12-04T16:09:20Z" num_changes="6" closed_at="2013-12-04T16:09:21Z" open="false" min_lon="-75.5007089" min_lat="-11.7890145" max_lon="-75.4959006" max_lat="-11.7818796" user="Luis36995" uid="1829683"> | |
| <changeset id="19274314" created_at="2013-12- |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <changeset id="15168601" created_at="2013-02-26T01:49:25Z" num_changes="42" closed_at="2013-02-26T01:49:30Z" open="false" min_lon="-74.5331854" min_lat="-12.9524242" max_lon="-74.2392486" max_lat="-12.7488022" user="ediyes" uid="1240849"> | |
| <changeset id="15168683" created_at="2013-02-26T02:18:56Z" num_changes="109" closed_at="2013-02-26T02:19:01Z" open="false" min_lon="-74.2601463" min_lat="-12.9495518" max_lon="-74.2375809" max_lat="-12.9294802" user="ediyes" uid="1240849"> | |
| <changeset id="15168737" created_at="2013-02-26T02:34:11Z" num_changes="104" closed_at="2013-02-26T02:34:17Z" open="false" min_lon="-74.2506350" min_lat="-12.9486495" max_lon="-74.2380775" max_lat="-12.9313693" user="ediyes" uid="1240849"> | |
| <changeset id="15168772" created_at="2013-02-26T02:43:43Z" num_changes="40" closed_at="2013-02-26T02:43:46Z" open="false" min_lon="-74.2492271" min_lat="-12.9491780" max_lon="-74.2383846" max_lat="-12.9353836" user="ediyes" uid="1240849"> | |
| <changeset id="15803507" created_at="2013-04-20T20:4 |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <changeset id="9156841" created_at="2011-08-29T12:03:42Z" num_changes="112" closed_at="2011-08-29T12:03:52Z" open="false" min_lon="-74.2263445" min_lat="-13.1611360" max_lon="-74.2250602" max_lat="-13.1596305" user="Rub21" uid="510836"> | |
| <changeset id="9156932" created_at="2011-08-29T12:13:18Z" num_changes="122" closed_at="2011-08-29T12:13:28Z" open="false" min_lon="-74.2309737" min_lat="-13.1715687" max_lon="-74.2202786" max_lat="-13.1454999" user="Rub21" uid="510836"> | |
| <changeset id="9157108" created_at="2011-08-29T12:34:07Z" num_changes="9" closed_at="2011-08-29T12:34:10Z" open="false" min_lon="-74.2266497" min_lat="-13.1609806" max_lon="-74.2248839" max_lat="-13.1594759" user="Rub21" uid="510836"> | |
| <changeset id="9157147" created_at="2011-08-29T12:37:58Z" num_changes="10" closed_at="2011-08-29T13:37:59Z" open="false" min_lon="-74.2273685" min_lat="-13.1594387" max_lon="-74.2271407" max_lat="-13.1592565" user="Rub21" uid="510836"> | |
| <changeset id="9157483" created_at="2011-08-29T13:22:29Z" num_cha |