com.what3words.javawrapper.response.GridSectionGeoJson Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of w3w-java-wrapper Show documentation
Show all versions of w3w-java-wrapper Show documentation
Java library for what3words REST API.
The newest version!
package com.what3words.javawrapper.response;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonArray;
public class GridSectionGeoJson extends Response {
private JsonArray features = null;
private String type = null;
public GridSectionGeoJson() {
}
public GridSectionGeoJson(JsonArray features, String type) {
this.features = features;
this.type = type;
}
public JsonArray getFeatures() {
return features;
}
public String getType() {
return type;
}
public String toGeoJsonString() {
return new GsonBuilder().create().toJson(this);
}
public String toString() {
return new GsonBuilder().setPrettyPrinting().create().toJson(this);
}
}