package com.tandogan.geostuff.opencagedata.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class OpencageComponent
{
    private String city;

    @JsonProperty("town")
    private String town;

    private String country;

    @JsonProperty("country_code")
    private String countryCode;

    private String county;

    private String state;

    @JsonProperty("state_district")
    private String stateDistrict;

    public String getCity()
    {
        return city;
    }

    public void setCity(String city)
    {
        this.city = city;
    }

    public String getTown()
    {
        return town;
    }

    public void setTown(String town)
    {
        this.town = town;
    }

    public String getCountry()
    {
        return country;
    }

    public void setCountry(String country)
    {
        this.country = country;
    }

    public String getCountryCode()
    {
        return countryCode;
    }

    public void setCountryCode(String countryCode)
    {
        this.countryCode = countryCode;
    }

    public String getCounty()
    {
        return county;
    }

    public void setCounty(String county)
    {
        this.county = county;
    }

    public String getState()
    {
        return state;
    }

    public void setState(String state)
    {
        this.state = state;
    }

    public String getStateDistrict()
    {
        return stateDistrict;
    }

    public void setStateDistrict(String stateDistrict)
    {
        this.stateDistrict = stateDistrict;
    }
}

@@ -317,16 +317,76 @@
  town;%0A%0A
+    @JsonProperty(%22postcode%22)%0A    private String postcode;%0A%0A
     priv
@@ -867,32 +867,194 @@
  = town;%0A    %7D%0A%0A
+    public String getPostcode()%0A    %7B%0A        return postcode;%0A    %7D%0A%0A    public void setPostcode(String postcode)%0A    %7B%0A        this.postcode = postcode;%0A    %7D%0A%0A
     public Strin

Support for post codes