]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api_controller.rb
Dropping duplicate GPS points is very expensive and rarely finds
[rails.git] / app / controllers / api_controller.rb
index 66b56ce931bb7fde90f7525e7c9fef46403c53dd..b39cbddf5e639e4f49fcf8a26be3ff0360f64165 100644 (file)
@@ -64,7 +64,7 @@ class ApiController < ApplicationController
     end
 
     # get all the points
     end
 
     # get all the points
-    points = Tracepoint.find_by_area(min_lat, min_lon, max_lat, max_lon, :select => "DISTINCT *", :offset => offset, :limit => TRACEPOINTS_PER_PAGE, :order => "timestamp DESC" )
+    points = Tracepoint.find_by_area(min_lat, min_lon, max_lat, max_lon, :offset => offset, :limit => TRACEPOINTS_PER_PAGE, :order => "timestamp DESC" )
 
     doc = XML::Document.new
     doc.encoding = 'UTF-8'
 
     doc = XML::Document.new
     doc.encoding = 'UTF-8'