The scenario would be like when i click on the map coordinate for the 1st time it will fill the "origin" text box, and when i click again on another map coordinate the 2nd click will fill the "destination" text box. Note that the value expected on the text box should contain Longitude and Latitude value (for example : 103.541, 3.002). After both of the text box is filled, there is a "submit" button that will send both value (origin and destination) to php url to be processed further.
I also attached file workbook sample using Superstore data and a screenshot of the whole HTML page that im trying to create. Any help with step by step instruction, concept understanding or even some sample code would help a lot!