/[projects]/android/TrainInfoService/src/dk/thoerup/traininfoservice/LocateStations.java
ViewVC logotype

Diff of /android/TrainInfoService/src/dk/thoerup/traininfoservice/LocateStations.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 376 by torben, Sun Sep 27 19:14:39 2009 UTC revision 377 by torben, Thu Oct 1 08:21:09 2009 UTC
# Line 59  public class LocateStations extends Http Line 59  public class LocateStations extends Http
59                                                  "               SELECT id,name,latitude,longitude,stationcode_fjrn,stationcode_stog, " +                                                  "               SELECT id,name,latitude,longitude,stationcode_fjrn,stationcode_stog, " +
60                                                  "                     earth_distance( ll_to_earth(latitude,longitude), ll_to_earth(?,?))::int AS calcdist " +                                                  "                     earth_distance( ll_to_earth(latitude,longitude), ll_to_earth(?,?))::int AS calcdist " +
61                                                  "               FROM trainstations " +                                                  "               FROM trainstations " +
62                                                  "               WHERE latitude IS NOT NULL AND longitude IS NOT NULL " +                                                  "               WHERE enabled = true AND latitude IS NOT NULL AND longitude IS NOT NULL " +
63                                                  "       ) AS trainstations2 " +                                                  "       ) AS trainstations2 " +
64                                                  "ORDER BY calcdist ASC " +                                                  "ORDER BY calcdist ASC " +
65                                                  "LIMIT 4 ";                                                  "LIMIT 4 ";

Legend:
Removed from v.376  
changed lines
  Added in v.377

  ViewVC Help
Powered by ViewVC 1.1.20