Skip navigation links

geotax-sdk-api 2.2 API

Geotax SDK provides developers who want to create taxing solutions with functionalities of determining the tax jurisdiction by address or location i.e.

See: Description

Packages 
Package Description
com.precisely.addressing.tax  
com.precisely.addressing.tax.common  
com.precisely.addressing.tax.config  
com.precisely.addressing.tax.config.datasources  
com.precisely.addressing.tax.config.model  
com.precisely.addressing.tax.context.classloader  
com.precisely.addressing.tax.context.pool  
com.precisely.addressing.tax.context.rmi  
com.precisely.addressing.tax.jackson.deserializer  
com.precisely.addressing.tax.jackson.serializer  
com.precisely.addressing.tax.sdk.factory  
com.precisely.addressing.tax.sdk.util  
com.precisely.addressing.tax.v1  
com.precisely.addressing.tax.v1.factory  
com.precisely.addressing.tax.v1.impl  
com.precisely.addressing.tax.v1.model  
Geotax SDK provides developers who want to create taxing solutions with functionalities of determining the tax jurisdiction by address or location i.e. coordinate

Examples



    List dataSourceList = new ArrayList<>();

    dataSourceList.add(new FileDataSource(Paths.get("/Data"))); // location where software should scan for SPD data

    TaxRateLookupConfiguration configuration = new TaxRateLookupConfigurationBuilder()
        .withData(dataSourceList)
            .withResources(Paths.get("{directory}/geotax-dist-{version}/resources")) // runtime resources location bundled in release distribution
                .build();

    TaxRateLookup lookup = new TaxRateLookupBuilder()
        .withConfiguration(configuration)
            .build();

    // creating preferences
    Preferences preferences = new PreferencesBuilder()
        .build();

    TaxRateAddress address = new TaxRateAddress();

    // setting up address
    address.setAddressLines(Arrays.asList("1820 PAUL THOMAS BLVD BROWNSVILLE, PA"));

    TaxResponse response = lookup.lookupByAddress(address, preferences);
    if(Status.OK == response.getStatus()) {
        // take action on address
    }

    // setting up location
    Location location = new Location();
    location.setGeometry(new Geometry());

    location.getGeometry().setLatLongAltFmt("33.805638,-116.520949");
    TaxResponse responseForlocation = lookup.lookupByLocation(location, preferences);
    if(Status.OK == responseForlocation.getStatus()) {
        // take action on address
    }
  
Skip navigation links