/[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 300 by torben, Tue Sep 1 19:40:02 2009 UTC revision 301 by torben, Mon Sep 7 12:23:35 2009 UTC
# Line 33  public class LocateStations extends Http Line 33  public class LocateStations extends Http
33                                                     "               SELECT name,latitude,longitude,stationcode, " +                                                     "               SELECT name,latitude,longitude,stationcode, " +
34                                                     "                     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 " +
35                                                     "               FROM trainstations " +                                                     "               FROM trainstations " +
36                                                       "               WHERE latitude IS NOT NULL AND longitude IS NOT NULL " +
37                                                     "       ) AS trainstations2 " +                                                     "       ) AS trainstations2 " +
38                                                 "ORDER BY calcdist ASC " +                                                 "ORDER BY calcdist ASC " +
39                                                 "LIMIT 4 ";                                                 "LIMIT 4 ";

Legend:
Removed from v.300  
changed lines
  Added in v.301

  ViewVC Help
Powered by ViewVC 1.1.20