The documentation for API v3 says google.maps.LatLng or a string. For geographic locations, create and go to google.maps.LatLng; for addresses, pass the string.
origin: LatLng | String, destination: LatLng | String,
And in reference
destination LatLng|string Location of destination. This can be specified as either a string to be geocoded or a LatLng. Required. origin LatLng|string Location of origin. This can be specified as either a string to be geocoded or a LatLng. Required.
and for waypoint :
location LatLng|string Waypoint location. Can be an address string or LatLng. Optional.
geocodezip
source share