diff --git a/lib/geokit/mappable.rb b/lib/geokit/mappable.rb
index <HASH>..<HASH> 100644
--- a/lib/geokit/mappable.rb
+++ b/lib/geokit/mappable.rb
@@ -111,7 +111,7 @@ module Geokit
 
         heading=from.heading_to(to)
         distance=from.distance_to(to,options)
-        midpoint=from.endpoint(heading,distance/2,options)
+        from.endpoint(heading,distance/2,options)
       end
 
       # Geocodes a location using the multi geocoder.
warning: assigned but unused variable - midpoint