]> git.openstreetmap.org Git - rails.git/commitdiff
Dropping duplicate GPS points is very expensive and rarely finds
authorTom Hughes <tom@compton.nu>
Wed, 12 Sep 2007 13:49:58 +0000 (13:49 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 12 Sep 2007 13:49:58 +0000 (13:49 +0000)
anything much to drop, so don't bother.

app/controllers/api_controller.rb

index 66b56ce931bb7fde90f7525e7c9fef46403c53dd..b39cbddf5e639e4f49fcf8a26be3ff0360f64165 100644 (file)
@@ -64,7 +64,7 @@ class ApiController < ApplicationController
     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'