dlsc-software-consulting-gmbh / GMapsFX

Java API for using Google Maps within a JavaFX application.
http://rterp.github.io/GMapsFX/
Apache License 2.0
319 stars 119 forks source link

DirectionsRequest "optimizeWaypoints" always true #167

Open MauriFont opened 6 years ago

MauriFont commented 6 years ago

InDirectionsRequest the method setOpt() is useless since the string is generated when the object is created thus calling setOpt(false) does nothing and "optimizeWaypoints" will always be true since is the default value.

Solution would be to overload the constructor, even more. I don't pull a request because It would bother some users or there would be too much constructors.