Select you need :

google map road api

geocode sample
Using PHP/MySQL with Google Maps
Creating a Store Locator with PHP, MySQL & Google Maps

Waypoints in directions

Real Time GPS Tracker with Integrated Google Maps :

Google Maps Geolocation Tracking in Realtime with JavaScript

Geolocation Tracker (GPRS + GPS) with SIM908 over Arduino and Raspberry Pi