public DirectionsApiRequest waypointsFromPlaceIds ( String ... waypoints ) { Waypoint [ ] objWaypoints = new Waypoint [ waypoints . length ] ; for ( int i = 0 ; i < waypoints . length ; i ++ ) { objWaypoints [ i ] = new Waypoint ( prefixPlaceId ( waypoints [ i ] ) ) ; } return waypoints ( objWaypoints ) ; }
Specifies the list of waypoints as Plade ID Strings prefixing them as required by the API .