/nrn-routing

A simple National Road Network routing application.

Primary LanguageJavaScript

National Road Network (NRN) Routing Application

A proof-of-concept that uses the National Road Network to build a point-to-point routing application using Dijkstra's Shortest Path Algorithm on top of GeoServer and PostgreSQL/PostGIS Docker containers.

demo image

Requirements

  • Geospatial Data Abstraction Library (GDAL) 3 - ogr2ogr
  • Docker and Docker-Compose
  • Python 3.*

Getting Started

1. Build the Docker containers for GeoServer and PostGIS.

$ docker-compose up --build -d

2. Download the NRN road network, build the network costs and interact with the GeoServer RESTful API.

$ ./build.sh

3. View the web map using Python HTTPServer.

$ python3 -m http.server 8000

Enter, http://localhost:8000, in a browser of your choice.

To Do:

  • Integrate functionality for other provinces.
  • Further testing of routing algorithms.

Acknowledgements