From: Tom Hughes Date: Wed, 12 Sep 2007 13:49:58 +0000 (+0000) Subject: Dropping duplicate GPS points is very expensive and rarely finds X-Git-Tag: live~8175 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/c3f0e1249192706cccc4460cab2591906830ba2a Dropping duplicate GPS points is very expensive and rarely finds anything much to drop, so don't bother. --- diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb index 66b56ce93..b39cbddf5 100644 --- a/app/controllers/api_controller.rb +++ b/app/controllers/api_controller.rb @@ -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'