I want to create a shortest route in openlayers. I created the sql queries of shortest route algorithms and can query shortest route in sql. Now I want to create a search functionality so that the user can type the origin and destination names and latlon values of the points are retrieved and then shortest distance is calculated in between the nearest edges to the points. And then it is displayed by converting into geojson.
Now I want to know how can I provide a automated search functionality on my data (shapefile or GeoJson or form WMS service or any other format).
I have two shapefiles. In one shapefile, there is road network and in the other point features. Now I should search in point features data. Please help!
I dont want to use WFS because I read it is deprecated and also the processing is very high if the data is big