I created a digital database of many important features and locations of my city. and I want to create a web application in which shortest distance between two locations can be calculated and displayed. Is it possible with openlayers as client scripting. My shapefiles are in postgis.
What I am expecting is :
The database contains all roads, point features etc.
When the user types a location, the required location name can be listed out from the database and then user can similarly select another location
Then my technique is to find the nearest road points for the two locations (may be using buffer method) and then
finding the shortest and possible routes between the two road points along the road vector features.
But I don't know how to write the code and algorithms.