Direction using latitude and longitude using jsp

i can fetch latitude and longitude of places but need direction from current postion of that lan and lat address.

or

their is any way we can only enter ouput address of google api we get direct with map