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

com.smartystreets.api.us_extract.Address Maven / Gradle / Ivy

There is a newer version: 3.18.3
Show newest version
package com.smartystreets.api.us_extract;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.smartystreets.api.us_street.Candidate;

import java.io.Serializable;

/**
 * @see SmartyStreets US Extract API docs
 */
public class Address implements Serializable {
    //region [ Fields ]

    private String text;
    private boolean verified;
    private int line;
    private int start;
    private int end;
    private Candidate[] candidates;

    //endregion

    //region [ Getters ]

    public String getText() {
        return text;
    }

    public boolean isVerified() {
        return verified;
    }

    public int getLine() {
        return line;
    }

    public int getStart() {
        return start;
    }

    public int getEnd() {
        return end;
    }

    @JsonProperty("api_output")
    public Candidate[] getCandidates() {
        return candidates;
    }

    public Candidate getCandidate(int index) {
        return candidates[index];
    }

    //endregion
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy