28 |
|
|
29 |
StationBean stations = new StationBean(); |
StationBean stations = new StationBean(); |
30 |
|
|
31 |
|
boolean statsByNameSend = false; |
32 |
|
|
33 |
public boolean hasStations() { |
public boolean hasStations() { |
34 |
return (stations != null && stations.entries.size() > 0); |
return (stations != null && stations.entries.size() > 0); |
35 |
} |
} |
181 |
|
|
182 |
@Override |
@Override |
183 |
public StationBean lookupStationsByName(String name) { |
public StationBean lookupStationsByName(String name) { |
184 |
|
|
185 |
|
statsByName(name); |
186 |
|
|
187 |
long start = System.currentTimeMillis(); |
long start = System.currentTimeMillis(); |
188 |
|
|
225 |
} |
} |
226 |
|
|
227 |
private void statsByName(String name) { |
private void statsByName(String name) { |
228 |
|
if (statsByNameSend == true) { |
229 |
|
return; |
230 |
|
} |
231 |
|
statsByNameSend = true; |
232 |
|
|
233 |
try { |
try { |
234 |
name = URLEncoder.encode(name, "ISO8859-1"); |
name = URLEncoder.encode(name, "ISO8859-1"); |