global.maplink.place.sync.PlaceSyncAPI Maven / Gradle / Ivy
package global.maplink.place.sync;
import global.maplink.env.Environment;
import global.maplink.place.async.PlaceAsyncAPI;
import global.maplink.place.schema.*;
import java.util.List;
import java.util.Optional;
import java.util.concurrent.CompletableFuture;
public interface PlaceSyncAPI {
PlaceRouteResponse calculate(PlaceRouteRequest request);
void create(CreatePlaceRequest request);
void create(Place place);
List listAllStates(ListAllStatesRequest request);
List listAllCities(ListAllCitiesRequest request);
List listAllDistricts(ListAllDistrictsRequest request);
PlacePageResult listAll(ListAllPlacesRequest request);
PlacePageResult listAll(int limit, int offset);
PlacePageResult listAll();
Optional getByOriginId(PlaceByOriginIdRequest request);
Optional getByOriginId(String originId);
static PlaceSyncAPI getInstance() {
return new PlaceSyncApiImpl(PlaceAsyncAPI.getInstance());
}
static PlaceSyncAPI getInstance(Environment environment) {
return new PlaceSyncApiImpl(PlaceAsyncAPI.getInstance(environment));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy