aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/loaders/AddressGeocacheListLoader.java
blob: 6e4f99a2137921221fdd0fecf755754cf1057dab (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.Settings;
import cgeo.geocaching.connector.gc.GCParser;

import android.content.Context;

public class AddressGeocacheListLoader extends AbstractSearchLoader {

    private 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);
    }

}