aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/loaders/AddressGeocacheListLoader.java
blob: e1573c94e130d24825c04de7c99f44d4ec2c6114 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package cgeo.geocaching.loaders;

import cgeo.geocaching.SearchResult;
import cgeo.geocaching.connector.gc.GCParser;
import cgeo.geocaching.settings.Settings;

import android.content.Context;

public class AddressGeocacheListLoader extends AbstractSearchLoader {

    private final String address;

    public AddressGeocacheListLoader(Context context, String address) {
        super(context);
        this.address = address;
    }

    @Override
    public SearchResult runSearch() {
        return GCParser.searchByAddress(address, Settings.getCacheType(), Settings.isShowCaptcha(), this);
    }

}