Skip to content

Commit

Permalink
formatting: spelling mistakes and typos; code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
missinglink committed Nov 1, 2016
1 parent 0e5fd76 commit 2f7c8d3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
9 changes: 3 additions & 6 deletions dev/vertices.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
#!/bin/bash

# interate over each street in streetdb, joining matching address records
# iterate over each street in street.db, joining matching address records

# ADDRESS_DB="/data/address.db";
# STREET_DB="/data/street.db";

ADDRESS_DB="test/functional/updown/address.db";
STREET_DB="test/functional/updown/street.db";
ADDRESS_DB="/data/address.db";
STREET_DB="/data/street.db";

sqlite3 $ADDRESS_DB "ATTACH DATABASE '$STREET_DB' as 'street'; \
SELECT * FROM street.polyline
Expand Down
2 changes: 1 addition & 1 deletion interpolate
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function helpText(){
' search [address_db] [street_db] [lat] [lon] [house_number] [street_name] search database for specified housenumber + street',
' polyline [street_db] import polyline data in to [street_db]',
' oa [address_db] [street_db] conflate oa csv file in to [address_db] using [street_db]',
' vertices [address_db] [street_db] compute fractional house number for line vertices',
' vertices [address_db] [street_db] compute fractional house numbers for line vertices',
' extract [address_db] [street_db] [lat] [lon] [street_name] extract street address data for debugging purposes',
' server [address_db] [street_db] start a web server'
].join('\n');
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Note: you will need to pipe data in to the import/conflate commands
search [address_db] [street_db] [lat] [lon] [house_number] [street_name] search database for specified housenumber + street
polyline [street_db] import polyline data in to [street_db]
oa [address_db] [street_db] conflate oa csv file in to [address_db] using [street_db]
vertices [address_db] [street_db] compute fractional house number for line vertices
vertices [address_db] [street_db] compute fractional house numbers for line vertices
extract [address_db] [street_db] [lat] [lon] [street_name] extract street address data for debugging purposes
server [address_db] [street_db] start a web server
```
Expand Down
3 changes: 2 additions & 1 deletion stream/vertices/batch.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

var through = require('through2');

// combine row from the same street in to a single batch.
// combine rows from the same street in to a single batch.

// { id: 9231408,
// line: 'qtgmsAzpxmgDtm@?l@]^m@LkB]iuA',
Expand Down Expand Up @@ -33,6 +33,7 @@ function streamFactory(){

// invalid row
if( !dbrow || !dbrow.id ){
console.error( 'invalid address row' );
return next();
}

Expand Down

0 comments on commit 2f7c8d3

Please sign in to comment.