diff --git a/GTFSOffline/src/com/wbrenna/gtfsoffline/LocationFragmentHelper.java b/GTFSOffline/src/com/wbrenna/gtfsoffline/LocationFragmentHelper.java index a4a9503..93c62e5 100644 --- a/GTFSOffline/src/com/wbrenna/gtfsoffline/LocationFragmentHelper.java +++ b/GTFSOffline/src/com/wbrenna/gtfsoffline/LocationFragmentHelper.java @@ -172,7 +172,8 @@ protected Void doInBackground(Void... foo) { selectargs = new String[] { }; } else { qry = "select stop_id as _id, stop_lat, stop_lon, stop_name from stops " + - "where stop_lat < ? and stop_lat > ? and stop_lon < ? and stop_lon > ?"; + "where cast(stop_lat as real) < ? and cast(stop_lat as real) > ? and " + + "cast(stop_lon as real) < ? and cast(stop_lon as real) > ?"; selectargs = new String[] { Double.toString(myTop), Double.toString(myBottom), Double.toString(myLeft), Double.toString(myRight) }; }