I use osm map in my project and I want to draw shortest line between two point like this: enter image description here

How do they draw this path? Give me please a clue )


I found answer!) Just need haversine formula to calculate distance in rad, then use formula from here: Ed Williams, Aviation Formulary

  • A couple of problems, so far: 1. You don't reproduce any formulas here (what if the link breaks?). 2. The solution gives geographic coords (lat, long) while the questions asks for Mercator (projected) coords. – Martin F Oct 3 '15 at 19:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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