All Projects → urbica → Galton

urbica / Galton

Licence: mit
Lightweight Node.js isochrone map server

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Galton

Xcsoar
... the open-source glide computer
Stars: ✭ 196 (-21.29%)
Mutual labels:  map
Torchdata
PyTorch dataset extended with map, cache etc. (tensorflow.data like)
Stars: ✭ 226 (-9.24%)
Mutual labels:  map
Libdict
C library of key-value data structures.
Stars: ✭ 234 (-6.02%)
Mutual labels:  map
Openglobus
JavaScript 3d maps and geospatial data visualization engine library.
Stars: ✭ 199 (-20.08%)
Mutual labels:  map
Hamt
Immutable and Memory-Efficient Maps and Sets in Go
Stars: ✭ 213 (-14.46%)
Mutual labels:  map
Ol3echarts
🌏 📊 ol3Echarts | a openlayers extension to echarts
Stars: ✭ 229 (-8.03%)
Mutual labels:  map
Droneworld
droneWorld: a 3D world map and a three.js playground
Stars: ✭ 197 (-20.88%)
Mutual labels:  map
Phunctional
⚡️ λ PHP functional library focused on simplicity and performance
Stars: ✭ 243 (-2.41%)
Mutual labels:  map
Mocs
My Own Car System, a Go & Qt application for your car
Stars: ✭ 218 (-12.45%)
Mutual labels:  map
Gmapsfx
Java API for using Google Maps within a JavaFX application.
Stars: ✭ 233 (-6.43%)
Mutual labels:  map
Brutile
BruTile is a .NET library to access tile services like those of OpenStreetMap, MapBox or GeodanMaps.
Stars: ✭ 203 (-18.47%)
Mutual labels:  map
Dc Sdk
DC-SDK 是基于 Cesium 进行二次开发的2、3D一体 WebGis 应用框架,该框架优化了 Cesium 的使用方式和增添了一些额外功能,旨在为开发者快速构建 WebGis 应用。🌎
Stars: ✭ 206 (-17.27%)
Mutual labels:  map
Inmap
大数据地理可视化
Stars: ✭ 2,627 (+955.02%)
Mutual labels:  map
Syncmap
A typed implementation of the Go sync.Map using code generation
Stars: ✭ 200 (-19.68%)
Mutual labels:  map
Rrt exploration
A ROS package that implements a multi-robot RRT-based map exploration algorithm. It also has the image-based frontier detection that uses image processing to extract frontier points.
Stars: ✭ 236 (-5.22%)
Mutual labels:  map
L7
🌎 Large-scale WebGL-powered Geospatial Data Visualization analysis framework which relies on Mapbox GL or AMap to render basemaps.
Stars: ✭ 2,517 (+910.84%)
Mutual labels:  map
Locationpicker
iOS location picker view controller
Stars: ✭ 226 (-9.24%)
Mutual labels:  map
Go Staticmaps
A go (golang) library and command line tool to render static map images using OpenStreetMap tiles.
Stars: ✭ 246 (-1.2%)
Mutual labels:  map
Planarally
A companion tool for when you travel into the planes.
Stars: ✭ 242 (-2.81%)
Mutual labels:  map
Collectable
High-performance immutable data structures for modern JavaScript and TypeScript applications. Functional interfaces, deep/composite operations API, mixed mutability API, TypeScript definitions, ES2015 module exports.
Stars: ✭ 233 (-6.43%)
Mutual labels:  map

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].