/pgRouting-Direction-API

pgRouting direction API written in Node JS

Primary LanguageJavaScriptMIT LicenseMIT

pgRouting-API MIT licensed

A complete solution of pgRouting direction API written in Node js.

Setup

  • edit .env file according to your postgres connection, pgRouting table name and express js settings.

  • *if your pgrouting database table schema/name of columns is different, you have to change the query schema in src/pgrouting.js

Install Modules

npm install

Start Development Server

npm start

API Request Example

Todo:

  • Way Points
  • Docker
  • Handle other pgRouting capabilities.