Giter VIP home page Giter VIP logo

galton's Introduction

Galton

npm version npm downloads Build Status Greenkeeper badge

Lightweight Node.js isochrone server. Build isochrones using OSRM, Turf and concaveman.

Francis Galton is the author of the first known isochrone map.

Screenshot

Installation

Galton requires Node v8.

npm install -g galton

...or build from source

git clone https://github.com/urbica/galton.git
cd galton
npm install

Usage

Usage: galton [filename] [options]

where [filename] is path to OSRM data and [options] is any of:
  --radius - distance to draw the buffer (default: 6)
  --cellSize - the distance across each cell (default: 0.2)
  --concavity - concaveman relative measure of concavity (default: 2)
  --deintersect - whether or not to deintersect the final isochrones (default: true)
  --intervals - isochrones intervals in minutes (default: 10 20 30)
  --lengthThreshold - concaveman length threshold (default: 0)
  --pid - save PID to file
  --port - port to run on (default: 4000)
  --sharedMemory - use shared memory (default: false)
  --socket - use Unix socket instead of port
  --units - either `kilometers` or `miles` (default: kilometers)
  --version - returns running version then exits
galton berlin-latest.osrm

Open examples/index.html?access_token=<token>

Example

cd galton
wget http://download.geofabrik.de/europe/germany/berlin-latest.osm.pbf
./node_modules/osrm/lib/binding/osrm-extract -p ./node_modules/osrm/profiles/car.lua berlin-latest.osm.pbf
./node_modules/osrm/lib/binding/osrm-contract berlin-latest.osrm
npm start berlin-latest.osrm

Build isochrones from point

curl http://localhost:4000 --get --data 'lng=13.38792&lat=52.51704'

Build isochrones for 10, 20 and 30 minute intervals

curl http://localhost:4000 --get --data 'lng=13.38792&lat=52.51704&intervals=10&intervals=20&&intervals=30'

See the example, API and test/index.js for more info.

Examples

Using existing OSRM graph

This command will run isochrone server using moscow.osrm

galton moscow.osrm

Using existing OSM extract

This command will build OSRM graph with car profile using moscow.osm extract and start isochrone server.

galton moscow.osm car

Using geocode to extract from OSM

  1. It will look for moscow.osrm in the current directory and start isochrone server if found.
  2. If it is not found, it will look for moscow.osm in the current directory, build OSRM graph with car profile, based on this extract, and start isochrone server if found.
  3. If there is no moscow.osm, galton will geocode moscow and extract it from Overpass API, then it will build OSRM from that extract with car profile and start isochrone server.
galton moscow car

Using with Docker

docker run -p 4000:4000 urbica/galton <OSRM>

Where OSRM is a path to OSRM graph.

Examples:

This will download geofabrik extract, extract and build OSRM graph using official OSRM Docker image, and run galton on that graph.

wget http://download.geofabrik.de/europe/germany/berlin-latest.osm.pbf
docker run -t -v $(pwd):/data osrm/osrm-backend:v5.18.0 osrm-extract -p /opt/car.lua /data/berlin-latest.osm.pbf
docker run -t -v $(pwd):/data osrm/osrm-backend:v5.18.0 osrm-contract /data/berlin-latest.osrm
docker run -t -i -p 4000:4000 -v $(pwd):/data urbica/galton:v5.18.0 galton /data/berlin-latest.osrm
curl http://localhost:4000 --get --data 'lng=13.38792&lat=52.51704'

Running tests

make test

galton's People

Contributors

dependabot[bot] avatar glifchits avatar greenkeeper[bot] avatar greenkeeperio-bot avatar jeantristan avatar michieldemey avatar snyk-bot avatar stepankuzmin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

galton's Issues

TypeError: Invalid file paths given! on upstart

When running:
node index.js denmark.osrm

I get:

TypeError: Invalid file paths given!
at TypeError (native)
at Object.exports.default (/vagrant/galton/lib/server.js:1:493)
at Object. (/vagrant/galton/index.js:112:22)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
at node.js:974:3

An in-range update of osrm-bindings is breaking the build 🚨

The dependency osrm-bindings was updated from 1.1.0 to 1.2.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

osrm-bindings is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of lint-staged is breaking the build 🚨

The devDependency lint-staged was updated from 8.1.6 to 8.1.7.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

lint-staged is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for v8.1.7

8.1.7 (2019-05-15)

Bug Fixes

  • Resolve security vulnerability in dependencies (#615) (315890a), closes #600
Commits

The new version differs by 2 commits.

  • 315890a fix: Resolve security vulnerability in dependencies (#615)
  • cbf0e0e docs: Correct section about filtering files (#612)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Incorrect output for Saint-Petersburg

Π”ΠΎΠ±Ρ€Ρ‹ΠΉ дСнь!
Π₯ΠΎΡ‡Ρƒ ΠΏΠΎΠ΄Π΅Π»ΠΈΡ‚ΡŒΡΡ ΠΎΠ±Π½Π°Ρ€ΡƒΠΆΠ΅Π½Π½Ρ‹ΠΌ Π±Π°Π³ΠΎΠΌ Ρƒ Galton. Π’ Π‘Π°Π½ΠΊΡ‚-ΠŸΠ΅Ρ‚Π΅Ρ€Π±ΡƒΡ€Π³Π΅ Π²Π½Π΅ зависимости ΠΎΡ‚ Ρ‚ΠΎΡ‡ΠΊΠΈ расчСта Π² Π·ΠΎΠ½Ρƒ 10-ΠΌΠΈΠ½ΡƒΡ‚Π½ΠΎΠΉ Π°Π²Ρ‚ΠΎΠΌΠΎΠ±ΠΈΠ»ΡŒΠ½ΠΎΠΉ доступности Π²Ρ…ΠΎΠ΄ΠΈΡ‚ ΠŸΠ΅Ρ‚Π΅Ρ€Π³ΠΎΡ„ (http://galton.urbica.co/?&ll=30.432747648045876,60.03118400176456&zoom=9&city=saint-petersburg_russia&mode=car&page=about&lang=ru&center=9)

An in-range update of tape is breaking the build 🚨

The devDependency tape was updated from 4.10.1 to 4.10.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

tape is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 7 commits.

  • 2c6818a v4.10.2
  • 15b2dfc [fix] don't consider 'ok' of todo tests in exit code
  • 9ec3a0f [Dev Deps] update eslint, js-yaml
  • 3f337d1 [meta] set save-prefix to ~ (meant for runtime deps)
  • c30e492 [Deps] update glob, resolve
  • 25b4a24 Minor punctuation/highlighting improvement
  • c481dae [Refactor] Removed never-read inErrorState from index.js

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Response caching

We'd need heavy response caching based on the lat/lng since they take quite a while to compute (up to 5s) for a certain coordinate pair.

Would you be up to review a PR containing https://github.com/coderhaoxin/koa-redis-cache?
Or do you have any other suggestions pertaining to result caching?

TypeError: Fingeprint does not match

Hey folks!

Awesome project, although I'm having a bit of a problem. When I run

galton greater-london-latest.osrm

I receive the following error:


TypeError: Fingeprint does not match

/usr/lib/node_modules/galton/lib/server.js:1
(function (exports, require, module, __filename, __dirname) { 'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.defaults=undefined;var _regenerator=require('babel-runtime/regenerator');var _regenerator2=_interopRequireDefault(_regenerator);var _asyncToGenerator2=require('babel-runtime/helpers/asyncToGenerator');var _asyncToGenerator3=_interopRequireDefault(_asyncToGenerator2);exports.default=function(config){var _this=this;var app=new _koa2.default();var osrm=new _osrm2.default({path:config.osrmPath,shared_memory:!!config.sharedMemory});var defaultOptions={osrm:osrm,bufferSize:config.bufferSize||defaults.bufferSize,cellWidth:config.cellWidth||defaults.cellWidth,concavity:config.concavity||defaults.concavity,intervals:config.intervals||defaults.intervals,lengthThreshold:config.lengthThreshold||defaults.lengthThreshold,resolution:config.resolution||defaults.resolution,sharpness:config.sharpness||defaults.sharpness,units:config.units||def

TypeError: Fingeprint does not match in greater-london-latest.osrm.icd
    at TypeError (native)
    at Object.exports.default (/usr/lib/node_modules/galton/lib/server.js:1:493)
    at Object.<anonymous> (/usr/lib/node_modules/galton/index.js:112:22)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:139:18)
    at node.js:968:3


Anyone have any ideas why this might be? the OSRM file was built from geofabrik pbf data for London using the standard OSRM-backend compiled from source.

An in-range update of lint-staged is breaking the build 🚨

The devDependency lint-staged was updated from 8.1.7 to 8.2.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

lint-staged is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for v8.2.0

8.2.0 (2019-06-06)

Bug Fixes

  • normalize gitDir path for Windows compatibility (90e343b)

Features

  • throw error in runAll if outside git directory (6ac666d)
Commits

The new version differs by 10 commits.

  • e770d8f test: improve runAll tests
  • cb5fcbd test: fix test
  • ed9e586 test: add test for resolveGitDir behaviour outside a git directory
  • c87671f refactor: makeCmdTasks receives gitDir as argument
  • 90e343b fix: normalize gitDir path for Windows compatibility
  • 9871389 refactor: resolveGitDir uses execGit
  • 6ac666d feat: throw error in runAll if outside git directory
  • defcdfc refactor: generateTasks doesn't calculate gitDir itself
  • 8921989 refactor: generate gitDir only once, using git rev-parse
  • 738af13 docs: update husky configuration example to match v1.x (#566)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Incorrect isochrones?

I have set up galton in a docker container as described in the readme. The OSM extract I'm using is brandenburg-latest. Set up went flawless – however the isochrones that are generated seem very unnatural and cut off.

An example can be found in this gist: click me

It's the result of the command http :4000 lat==52.5219184 lng==13.4132147 (using httpie), setting Berlin Alexanderplatz as center.

For another query there was a null element in the feature-array. Is that intentional? I've had some GeoJSON tool stumble over that because they were expecting every element in the array to be a Feature. You can see the other file in the Gist which is not rendered for the example output of http :4000 lat==52 lng==13 which shows this behavior.

Return value maxes out at intervals=10

Following example setup

cd galton
wget https://s3.amazonaws.com/metro-extracts.mapzen.com/moscow_russia.osm.pbf
./node_modules/osrm/lib/binding/osrm-extract -p ./node_modules/osrm/profiles/car.lua moscow_russia.osm.pbf
./node_modules/osrm/lib/binding/osrm-contract moscow_russia.osrm
npm start -- moscow_russia.osrm

using http://download.geofabrik.de/north-america/us/california-latest.osm.pbf.

curl http://localhost:4000 --get --data 'lng=37.62&lat=55.75&intervals=10&intervals=20&&intervals=30' only returns one feature for time=10.

curl http://localhost:4000 --get --data 'lng=-122.139935&lat=37.422744&intervals=30' returns coordinates that looks exactly the same as those returned from intervals=10 (visualizing with geojson.io)

Docker is dying for the request outside of the map

I've built a latest 5.17.2 version with the Berlin map following the Readme
But any request outside of the Berlin will kill the docker with

/usr/local/share/.config/yarn/global/node_modules/isochrone/node_modules/@turf/helpers/index.js:213
            throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");
            ^

Error: Each LinearRing of a Polygon must have 4 or more Positions.
    at Object.polygon (/usr/local/share/.config/yarn/global/node_modules/isochrone/node_modules/@turf/helpers/index.js:213:19)
    at makePolygon (/usr/local/share/.config/yarn/global/node_modules/isochrone/index.js:39:18)
    at Object.keys.reduce (/usr/local/share/.config/yarn/global/node_modules/isochrone/index.js:46:16)
    at Array.reduce (<anonymous>)
    at makePolygons (/usr/local/share/.config/yarn/global/node_modules/isochrone/index.js:43:33)
    at options.osrm.table (/usr/local/share/.config/yarn/global/node_modules/isochrone/index.js:104:26)

https://github.com/urbica/galton/blob/master/src/index.js#L37
And I was expecting 500 response (400 will more suite for that exact problem, but....)

the result is not right

image

foot 5min area and 10min area, but I use the routing api of mapbox to test the result , it is not very good

An in-range update of eslint-plugin-import is breaking the build 🚨

The devDependency eslint-plugin-import was updated from 2.17.2 to 2.17.3.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-import is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 25 commits.

  • cf5573b Bump to v2.17.3
  • caae65c [Tests] eslint 2 does not have linter.version
  • 557a3e2 [Deps] update resolve
  • 17beb33 Merge pull request #1356 from christophercurrie/typescript-declare
  • c8ac7ff [Docs] Document env option for eslint-import-resolver-webpack
  • c09c0ce Issue #1258 (docs)
  • 753c9db [refactor] fix eslint 6 compat by fixing imports
  • b52bf3e PR feedback
  • 7aa13d1 PR feedback
  • f66e064 Remove log messages
  • d1e4455 Verbose variable names
  • 67b1e95 Support older typescript parsers
  • 288cedf Make groups non-capturing.
  • aa290bb Improve support for Typescript declare structures
  • 1edbbd0 [Fix] no-common-js: Also throw an error when assigning

There are 25 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Empty requests are fulfilled using parameters from previous request

Steps to reproduce:

  1. Start a Galton server, e.g.
    docker run -d -p 4000:4000 urbica/galton "https://s3.amazonaws.com/metro-extracts.mapzen.com/moscow_russia.osm.pbf" car
    
  2. Make an empty request:
    $ curl http://localhost:4000 --get
    Coordinates must contain numbers
    
  3. Make a request with data:
    $ curl http://localhost:4000 --get --data 'lng=37.62&lat=55.75'
    {"type":"FeatureCollection","features":[{"type":"Feature","properties":{"time":10},"geometry":{"type":"Polygon","coord...
    
  4. Make another empty request:
    $ curl http://localhost:4000 --get
    {"type":"FeatureCollection","features":[{"type":"Feature","properties":{"time":10},"geometry":{"type":"Polygon","coord...
    

On step 4 I expected to see the error message Coordinates must contain numbers, but instead I got a response from the previous request.

An in-range update of prettier is breaking the build 🚨

The devDependency prettier was updated from 1.17.1 to 1.18.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

prettier is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for 1.18.0

πŸ”— Release Notes

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Version 10 of node.js has been released

Version 10 of Node.js (code name Dubnium) has been released! 🎊

To see what happens to your code in Node.js 10, Greenkeeper has created a branch with the following changes:

  • Added the new Node.js version to your .travis.yml

If you’re interested in upgrading this repo to Node.js 10, you can open a PR with these changes. Please note that this issue is just intended as a friendly reminder and the PR as a possible starting point for getting your code running on Node.js 10.

More information on this issue

Greenkeeper has checked the engines key in any package.json file, the .nvmrc file, and the .travis.yml file, if present.

  • engines was only updated if it defined a single version, not a range.
  • .nvmrc was updated to Node.js 10
  • .travis.yml was only changed if there was a root-level node_js that didn’t already include Node.js 10, such as node or lts/*. In this case, the new version was appended to the list. We didn’t touch job or matrix configurations because these tend to be quite specific and complex, and it’s difficult to infer what the intentions were.

For many simpler .travis.yml configurations, this PR should suffice as-is, but depending on what you’re doing it may require additional work or may not be applicable at all. We’re also aware that you may have good reasons to not update to Node.js 10, which is why this was sent as an issue and not a pull request. Feel free to delete it without comment, I’m a humble robot and won’t feel rejected πŸ€–


FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Application crush after 1st responce

Hi!
Today I was up the centos machine and npm restore all galton's packages. It works like a charme. (I'll wait help from osrm team for compiling osrm for windows)

But after 1st request the galton server responce and crush.

Look at the screenshot below:
image

Blue marker I mark the values from array coordinates ([0] and [1]).
In file ./node_modules/@turf/helpers/index.js, I make next modification.
image

The coordinates was undefined then the point method was invoked.

Is this a bug or I made something wrong?

Steps for reproduce in my case:
OS: Centos 7

  1. Install galton
git clone https://github.com/urbica/galton.git
cd galton
npm install
  1. Process map
wget https://s3.amazonaws.com/metro-extracts.mapzen.com/moscow_russia.osm.pbf
./node_modules/osrm/lib/binding/osrm-extract -p ./node_modules/osrm/profiles/car.lua moscow_russia.osm.pbf
./node_modules/osrm/lib/binding/osrm-contract moscow_russia.osrm
npm start -- moscow_russia.osrm
  1. Run: node index.js "moscow_russia.osrm"
  2. Try to request http://address:4000/?lng=37.62&lat=55.75&intervals=10&intervals=20&&intervals=30

UPDATE
I fix the crush by adding row marked as --->> in code print below
in file galton/src/index.js

 return (req, res) => {
    const { query } = url.parse(req.url, true);
    const options = Object.assign({}, parseQuery(query), { osrm });

    res.setHeader('Content-Type', 'application/json');
    if (config.cors) {
      res.setHeader('Access-Control-Allow-Origin', '*');
    }
 --->>   if(options.lng === undefined || options.lat === undefined) return;

    isochrone([options.lng, options.lat], options)
      .then(geojson => res.end(JSON.stringify(geojson)))
      .catch((error) => {
        res.statusCode = 500;
        res.end(JSON.stringify({ error }));
      });
  };

I don't know right it or no, but it works now.

An in-range update of snyk is breaking the build 🚨

The devDependency snyk was updated from 1.132.2 to 1.133.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

snyk is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v1.133.0

1.133.0 (2019-02-18)

Bug Fixes

  • concise patch error metadata (0ad9e38)
  • more verbose error in case of patch failure (b303094)

Features

  • bump docker plugin to 1.22.0 - handle SHA256 as tag name (174eba0)
Commits

The new version differs by 6 commits.

  • 5b4d54b Merge pull request #378 from snyk/fix/protect-error-verbose
  • d1e005f Merge pull request #377 from snyk/feat/bump-docker-plugin
  • 0ad9e38 fix: concise patch error metadata
  • 49dc318 Merge pull request #375 from snyk/fix/protect-error-verbose
  • 174eba0 feat: bump docker plugin to 1.22.0 - handle SHA256 as tag name
  • b303094 fix: more verbose error in case of patch failure

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Build failure on macosx

Hello,

Trying to install galton using git clone then npm install failed on my macos.

npm version : 6.9.0

mbpt:galton chanegue$ npm install
npm WARN deprecated [email protected]: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).

> [email protected] install /Users/chanegue/Code/galton/node_modules/osrm
> node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh

node-pre-gyp ERR! install error 
node-pre-gyp ERR! stack Error: 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.19.0/Release/node-v67-darwin-x64.tar.gz
node-pre-gyp ERR! stack     at Request.<anonymous> (/Users/chanegue/Code/galton/node_modules/osrm/node_modules/node-pre-gyp/lib/install.js:118:27)
node-pre-gyp ERR! stack     at Request.emit (events.js:198:15)
node-pre-gyp ERR! stack     at Request.onRequestResponse (/Users/chanegue/Code/galton/node_modules/osrm/node_modules/request/request.js:1074:10)
node-pre-gyp ERR! stack     at ClientRequest.emit (events.js:193:13)
node-pre-gyp ERR! stack     at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:560:23)
node-pre-gyp ERR! stack     at HTTPParser.parserOnHeadersComplete (_http_common.js:113:17)
node-pre-gyp ERR! stack     at TLSSocket.socketOnData (_http_client.js:447:22)
node-pre-gyp ERR! stack     at TLSSocket.emit (events.js:193:13)
node-pre-gyp ERR! stack     at addChunk (_stream_readable.js:295:12)
node-pre-gyp ERR! stack     at readableAddChunk (_stream_readable.js:276:11)
node-pre-gyp ERR! System Darwin 18.5.0
node-pre-gyp ERR! command "/usr/local/Cellar/node/11.14.0_1/bin/node" "/Users/chanegue/Code/galton/node_modules/osrm/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build=false"
node-pre-gyp ERR! cwd /Users/chanegue/Code/galton/node_modules/osrm
node-pre-gyp ERR! node -v v11.14.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok 
403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.19.0/Release/node-v67-darwin-x64.tar.gz
~/Code/galton/node_modules/osrm/build ~/Code/galton/node_modules/osrm
CMake Error: The source directory "/Users/chanegue/Code/galton/node_modules/osrm" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
npm WARN [email protected] requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/chanegue/.npm/_logs/2019-05-17T14_08_54_084Z-debug.log
mbpt:galton chanegue$ 

Do you have any idea of what's wrong ?

Build failure on Windows 7 x64

Hello. Could you help me, please? When I try to install galton on my Windows 7 x64, occurs the following problem:

Microsoft Windows [Version 6.1.7601]
(c) ΠšΠΎΡ€ΠΏΠΎΡ€Π°Ρ†ΠΈΡ ΠœΠ°ΠΉΠΊΡ€ΠΎΡΠΎΡ„Ρ‚ (Microsoft Corp.), 2009. ВсС ΠΏΡ€Π°Π²Π° Π·Π°Ρ‰ΠΈΡ‰Π΅Π½Ρ‹.

C:\Users\Maqro>node -v
v8.11.2

C:\Users\Maqro>npm -v
5.6.0

C:\Users\Maqro>cd example

C:\Users\Maqro\example>git clone https://github.com/urbica/galton.git
Cloning into 'galton'...
remote: Counting objects: 1350, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 1350 (delta 1), reused 1 (delta 0), pack-reused 1343
Receiving objects: 100% (1350/1350), 2.09 MiB | 700.00 KiB/s, done.
Resolving deltas: 100% (803/803), done.

C:\Users\Maqro\example>cd galton

C:\Users\Maqro\example\galton>npm install
npm WARN deprecated [email protected]: Package no longer supported. Contact [email protected] for more info.

[email protected] install C:\Users\Maqro\example\galton\node_modules\osrm
node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh

node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.18.0/Release/node-v57-win32-x64.tar.gz
node-pre-gyp ERR! stack at Request. (C:\Users\Maqro\example\galton\node_modules\osrm\node_modules\node-pre-gyp\lib\install.js:118:27)
node-pre-gyp ERR! stack at emitOne (events.js:121:20)
node-pre-gyp ERR! stack at Request.emit (events.js:211:7)
node-pre-gyp ERR! stack at Request.onRequestResponse (C:\Users\Maqro\example\galton\node_modules\osrm\node_modules\request\request.js:1074:10)
node-pre-gyp ERR! stack at emitOne (events.js:116:13)
node-pre-gyp ERR! stack at ClientRequest.emit (events.js:211:7)
node-pre-gyp ERR! stack at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:543:21)
node-pre-gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:112:17)
node-pre-gyp ERR! stack at TLSSocket.socketOnData (_http_client.js:440:20)
node-pre-gyp ERR! stack at emitOne (events.js:116:13)
node-pre-gyp ERR! System Windows_NT 6.1.7601
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Maqro\example\galton\node_modules\osrm\node_modules\node-pre-gyp\bin\node-pre-gyp" "in
stall" "--fallback-to-build=false"
node-pre-gyp ERR! cwd C:\Users\Maqro\example\galton\node_modules\osrm
node-pre-gyp ERR! node -v v8.11.2
node-pre-gyp ERR! node-pre-gyp -v v0.6.38
node-pre-gyp ERR! not ok
403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.18.0/Release/node-v57-win32-x64.tar.gz
"." Π½Π΅ являСтся Π²Π½ΡƒΡ‚Ρ€Π΅Π½Π½Π΅ΠΉ ΠΈΠ»ΠΈ внСшнСй
ΠΊΠΎΠΌΠ°Π½Π΄ΠΎΠΉ, исполняСмой ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠΎΠΉ ΠΈΠ»ΠΈ ΠΏΠ°ΠΊΠ΅Ρ‚Π½Ρ‹ΠΌ Ρ„Π°ΠΉΠ»ΠΎΠΌ.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Maqro\AppData\Roaming\npm-cache_logs\2018-05-19T06_19_20_985Z-debug.log

C:\Users\Maqro\example\galton>

How can I solve this problem? Thanks a lot in advance!

Drivetime intervals near water

Hi,
I'm finding that drivetimes generated near large bodies of water with multiple intervals cause some weird behavior. That is the intervals are not supersets of each other.

Example:
https://galton.urbica.co/?&ll=-122.50264045111601,37.748018657001396&zoom=11.8&city=san-francisco&mode=car&page=cities&lang=en&center=11.8

When asking for a single interval (the larger one) it correctly returns a shape that would cover the smaller one, but when asked for all intervals at once you get these non-overlapping shapes.

Is there a way to fix this?

An in-range update of snyk is breaking the build 🚨

The devDependency snyk was updated from 1.116.1 to 1.116.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

snyk is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v1.116.2

1.116.2 (2018-12-06)

Bug Fixes

  • gpg complains on non-tty mode in docker building process (d04bc43)
Commits

The new version differs by 2 commits.

  • 61889f8 Merge pull request #298 from snyk/fix/gpg-issue-with-dockerfiles
  • d04bc43 fix: gpg complains on non-tty mode in docker building process

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Empty reply from server

Hi all - I am trying to get galton running using the instructions to run the server from docker:

docker run -d -p 4000:4000 urbica/galton "https://s3.amazonaws.com/metro-extracts.mapzen.com/moscow_russia.osm.pbf" car

After the docker image has started, running:

curl http://localhost:4000 --get --data 'lng=37.62&lat=55.75'

gives:

curl: (52) Empty reply from server

Checking docker logs on my container gives the following:

PM2 | Starting execution sequence in -cluster mode- for app name:index id:0
PM2 | App name:index id:0 online
0|index | πŸš€ ON AIR @ :::4000
0|index | Error: Can't set headers after they are sent.
0|index | at validateHeader (_http_outgoing.js:494:11)
0|index | at ServerResponse.setHeader (_http_outgoing.js:501:3)
0|index | at Server. (/usr/src/app/src/index.js:25:11)
0|index | at emitTwo (events.js:126:13)
0|index | at Server.emit (events.js:214:7)
0|index | at parserOnIncoming (_http_server.js:602:12)
0|index | at HTTPParser.parserOnHeadersComplete (_http_common.js:116:23)
PM2 | App name:index id:0 disconnected
PM2 | App [index] with id [0] and pid [104], exited with code [0] via signal [SIGINT]

Any insight/help would be great.
Thanks,
Robert

build failure

Hi all when I try to build the project I have this issue:

npm WARN deprecated @turf/[email protected]: Module has been renamed to @turf/boolean-point-in-polygon
npm WARN deprecated [email protected]: This module is now under the @mapbox namespace: install @mapbox/geojson-area instead

[email protected] install /root/.nvm/node_modules/osrm
node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh

node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.10.0/Release/node-v47-linux-x64.tar.gz
node-pre-gyp ERR! stack at Request. (/root/.nvm/node_modules/osrm/node_modules/node-pre-gyp/lib/install.js:118:27)
node-pre-gyp ERR! stack at emitOne (events.js:95:20)
node-pre-gyp ERR! stack at Request.emit (events.js:182:7)
node-pre-gyp ERR! stack at Request.onRequestResponse (/root/.nvm/node_modules/osrm/node_modules/request/request.js:1074:10)
node-pre-gyp ERR! stack at emitOne (events.js:90:13)
node-pre-gyp ERR! stack at ClientRequest.emit (events.js:182:7)
node-pre-gyp ERR! stack at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:469:21)
node-pre-gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:103:23)
node-pre-gyp ERR! stack at TLSSocket.socketOnData (_http_client.js:359:20)
node-pre-gyp ERR! stack at emitOne (events.js:90:13)
node-pre-gyp ERR! System Linux 4.4.0-51-generic
node-pre-gyp ERR! command "/root/.nvm/versions/node/v5.12.0/bin/node" "/root/.nvm/node_modules/osrm/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build=false"
node-pre-gyp ERR! cwd /root/.nvm/node_modules/osrm
node-pre-gyp ERR! node -v v5.12.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.36
node-pre-gyp ERR! not ok
403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.10.0/Release/node-v47-linux-x64.tar.gz
~/.nvm/node_modules/osrm/build ~/.nvm/node_modules/osrm
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building on a 64 bit system
-- Using GNU gold as linker.
-- Configuring OSRM in release mode
-- Configuring release mode optimizations
-- Performing Test LTO_AVAILABLE
-- Performing Test LTO_AVAILABLE - Success
-- Performing Test HAS_COLOR_FLAG
-- Performing Test HAS_COLOR_FLAG - Success
-- Setting linker optimizations
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- date_time
-- chrono
-- filesystem
-- iostreams
-- program_options
-- regex
-- system
-- thread
-- unit_test_framework
-- atomic
-- Found Intel TBB
-- TBB interface version: 9002
-- Found EXPAT: /usr/lib/x86_64-linux-gnu/libexpat.so (found version "2.1.0")
-- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.6")
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Found Lua: /usr/lib/x86_64-linux-gnu/liblua5.2.so;/usr/lib/x86_64-linux-gnu/libm.so (found suitable exact version "5.2.4")
-- Using Lua 5.2.4
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
-- Looking for protozero
-- Looking for protozero - found
-- Found Osmium: /root/.nvm/node_modules/osrm/third_party/libosmium/include
-- Building node_osrm
-- Downloading: https://nodejs.org/download/release/v5.12.0/SHASUMS256.txt
-- NodeJS: Using node, version v5.12.0
-- Downloading: https://nodejs.org/download/release/v5.12.0/node-v5.12.0-headers.tar.gz
-- Configuring node_osrm bindings for NodeJs v5.12.0
-- node_osrm artifacts will be copied to: /root/.nvm/node_modules/osrm/lib/binding
-- Configuring done
-- Generating done
-- Build files have been written to: /root/.nvm/node_modules/osrm/build
Scanning dependencies of target UTIL
[ 0%] Building CXX object CMakeFiles/UTIL.dir/src/util/log.cpp.o
[ 3%] Building CXX object CMakeFiles/UTIL.dir/src/util/coordinate.cpp.o
[ 3%] Building CXX object CMakeFiles/UTIL.dir/src/util/fingerprint.cpp.o
[ 3%] Building CXX object CMakeFiles/UTIL.dir/src/util/timezones.cpp.o
[ 3%] Building CXX object CMakeFiles/UTIL.dir/src/util/timed_historgram.cpp.o
[ 3%] Building CXX object CMakeFiles/UTIL.dir/src/util/name_table.cpp.o
[ 7%] Building CXX object CMakeFiles/UTIL.dir/src/util/coordinate_calculation.cpp.o
[ 7%] Building CXX object CMakeFiles/UTIL.dir/src/util/opening_hours.cpp.o
[ 7%] Building CXX object CMakeFiles/UTIL.dir/src/util/geojson_debug_policies.cpp.o
[ 7%] Building CXX object CMakeFiles/UTIL.dir/src/util/assert.cpp.o
[ 7%] Building CXX object CMakeFiles/UTIL.dir/src/util/exception.cpp.o
[ 11%] Building CXX object CMakeFiles/UTIL.dir/src/util/conditional_restrictions.cpp.o
[ 11%] Building CXX object CMakeFiles/UTIL.dir/src/util/guidance/bearing_class.cpp.o
[ 11%] Building CXX object CMakeFiles/UTIL.dir/src/util/guidance/turn_bearing.cpp.o
[ 11%] Building CXX object CMakeFiles/UTIL.dir/src/util/guidance/turn_lanes.cpp.o
[ 11%] Building CXX object CMakeFiles/UTIL.dir/src/util/guidance/entry_class.cpp.o
[ 11%] Built target UTIL
Scanning dependencies of target UPDATER
[ 11%] Building CXX object CMakeFiles/UPDATER.dir/src/updater/updater.cpp.o
[ 11%] Building CXX object CMakeFiles/UPDATER.dir/src/updater/csv_source.cpp.o
[ 11%] Built target UPDATER
Scanning dependencies of target osrm_update
[ 11%] Linking CXX static library libosrm_update.a
[ 11%] Built target osrm_update
Scanning dependencies of target CONTRACTOR
[ 11%] Building CXX object CMakeFiles/CONTRACTOR.dir/src/contractor/graph_contractor.cpp.o
[ 11%] Building CXX object CMakeFiles/CONTRACTOR.dir/src/contractor/contractor_dijkstra.cpp.o
[ 11%] Building CXX object CMakeFiles/CONTRACTOR.dir/src/contractor/contractor.cpp.o
[ 11%] Built target CONTRACTOR
Scanning dependencies of target osrm_contract
[ 11%] Building CXX object CMakeFiles/osrm_contract.dir/src/osrm/contractor.cpp.o
[ 11%] Linking CXX static library libosrm_contract.a
[ 11%] Built target osrm_contract
Scanning dependencies of target SERVER
[ 11%] Building CXX object CMakeFiles/SERVER.dir/src/server/request_handler.cpp.o
[ 15%] Building CXX object CMakeFiles/SERVER.dir/src/server/request_parser.cpp.o
[ 15%] Building CXX object CMakeFiles/SERVER.dir/src/server/service_handler.cpp.o
[ 15%] Building CXX object CMakeFiles/SERVER.dir/src/server/connection.cpp.o
[ 15%] Building CXX object CMakeFiles/SERVER.dir/src/server/http/reply.cpp.o
[ 15%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/trip_service.cpp.o
[ 15%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/match_service.cpp.o
[ 19%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/tile_service.cpp.o
[ 19%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/table_service.cpp.o
[ 19%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/route_service.cpp.o
[ 19%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/nearest_service.cpp.o
[ 19%] Building CXX object CMakeFiles/SERVER.dir/src/server/api/url_parser.cpp.o
[ 23%] Building CXX object CMakeFiles/SERVER.dir/src/server/api/parameters_parser.cpp.o
[ 23%] Built target SERVER
Scanning dependencies of target PARTITIONER
[ 23%] Building CXX object CMakeFiles/PARTITIONER.dir/src/partition/graph_view.cpp.o
[ 26%] Building CXX object CMakeFiles/PARTITIONER.dir/src/partition/bisection_to_partition.cpp.o
[ 26%] Building CXX object CMakeFiles/PARTITIONER.dir/src/partition/partitioner.cpp.o
[ 26%] Building CXX object CMakeFiles/PARTITIONER.dir/src/partition/tarjan_graph_wrapper.cpp.o
[ 26%] Building CXX object CMakeFiles/PARTITIONER.dir/src/partition/inertial_flow.cpp.o
[ 26%] Building CXX object CMakeFiles/PARTITIONER.dir/src/partition/recursive_bisection.cpp.o
[ 30%] Building CXX object CMakeFiles/PARTITIONER.dir/src/partition/renumber.cpp.o
[ 30%] Building CXX object CMakeFiles/PARTITIONER.dir/src/partition/annotated_partition.cpp.o
[ 30%] Building CXX object CMakeFiles/PARTITIONER.dir/src/partition/dinic_max_flow.cpp.o
[ 30%] Building CXX object CMakeFiles/PARTITIONER.dir/src/partition/recursive_bisection_state.cpp.o
[ 30%] Built target PARTITIONER
Scanning dependencies of target STORAGE
[ 30%] Building CXX object CMakeFiles/STORAGE.dir/src/storage/io_config.cpp.o
[ 30%] Building CXX object CMakeFiles/STORAGE.dir/src/storage/storage.cpp.o
[ 30%] Built target STORAGE
Scanning dependencies of target EXTRACTOR
[ 30%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/restriction_map.cpp.o
[ 30%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/graph_compressor.cpp.o
[ 34%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/compressed_edge_container.cpp.o
[ 34%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/extraction_containers.cpp.o
[ 34%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/restriction_parser.cpp.o
/root/.nvm/node_modules/osrm/src/extractor/restriction_parser.cpp: In member function β€˜boost::optionalosrm::extractor::InputConditionalTurnRestriction osrm::extractor::RestrictionParser::TryParse(const osmium::Relation&) const’:
/root/.nvm/node_modules/osrm/src/extractor/restriction_parser.cpp:130:75: warning: β€˜((void)& to +8)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
boost::optionalstd::uint64_t from = boost::none, via = boost::none, to = boost::none;
^
/root/.nvm/node_modules/osrm/src/extractor/restriction_parser.cpp:130:56: warning: β€˜((void)& via +8)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
boost::optionalstd::uint64_t from = boost::none, via = boost::none, to = boost::none;
^
/root/.nvm/node_modules/osrm/src/extractor/restriction_parser.cpp:130:36: warning: β€˜((void)& from +8)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
boost::optionalstd::uint64_t from = boost::none, via = boost::none, to = boost::none;
^
[ 34%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/scripting_environment_lua.cpp.o
[ 34%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/edge_based_graph_factory.cpp.o
[ 34%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/suffix_table.cpp.o
[ 38%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/extractor.cpp.o
[ 38%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/restriction_filter.cpp.o
[ 38%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/raster_source.cpp.o
[ 38%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/way_restriction_map.cpp.o
[ 38%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/restriction_compressor.cpp.o
[ 42%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/extractor_callbacks.cpp.o
[ 42%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/turn_classification.cpp.o
[ 42%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/driveway_handler.cpp.o
[ 42%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/roundabout_handler.cpp.o
[ 42%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/turn_handler.cpp.o
[ 46%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/intersection_generator.cpp.o
[ 46%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/motorway_handler.cpp.o
[ 46%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/turn_discovery.cpp.o
[ 46%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/sliproad_handler.cpp.o
[ 46%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/intersection_handler.cpp.o
[ 46%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/node_based_graph_walker.cpp.o
[ 50%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/turn_lane_data.cpp.o
[ 50%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/coordinate_extractor.cpp.o
[ 50%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/turn_lane_augmentation.cpp.o
[ 50%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/turn_lane_handler.cpp.o
[ 50%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/turn_analysis.cpp.o
[ 53%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/suppress_mode_handler.cpp.o
[ 53%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/intersection_normalizer.cpp.o
[ 53%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/mergable_road_detector.cpp.o
[ 53%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/intersection.cpp.o
[ 53%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/turn_lane_matcher.cpp.o
[ 53%] Built target EXTRACTOR
Scanning dependencies of target osrm_extract
[ 53%] Building CXX object CMakeFiles/osrm_extract.dir/src/osrm/extractor.cpp.o
[ 53%] Linking CXX static library libosrm_extract.a
[ 53%] Built target osrm_extract
Scanning dependencies of target osrm-extract
[ 57%] Building CXX object CMakeFiles/osrm-extract.dir/src/tools/extract.cpp.o
[ 57%] Linking CXX executable osrm-extract
[ 57%] Built target osrm-extract
Scanning dependencies of target osrm_partition
[ 61%] Linking CXX static library libosrm_partition.a
[ 61%] Built target osrm_partition
Scanning dependencies of target osrm-partition
[ 61%] Building CXX object CMakeFiles/osrm-partition.dir/src/tools/partition.cpp.o
[ 61%] Linking CXX executable osrm-partition
[ 61%] Built target osrm-partition
Scanning dependencies of target osrm-components
[ 61%] Building CXX object CMakeFiles/osrm-components.dir/src/tools/components.cpp.o
[ 61%] Linking CXX executable osrm-components
[ 61%] Built target osrm-components
Scanning dependencies of target osrm_store
[ 61%] Linking CXX static library libosrm_store.a
[ 61%] Built target osrm_store
Scanning dependencies of target osrm-datastore
[ 61%] Building CXX object CMakeFiles/osrm-datastore.dir/src/tools/store.cpp.o
[ 61%] Linking CXX executable osrm-datastore
[ 61%] Built target osrm-datastore
Scanning dependencies of target CUSTOMIZER
[ 61%] Building CXX object CMakeFiles/CUSTOMIZER.dir/src/customize/customizer.cpp.o
[ 61%] Built target CUSTOMIZER
Scanning dependencies of target ENGINE
[ 61%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/engine_config.cpp.o
[ 65%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/hint.cpp.o
[ 65%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/douglas_peucker.cpp.o
[ 65%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/search_engine_data.cpp.o
[ 65%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/polyline_compressor.cpp.o
[ 65%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/api/json_factory.cpp.o
[ 69%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/datafacade/process_memory_allocator.cpp.o
[ 69%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/datafacade/shared_memory_allocator.cpp.o
[ 69%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/assemble_overview.cpp.o
[ 69%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/post_processing.cpp.o
[ 69%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/assemble_route.cpp.o
[ 69%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/assemble_steps.cpp.o
[ 73%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/lane_processing.cpp.o
[ 73%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/verbosity_reduction.cpp.o
[ 73%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/collapse_turns.cpp.o
[ 73%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/collapse_scenario_detection.cpp.o
[ 73%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/routing_algorithms/shortest_path.cpp.o
[ 76%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/routing_algorithms/tile_turns.cpp.o
[ 76%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/routing_algorithms/direct_shortest_path.cpp.o
[ 76%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/routing_algorithms/routing_base_ch.cpp.o
[ 76%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/routing_algorithms/alternative_path_ch.cpp.o
[ 76%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/routing_algorithms/routing_base.cpp.o
[ 80%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/routing_algorithms/alternative_path_mld.cpp.o
[ 80%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/routing_algorithms/many_to_many.cpp.o
[ 80%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/routing_algorithms/map_matching.cpp.o
[ 80%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/viaroute.cpp.o
[ 80%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/table.cpp.o
[ 80%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/trip.cpp.o
[ 84%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/tile.cpp.o
[ 84%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/match.cpp.o
[ 84%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/nearest.cpp.o
[ 84%] Built target ENGINE
Scanning dependencies of target osrm_customize
[ 84%] Linking CXX static library libosrm_customize.a
[ 84%] Built target osrm_customize
Scanning dependencies of target osrm-customize
[ 84%] Building CXX object CMakeFiles/osrm-customize.dir/src/tools/customize.cpp.o
[ 84%] Linking CXX executable osrm-customize
[ 84%] Built target osrm-customize
Scanning dependencies of target osrm-contract
[ 88%] Building CXX object CMakeFiles/osrm-contract.dir/src/tools/contract.cpp.o
[ 88%] Linking CXX executable osrm-contract
[ 88%] Built target osrm-contract
Scanning dependencies of target osrm
[ 88%] Building CXX object CMakeFiles/osrm.dir/src/osrm/osrm.cpp.o
[ 88%] Linking CXX static library libosrm.a
[ 88%] Built target osrm
Scanning dependencies of target osrm-routed
[ 88%] Building CXX object CMakeFiles/osrm-routed.dir/src/tools/routed.cpp.o
[ 92%] Linking CXX executable osrm-routed
[ 92%] Built target osrm-routed
Scanning dependencies of target node_osrm
[ 92%] Building CXX object src/nodejs/CMakeFiles/node_osrm.dir/node_osrm.cpp.o
In file included from /root/.nvm/node_modules/osrm/build/src/nodejs/node/v5.12.0/include/node.h:42:0,
from /root/.nvm/node_modules/osrm/node_modules/nan/nan.h:49,
from /root/.nvm/node_modules/osrm/include/nodejs/node_osrm.hpp:6,
from /root/.nvm/node_modules/osrm/src/nodejs/node_osrm.cpp:15:
/root/.nvm/node_modules/osrm/build/src/nodejs/node/v5.12.0/include/v8.h:4743:20: warning: unused parameter β€˜isolate’ [-Wunused-parameter]
v8::Isolate* isolate, v8::Localv8::String name) {
^
/root/.nvm/node_modules/osrm/build/src/nodejs/node/v5.12.0/include/v8.h:4743:51: warning: unused parameter β€˜name’ [-Wunused-parameter]
v8::Isolate* isolate, v8::Localv8::String name) {
^
/root/.nvm/node_modules/osrm/build/src/nodejs/node/v5.12.0/include/v8.h:5159:50: warning: unused parameter β€˜string’ [-Wunused-parameter]
virtual void VisitExternalString(Local string) {}
^
/root/.nvm/node_modules/osrm/build/src/nodejs/node/v5.12.0/include/v8.h:5169:57: warning: unused parameter β€˜value’ [-Wunused-parameter]
virtual void VisitPersistentHandle(Persistent* value,
^
/root/.nvm/node_modules/osrm/build/src/nodejs/node/v5.12.0/include/v8.h:5170:47: warning: unused parameter β€˜class_id’ [-Wunused-parameter]
uint16_t class_id) {}
^
/root/.nvm/node_modules/osrm/build/src/nodejs/node/v5.12.0/include/v8.h:7008:55: warning: unused parameter β€˜isolate’ [-Wunused-parameter]
V8_INLINE static void CheckInitialized(v8::Isolate* isolate) {
^
[ 96%] Linking CXX shared library Release/node_osrm.node
[ 96%] Built target node_osrm
Scanning dependencies of target copy_artifacts
[ 96%] Generating ../../../lib/binding/osrm-extract
[ 96%] Generating ../../../lib/binding/osrm-contract
[ 96%] Generating ../../../lib/binding/osrm-routed
[100%] Generating ../../../lib/binding/osrm-datastore
[100%] Generating ../../../lib/binding/osrm-components
[100%] Generating ../../../lib/binding/osrm-partition
[100%] Generating ../../../lib/binding/osrm-customize
[100%] Generating ../../../lib/binding/node_osrm.node
[100%] Built target copy_artifacts
~/.nvm/node_modules/osrm
[email protected] /root/.nvm
β”œβ”€β”€ [email protected]
β”œβ”€β”€ [email protected] extraneous
β”œβ”€β”¬ [email protected]
β”‚ └── [email protected]
β”œβ”€β”¬ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ └── [email protected]
└─┬ [email protected]
└─┬ [email protected]
β”œβ”€β”€ [email protected]
β”œβ”€β”¬ [email protected]
β”‚ └── [email protected]
β”œβ”€β”€ [email protected]
β”œβ”€β”¬ [email protected]
β”‚ └─┬ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ └── [email protected]
β”œβ”€β”€ [email protected]
└── [email protected]
Any helps?
Regards,
Ema.

An in-range update of snyk is breaking the build 🚨

The dependency snyk was updated from 1.165.1 to 1.165.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

snyk is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for v1.165.2

1.165.2 (2019-05-21)

Bug Fixes

  • do not scan all Gradle subprojects unless requested (4c303b7)
Commits

The new version differs by 9 commits.

  • b545590 Merge pull request #529 from snyk/fix/gradle-no-scan-all-unnecessary
  • 9ae418f Merge pull request #527 from snyk/refactor/supported-wizard-langs
  • 2cc3f64 refactor: Add package manager lib to keep track of support
  • 4c303b7 fix: do not scan all Gradle subprojects unless requested
  • 721c38c refactor: Keep track of supported wizard package managers instead
  • de5346c Merge pull request #519 from snyk/refactor/convert-auth-to-ts
  • bb7833f refactor: convert is ci to ts
  • 2548cbd refactor: Convert old style errors to new style
  • 6f6e54e refactor: converty auth.js to => ts

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

OSRM 5.19.0 compatibility

Is there any compatibility possible yet with OSRM 5.19.0? With various combinations I cannot get this to work:

Using the released version of Galton, an incompatibility error is noted:

> node_modules/galton/index.js  /path/to/data.osrm
TypeError: File is incompatible with this version of OSRM: /path/to/merged.osrm.icd prepared with OSRM 5.19.0 but this is v5.18.0 (at include/storage/tar.hpp:204)

Upgrading to [email protected] (with nvm use 8.0) gives:

/path/to/node_modules/galton/src/commands/utils.js:11
          ...selectShellOptions
          ^^^

SyntaxError: Unexpected token ...
    at createScript (vm.js:74:10)
    at Object.runInThisContext (vm.js:116:10)
    at Module._compile (module.js:533:28)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/path/to/node_modules/galton/src/commands/extract.js:7:20)

Using [email protected] (with nvm use 10.0 instead) gives an install error:

$ npm install [email protected]

> [email protected] install /path/to/node_modules/osrm
> node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh

node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.19.0/Release/node-v64-linux-x64.tar.gz
node-pre-gyp ERR! stack     at Request.<anonymous> (/wpath/to/node_modules/osrm/node_modules/node-pre-gyp/lib/install.js:118:27)
node-pre-gyp ERR! stack     at Request.emit (events.js:187:15)
node-pre-gyp ERR! stack     at Request.onRequestResponse (/path/to/node_modules/osrm/node_modules/request/request.js:1074:10)
node-pre-gyp ERR! stack     at ClientRequest.emit (events.js:182:13)
node-pre-gyp ERR! stack     at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:534:21)
node-pre-gyp ERR! stack     at HTTPParser.parserOnHeadersComplete (_http_common.js:109:17)
node-pre-gyp ERR! stack     at TLSSocket.socketOnData (_http_client.js:421:20)
node-pre-gyp ERR! stack     at TLSSocket.emit (events.js:182:13)
node-pre-gyp ERR! stack     at addChunk (_stream_readable.js:280:12)
node-pre-gyp ERR! stack     at readableAddChunk (_stream_readable.js:265:11)
node-pre-gyp ERR! System Linux 4.15.0-38-generic
node-pre-gyp ERR! command "/home/myUsername/.nvm/versions/node/v10.0.0/bin/node" "/path/to/node_modules/osrm/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build=false"
node-pre-gyp ERR! cwd /path/to/node_modules/osrm
node-pre-gyp ERR! node -v v10.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.19.0/Release/node-v64-linux-x64.tar.gz
/path/to/node_modules/osrm/build /path/to/node_modules/osrm
CMake Error: The source directory "/path/to/node_modules/osrm" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
npm WARN enoent ENOENT: no such file or directory, open '/path/to/package.json'
npm WARN myDomain No description
npm WARN myDomain No repository field.
npm WARN myDomain No README data
npm WARN myDomain No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/myUsername/.npm/_logs/2019-02-11T18_35_43_808Z-debug.log

An in-range update of snyk is breaking the build 🚨

The devDependency snyk was updated from 1.130.0 to 1.131.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

snyk is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v1.131.0

1.131.0 (2019-02-17)

Features

  • use jsdiff instead of 'patch' to reduce dependency on OS binaries (3e5838a)
Commits

The new version differs by 2 commits.

  • 90b0830 Merge pull request #355 from snyk/feat/jsdiff
  • 3e5838a feat: use jsdiff instead of 'patch' to reduce dependency on OS binaries

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Couldn't change --cellSize parameter

Hi, I use Galton on Docker.
When I run Galton and try to change size of cells or, for example, a radius of isochrones, nothing changes. There are the same default cutted polygons in the output. But I would like to get full "version" of polygons. What do I do wrong?

sudo docker run -t -i -p 4000:4000 -v $(pwd):/data urbica/galton:v5.18.0 galton /data/central-fed-district-latest.osrm --cellSize 2.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.