Skip to content

catchment calculation API based on OSM Data and powered by Rails 4

Notifications You must be signed in to change notification settings

chriserik/magellan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

needs a PostGIS 2.1 database with pgrouting support on top of Postgresql 9.2/9.3

on OSX, use this formula:

brew install raw.github.com/mbrookes/homebrew/12624fcbe2fd64bd2f757990fe864b77d85d7cd8/Library/Formula/pgrouting.rb

start initial import process with rake:routing:initial_import. This takes several hours for the whole world.

Api Documentation

request endpoint: /api/v1/catchment.json

Requests take the following parameters (All requests authenticate with an auth_token with has to be created in the backend)

  • lat (Latitude of the origin)

  • lng (Longitude of the origin)

  • max_time (in minutes, takes any Integer between 5 and 60)

  • mode (may be “car” or “rail”)

Returns a geojson wich can be overlayed on the map for P-i-P querying and else.

About

catchment calculation API based on OSM Data and powered by Rails 4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published