All Downloads are FREE. Search and download functionalities are using the official Maven repository.

global.maplink.place.sync.PlaceSyncAPI Maven / Gradle / Ivy

There is a newer version: 1.5.15
Show newest version
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