package io.ljunggren.geoapify.api;
import io.ljunggren.geoapify.api.model.response.Response;
import io.ljunggren.geoapify.api.service.PostalCodeService;
public class GeoapifyApi {
private PostalCodeService postalCodeService;
public GeoapifyApi(String apiKey) {
this.postalCodeService = new PostalCodeService(apiKey);
}
public Response postalCodeLookup(String postalCode, String countryCode) throws Exception {
return postalCodeService.lookup(postalCode, countryCode);
}
}