0

I am new to Open Source GIS. I have already created a web mapping using custom tiles and leaflet. I have used my my own database. Tilemill was used to create the tiles and leaflet was used to visualize the tiles. Now I want to create a query of routing and Drive direction on the web mapping. I saw some tutorials of underdark in the following blog where routing visualization was done through QGIS software.

http://underdark.wordpress.com/tag/pgrouting/

Now I want to know that whether it is possible to use my custom data (shape file) as postGIS to visualize routing on web map or not?

closed as too broad by PolyGeo Aug 26 at 21:02

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    This is a really confusing question. Can you explain what you already have in terms of input data, what you already have (perhaps a diagram of your architecture?) and exactly what functionality doesn't yet exist that you need? – BradHards Dec 22 '12 at 0:08
3

pgRouting and PostGIS dont't restrict you in how you display a route. Whether you use LEaflet, OpenLayers or QGIS, you always need to import your road network data into a PostgreSQL database, prepare it to be able to run the pgRouting shortest path function, etc.. And then you will have to write an application that for example accepts a start and end point as parameters and returns a route in a format that Leaflet for example can display.

1

This youtube series goes through the process of acquiring network data for pgRouting, importing into Geoserver and building an application using leaflet https://www.youtube.com/watch?v=6gfdQmFkVmE&list=PLaOYwKHOUv7Z2KyZNTXhLhwYm-XeEs34H

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

  • 2
    As links can break or videos be removed, please provide a small description of the process so that future users can use this answer even if the links breaks. – Kantan Dec 11 '18 at 16:53
0

pgRouting is backend, you have to write the SQL queries to use for front-end,

Here is a Simple Backend Service for Pgrouting written in Node js Express. to provide a route for front-end or mobile application.

Setup config and use.

https://github.com/I1mran/pgRouting-Web-API

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

Not the answer you're looking for? Browse other questions tagged or ask your own question.