Good evening. Recently I decided with a friend to test the knowledge we have gained from a 6-month education, and so we decided to create a mini-routing program based on OSM as our “finishing” project . We parsed the XML successfully, we inserted the coordinates in a custom-made Java class and with the help of a k-short algorithm we got a viable route (an arraylist of nodes) between two nodes.
Our next step was to display that route on OSM. But despite our 3-days of search on the net, we have not found a complete way to do it. I tried with JS, but have only managed to draw semi-random lines that fail spectacularly when we use real coordinates. This is the 3rd evening I fail to progress, it’s making me feel rather hopeless right now, so I started posting around to see if anyone can offer us some guidelines,links or notes as to how this is done. As for my attempts, I tried Open Layers and it was not good, and I found no way to do what I need in leaflet despite trying many examples. Is there anyone who has any idea?