Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #190 from Project-OSRM/fix-example-server
Browse files Browse the repository at this point in the history
Example server fixes
  • Loading branch information
Dane Springmeyer committed May 23, 2016
2 parents 34802af + 266dbe8 commit a57fa86
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion example/server.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@

process.env.UV_THREADPOOL_SIZE = Math.ceil(require('os').cpus().length * 1.5);

var express = require('express');
var OSRM = require('../');
var path = require('path');

var app = express();
var osrm = new OSRM("berlin-latest.osrm");
var osrm = new OSRM(path.join(__dirname,"../test/data/berlin-latest.osrm"));

// Accepts a query like:
// http://localhost:8888?start=52.519930,13.438640&end=52.513191,13.415852
Expand Down

0 comments on commit a57fa86

Please sign in to comment.