pef
unread,Nov 4, 2010, 1:55:25 PM11/4/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gwt-maps3-discuss
Hello,
I have a suggestion for the API : can the two methods
DirectionsTravelMode.Driving() and ...Walking() be made static ?
Indeed, unless I missed something, I need to do the following whenever
I want to build a DirectionsRequest instance :
DirectionsTravelMode l_travel_mode = new
DirectionsTravelMode();
DirectionsRequest l_request = new DirectionsRequest();
l_request.setOriginLatLng(...);
l_request.setDestinationLatLng(...);
l_request.setTravelMode(l_travel_mode.Driving());
If they were static, this would spare me the local variable
instanciation, and I could just say :
l_request.setTravelMode(DirectionsTravelMode.Driving());
-- pef