1

Adding geolib

This commit is contained in:
Alex Yatskov 2014-11-17 15:58:32 +09:00
parent 6f5d9ca6bf
commit 10599e9c66
3 changed files with 8 additions and 4 deletions

View File

@ -12,6 +12,7 @@
"dependencies": { "dependencies": {
"express": "~4.5.1", "express": "~4.5.1",
"mysql": "^2.5.0", "mysql": "^2.5.0",
"underscore": "^1.6.0" "underscore": "^1.6.0",
"geolib": "~2.0.14"
} }
} }

View File

@ -29,9 +29,11 @@
'use strict'; 'use strict';
var _ = require('underscore'); var _ = require('underscore');
var geolib = require('geolib');
var mysql = require('mysql'); var mysql = require('mysql');
var pool = null; var pool = null;
function innerProduct(values1, values2) { function innerProduct(values1, values2) {
var result = 0.0; var result = 0.0;

View File

@ -33,6 +33,7 @@ var express = require('express');
var path = require('path'); var path = require('path');
var search = require('./search.js'); var search = require('./search.js');
function main(staticFiles, port) { function main(staticFiles, port) {
var app = express(); var app = express();