Google Map - Dispaly Directions

Hi, I’m Using jquery-gmap extension to display the user filled location(fetch from database). User already filled the from address and to address, that is stored in the database. Now I want to display the from and to address with directions.

Please any one help me. Is there any default options is there or we have to implement(write any function) to get above requirement.

Previously i have used the google map api in that i can;t display the map in the foreach loop? Why its not displaying?