1 | package org.greenstone.client;
|
---|
2 |
|
---|
3 | import java.util.ArrayList;
|
---|
4 |
|
---|
5 | import com.google.gwt.dom.client.Element;
|
---|
6 | import com.google.gwt.maps.client.geom.LatLng;
|
---|
7 | import com.google.gwt.user.client.rpc.AsyncCallback;
|
---|
8 |
|
---|
9 | public interface FindPlaceServiceAsync
|
---|
10 | {
|
---|
11 | void getMarkedUpText(AsyncCallback<String> callback);
|
---|
12 | void isGazetteerLoaded(AsyncCallback<Boolean> callback);
|
---|
13 | void findPlacesInText(String text, String html, AsyncCallback<Boolean> callback);
|
---|
14 | void loadGazetteer(AsyncCallback<Boolean> callback);
|
---|
15 | void getPlaces(double maxScore, double minScore, long minPopulation, boolean locality, boolean region, boolean country, int numberOfPlacesToGet, AsyncCallback<ArrayList<Place>> callback);
|
---|
16 | void adjustScoringParams(double penalty, double parentBonus, double indirectReferencePercent, AsyncCallback<Boolean> callback);
|
---|
17 | void findPlacesInMultipleTexts(ArrayList<String> texts, AsyncCallback<ArrayList<ArrayList<Place>>> callback);
|
---|
18 | void updateGazetteer(int start, int end, AsyncCallback<ArrayList<Place>> callback);
|
---|
19 | void addToDatabase(Place p, float lat, float lng, AsyncCallback<Boolean> callback);
|
---|
20 | void spatialSearch(ArrayList<Float[]> points, AsyncCallback<ArrayList<String>> callback);
|
---|
21 | void getPlaceById(long id, AsyncCallback<Place> callback);
|
---|
22 | }
|
---|