aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2011-01-28 14:55:00 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2011-01-28 14:55:00 +0100
commitd3ecf42d638e5207deb0f735ca21f0e2fe3be682 (patch)
tree0f6eb0a881f063cc3abb44498270812a1b06df59
parent30fb6b81a2eb73f78fb621079a2e4332fd53a31f (diff)
downloadosm-xapi-d3ecf42d638e5207deb0f735ca21f0e2fe3be682.tar.gz
osm-xapi-d3ecf42d638e5207deb0f735ca21f0e2fe3be682.tar.xz
osm-xapi-d3ecf42d638e5207deb0f735ca21f0e2fe3be682.zip
remove trailing whitespaces
-rw-r--r--src/nodejs/main.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/nodejs/main.js b/src/nodejs/main.js
index f1197ea..e907f03 100644
--- a/src/nodejs/main.js
+++ b/src/nodejs/main.js
@@ -5,7 +5,7 @@ var pg = require('pg');
var xmlGenerator = require('./xmlGenerator.js');
var opts = require('opts');
var osmRes = require('./response');
-var log4js = require('log4js')();
+var log4js = require('log4js')();
var log = log4js.getLogger('global');
var config;
@@ -51,8 +51,8 @@ function rowToNode(row){
'key' : temp[x],
'value' : temp[x+1]
});
- }
- }
+ }
+ }
return node;
}
@@ -73,8 +73,8 @@ function rowToWay(row){
'k' : temp[x],
'v' : temp[x+1]
});
- }
- }
+ }
+ }
return way;
}
@@ -98,7 +98,7 @@ function createWayBboxQuery(key, value, left, bottom, right, top) {
' st_setsrid(st_makepoint($3, $4), 4326), ' +
' st_setsrid(st_makepoint($5, $6), 4326) ' +
' ), 4326) ' +
- ')',
+ ')',
values: [key, value, left, bottom, right, top],
name: 'way bbox query'
};
@@ -152,7 +152,7 @@ function nodeWorldHandler(req, res, key, value) {
function nodeBboxHandler(req, res, key, value, left, bottom, right, top) {
res = osmRes.mkXmlRes(res);
-
+
dbConnect(res, function(client) {
var success = false;
var query = client.query(createNodeBboxQuery(key, value, left, bottom, right, top));
@@ -166,7 +166,7 @@ function nodeBboxHandler(req, res, key, value, left, bottom, right, top) {
});
query.on('row', function(row) {
- var pojo = rowToNode(row);
+ var pojo = rowToNode(row);
res.putNode(pojo);
});
});
@@ -258,7 +258,7 @@ function init(newConfig) {
log.info("server starting...");
log.info("loaded config from " + configPath);
http.createServer(myRoutes).listen(config.port, config.host);
- log.info("Started server at " + config.host + ":" + config.port );
+ log.info("Started server at " + config.host + ":" + config.port );
}
opts.parse(options, true);