I'm trying to create a web application that given two points : S(lat,long) and D(lat,long), find the shortest path between them.
My problem is : I do not know how to use A* or other AI algorithm to find the shortest path given the nodes and ways from here : "http://overpass.osm.rambler.ru/cgi/interpreter?" and after that reconstruct the solution, building the path in the map. I'm using Overpass API to get the nodes and ways, using an approach by "rectangle" between the geo points(i know this is bad, because you can have a shortest path the is not in this rectangle, but i do not see a better solution with this API).
Anyone could give me some advice on how to proceed? I can post my code here if you guys want.