if it is not possible please suggest any ideas to build up the logic.
eg of the URI :
https://www.google.com/maps/dir/?api=1&origin=43.7967876,-79.5331616&