diff --git a/GMapsFX/src/main/java/com/lynden/gmapsfx/service/directions/DirectionsWaypoint.java b/GMapsFX/src/main/java/com/lynden/gmapsfx/service/directions/DirectionsWaypoint.java
index <HASH>..<HASH> 100644
--- a/GMapsFX/src/main/java/com/lynden/gmapsfx/service/directions/DirectionsWaypoint.java
+++ b/GMapsFX/src/main/java/com/lynden/gmapsfx/service/directions/DirectionsWaypoint.java
@@ -38,7 +38,7 @@ public class DirectionsWaypoint extends JavascriptObject{
     }
     
     public DirectionsWaypoint(LatLong l){
-        super(GMapObjectType.DIRECTIONS_WAYPOINT, "{location: " + l + "}");
+        super(GMapObjectType.DIRECTIONS_WAYPOINT, "{location: " + l.getVariableName() + "}");
         //getJSObject().setMember("location", l);
     }
Corrected error on DirectionsWaypoint

When passing LatLong as an argument to the DirectionsWaypoint constructor it creates a wrong javascript string:



"{location: " + l.toString() + "}" -> {location: lat: <I> lng: <I>}



 I changed it so it just passes the LatLong variable name.